Pwr {SynergyLMM} | R Documentation |
Calculates power based on a model fit
Description
This function is generic; method functions can be written to handle specific classes of objects.
Usage
Pwr(object, ...)
Arguments
object |
an object containing the results returned by a model fitting function (e.g., |
... |
some methods for this generic function may require additional arguments. |
Value
numeric scalar value.
Author(s)
Andrzej Galecki and Tomasz Burzykowski
See Also
Examples
data("grwth_data")
lmm <- lmmModel(data = grwth_data,
sample_id = "subject",
time = "Time",
treatment = "Treatment",
tumor_vol = "TumorVolume",
trt_control = "Control",
drug_a = "DrugA",
drug_b = "DrugB",
combination = "Combination")
Pwr(lmm,
L = c("Time:TreatmentControl" = 1,
"Time:TreatmentDrugA" = -1,
"Time:TreatmentDrugB" = -1,
"Time:TreatmentCombination" = 1))
[Package SynergyLMM version 1.0.1 Index]