I'm trying to fit my data on R with lavaan according to Roger Kievit's codes (https://osf.io/ch3rf/)
I have one latent variable, COG, combination of to cognitive scores X1 and X2, and another variable NEU.
I know that all the measures are impacted by gender AND by the type of training (control vs. test).
I created a variable 'Groupe' with 4 modalities : Control-Male, Control-Female, Test-Male and Test-Female.
Is it enough to make the analyses by group (i.e. adding the argument group in the fit command, see below)?
Or should I do a model by gender and another one by type of training (i.e. am I allowed to combine these two variables?)?
Then, should I compare the results to another model to make my conclusions?
Thanks in advance,
Iris Menu.
fitBYGGterULCS <- lavaan(terULCS, data=modelData, estimator='mlr',fixed.x=FALSE,missing='fiml', group='Groupe')
summary(fitBYGGterULCS, fit.measures=TRUE, standardized=TRUE, rsquare=TRUE)
I have one latent variable
Is it enough to make the analyses by group (i.e. adding the argument group in the fit command, see below)?
Or should I do a model by gender and another one by type of training (i.e. am I allowed to combine these two variables?)?
Then, should I compare the results to another model to make my conclusions?
When you say that I should compare my model to another model in which the means are constrained, can I do this by adding 'group.equal="means"' in argument? And then testing an anova(model1,model2) to conclude?
Best regards,
Iris Menu, second year Master's degree student.
can I do this by adding 'group.equal="means"' in argument?