Description Usage Arguments Slots Objects from the Class Author(s) See Also Examples
This class contains model fit measures and model fit comparisons among multiple models
1 2 3 4 5 |
object |
object of class |
fit.measures |
|
nd |
number of digits printed |
name
character
. The name of each model
model.class
character
. One class to which each model belongs
nested
data.frame
. Model fit comparisons between adjacently
nested models that are ordered by their degrees of freedom (df)
fit
data.frame
. Fit measures of all models specified in the
name
slot, ordered by their df
Objects can be created via the
compareFit
function.
Terrence D. Jorgensen (University of Amsterdam; TJorgensen314@gmail.com)
Sunthud Pornprasertmanit (psunthud@gmail.com)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | HS.model <- ' visual =~ x1 + x2 + x3
textual =~ x4 + x5 + x6
speed =~ x7 + x8 + x9 '
out <- measurementInvariance(model = HS.model, data = HolzingerSwineford1939,
group = "school", quiet = TRUE)
modelDiff <- compareFit(out)
summary(modelDiff)
summary(modelDiff, fit.measures = "all")
summary(modelDiff, fit.measures = c("aic", "bic"))
## Not run:
## Save results to a file
saveFile(modelDiff, file = "modelDiff.txt")
## Copy to a clipboard
clipboard(modelDiff)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.