compare_fit {psycModel} | R Documentation |
Comparison of Model Fit
Description
Compare the fit indices of models (see below for model support)
Usage
compare_fit(
...,
digits = 3,
quite = FALSE,
streamline = FALSE,
return_result = FALSE
)
Arguments
... |
model. If it is a |
digits |
number of digits to round to |
quite |
suppress printing output |
streamline |
print streamlined output |
return_result |
If it is set to |
Value
a dataframe
with fit indices and change in fit indices
Examples
# lme model
fit1 <- lm_model(
data = popular,
response_variable = popular,
predictor_var = c(sex, extrav)
)
fit2 <- lm_model(
data = popular,
response_variable = popular,
predictor_var = c(sex, extrav),
two_way_interaction_factor = c(sex, extrav)
)
compare_fit(fit1, fit2)
# see ?measurement_invariance for measurement invariance example
[Package psycModel version 0.5.0 Index]