Description Usage Arguments Value Examples
This function computes a variety of fit measures to assess the global fit of a latent variable model.
1 2 | fitMeasures(object, fit.measures = "all", baseline.model = NULL)
fitmeasures(object, fit.measures = "all", baseline.model = NULL)
|
object |
An object of class |
fit.measures |
If |
baseline.model |
If not NULL, an object of class
|
A named numeric vector of fit measures.
1 2 3 4 5 6 7 8 | HS.model <- ' visual =~ x1 + x2 + x3
textual =~ x4 + x5 + x6
speed =~ x7 + x8 + x9 '
fit <- cfa(HS.model, data=HolzingerSwineford1939)
fitMeasures(fit)
fitMeasures(fit, "cfi")
fitMeasures(fit, c("chisq", "df", "pvalue", "cfi", "rmsea"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.