View source: R/MixedModelPower.R
MixedModelPower | R Documentation |
To perform the power analysis for the given model
MixedModelPower(Model, FixEffect = NULL, Methods = method = c("z", "t", "f", "chisq", "anova", "lr", "sa",
"kr", "pb"), Nsim = 100, Along = NULL, maxNumber = NULL, Breaks = NULL)
Model |
A mixed model build via lme4 package |
FixEffect |
The fixed effect of which the power is to calculate |
Methods |
The methods to examine the power, such as 't', 'f','z','chisq' |
Nsim |
Number of simulation |
Along |
The name of the group variable which you want extent the data along. A character name |
maxNumber |
The max number to extend the data along the group variable |
Breaks |
You can define the levels to calculate the power |
## Example :
Model = lmer(data = DemoData, DV~CondA+(1|subj)+(1|item))
MixedModelPower(Model = Model, FixEffect = "CondAA2", Methods = "t", Nsim = 10, Along = 'subj',maxNumber = 50, Breaks = seq(5,50,5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.