semPower.compromise | R Documentation |
Performs a compromise power analysis, i. e., determines the critical chi-square along with the implied alpha error and beta error , given the alpha/beta ratio, a measure of effect, N, and df
semPower.compromise(
effect = NULL,
effect.measure = NULL,
abratio = 1,
N,
df = NULL,
p = NULL,
SigmaHat = NULL,
Sigma = NULL,
muHat = NULL,
mu = NULL,
fittingFunction = "ML",
...
)
effect |
effect size specifying the discrepancy between the null hypothesis (H0) and the alternative hypothesis (H1). A list for multiple group models; a vector of length 2 for effect-size differences. Can be |
effect.measure |
type of effect, one of |
abratio |
the ratio of alpha to beta |
N |
the number of observations (a list for multiple group models) |
df |
the model degrees of freedom. See |
p |
the number of observed variables, only required for |
SigmaHat |
can be used instead of |
Sigma |
can be used instead of |
muHat |
can be used instead of |
mu |
can be used instead of |
fittingFunction |
one of |
... |
other parameters related to plots, notably |
Returns a list. Use summary()
to obtain formatted results.
semPower.aPriori()
semPower.postHoc()
## Not run:
# determine the critical value such that alpha = beta when distinguishing a model
# involving 200 df exhibiting an RMSEA >= .08 from a perfectly fitting model.
cp <- semPower.compromise(effect = .08, effect.measure = "RMSEA",
abratio = 1, N = 250, df = 200)
summary(cp)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.