I try to estimate a latent growth model in Lavaan--using latent factors with categorical indicators--using the following model. Any suggestions how to fix this error are very welcome.
model <- ' t1 =~ A1a + A2a + A3a + A4a
t2 =~ A1b + A2b + A3b + A4b
t3 =~ A1c + A2c + A3c + A4c
i =~ 1*t1 + 1*t2 + 1*t3
s =~ 0*t1 + 1*t2 + 2*t3'
fit2 <- growth(model,
ordered=colnames(data),
std.lv=TRUE,
data=data,missing="pairwise")
1: In lav_model_vcov(lavmodel = lavmodel, lavsamplestats = lavsamplestats, : lavaan WARNING: could not compute standard errors! lavaan NOTE: this may be a symptom that the model is not identified.
2: In lav_model_test(lavmodel = lavmodel, lavpartable = lavpartable, : lavaan WARNING: could not compute scaled test statistic
I note that the means and the variances of the intercept (i) and slope (s) are estimated(?) to be 0 and 1, respectively.
Thanks in advance,
Peter
PS. I found an old topic on a Google forum, but trying to adept my code along those lines did not fix the error (and even gave back the error that lavaan did not recognise my model specification?)
I try to estimate a latent growth model in Lavaan--using latent factors with categorical indicators
model <- ' t1 =~ A1a + A2a + A3a + A4a t2 =~ A1b + A2b + A3b + A4b t3 =~ A1c + A2c + A3c + A4c i =~ 1*t1 + 1*t2 + 1*t3 s =~ 0*t1 + 1*t2 + 2*t3' fit2 <- growth(model, ordered=colnames(data), std.lv=TRUE, data=data,missing="pairwise")
I note that the means and the variances of the intercept (i) and slope (s) are estimated(?) to be 0 and 1, respectively.
Thanks Terrence for your answer. I did the checks for measurement invariance, and everthing seems fine. As I am new to latent growth modeling, I did not completely get your answer for estimating the model itself (sorry). Based on your feedback, I added to the mode ( i~0*1) and used the sem-function. but I think there is something else I need to add to the model since the intercept of the intercept (i) and the slope (s) are still fixed to 0? Could you give me some advice?Peter
--
You received this message because you are subscribed to the Google Groups "lavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lavaan+un...@googlegroups.com.
To post to this group, send email to lav...@googlegroups.com.
Visit this group at https://groups.google.com/group/lavaan.
For more options, visit https://groups.google.com/d/optout.