Dear Terry and Yves,
Thank you very much for your replies.
Yves, if you describe the process of computing the Satterthwaite scaled statistic difference test as a challenge, I would prefer to have it done via Lavaan, as I am not really comfortable with the R syntax.
However, when using the anova() function, I receive an error.
I am running the following syntax:
RPQ1factor.model <- 'general aggression =~ RPQ1 + RPQ2 + RPQ3 + RPQ4 + RPQ5 + RPQ6 + RPQ7 + RPQ8 + RPQ9 + RPQ10 + RPQ11 + RPQ12 + RPQ13 + RPQ14 + RPQ15 + RPQ16 + RPQ17 + RPQ18 + RPQ19 + RPQ20 + RPQ21 + RPQ22 + RPQ23 '
RPQ2factor.model <- 'reactive =~ RPQ1 + RPQ3 + RPQ5 + RPQ7 + RPQ8 + RPQ11 + RPQ13 + RPQ14 + RPQ16 + RPQ19 + RPQ22
proactive =~ RPQ2 + RPQ4 + RPQ6 + RPQ9 + RPQ10 + RPQ12 + RPQ15 + RPQ17 + RPQ18 + RPQ20 + RPQ21 + RPQ23'
f1 <- cfa(RPQ1factor.model, data = data, ordered = c("RPQ1", "RPQ2", "RPQ3", "RPQ4", "RPQ5", "RPQ6", "RPQ7", "RPQ8", "RPQ9", "RPQ10", "RPQ11", "RPQ12", "RPQ13", "RPQ14", "RPQ15", "RPQ16", "RPQ17", "RPQ18", "RPQ19", "RPQ20", "RPQ21", "RPQ22", "RPQ23"),
std.lv = TRUE)
f2 <- cfa(RPQ2factor.model, data = data, ordered = c("RPQ1", "RPQ2", "RPQ3", "RPQ4", "RPQ5", "RPQ6", "RPQ7", "RPQ8", "RPQ9", "RPQ10", "RPQ11", "RPQ12", "RPQ13", "RPQ14", "RPQ15", "RPQ16", "RPQ17", "RPQ18", "RPQ19", "RPQ20", "RPQ21", "RPQ22", "RPQ23"),
std.lv = TRUE)
anova(f1, f2, test = "satorra.2000", SB.classic = FALSE)
Error in names(mods) <- model.names :
'names' attribute [3] must be the same length as the vector [2]
Any thoughts on how to fix this?
On another note, the 1 factor model does not converge unless I standardize the latent variables (
std.lv = TRUE), when it converges in 20 iterations.The other model converges just fine either way, with the exact same fit measures.
I am aware that standardizing the lv has implications for the interpretation of the factor loadings, but does it have any other concrete implications for the model fitting? (I am not really interested in the factor loadings, but rather in which model has the best fit).
I apologize for asking this here, but my google searching yielded no concrete information.
Thanks!