Hey everyone :)
I am new on R and more precisely on Lavaan.
And I met a big issue about the way to enter my latent variable in my model.
I used each time to function "=~" to specify to R, I am creating my latent variable with indicators.
Bu each time I tried to realize it, an error message come up explaining my function is non well specify.
I tried to use a hierarchical technique (delete my parameters constraints, even variance and covariance, intercept and so on so see if the issue continue...)
Here is an exemple :
Model1 <- '
+ #variables latentes
+ ISS =~ ISSA1 + ISSo1 + ISSA2 + ISSC1
+ Sexism =~ SH1 + SH2 + SB1 + SB2 + SB3 + SH3
+
+ #Regression
+ ISS ~ Sexe + Scenario
+ Sexisme ~ ISS + Scenario + Sex'
> fit <- sem(Model1, data = Toutes, estimator = "ML", group = "Sex")
Error: lavaan->ldw_parse_get_modifier():
invalid modifier symbol (should be '*' or '?') at line 3, pos 11
+ Sexisme =~ SH1 + SH2 + SB1 + SB2 + SB3 + SH3
^
Maybe someone has already been confronted to this situation ?
Thank for your answer :)
Emy