Dear all,
I have the following cross-lagged panel model, in which I want to control for 3 covariates (meds + drugs + can_premor) in the regression paths for both outcomes (can_Y2 and relapse_Y2).
I ran the following model:
M1 <- '
# Lagged path
can_Y2 ~ relapse_Y1
relapse_Y2 ~ can_Y1
# Autoregressive path
can_Y2 ~ can_Y1
relapse_Y2 ~ relapse_Y1
# Covariates
can_Y2 ~ meds + drugs + can_premor
relapse_Y2 ~ meds + drugs + can_premor'
Fit measures:
chisq pvalue cfi tli rmsea
0 NA 1 1 0
Based on the fit estimates, this model doesn’t seem appropriate to me. I also ran one model that included the covariates only for one of the main outcomes and this model seem to fit better:
M2 <- '
# Lagged path
can_Y2 ~ relapse_Y1
relapse_Y2 ~ can_Y1
# Autoregressive path
can_Y2 ~ can_Y1
relapse_Y2 ~ relapse_Y1
# Covariates
relapse_Y2 ~ meds + drugs + can_premor'
Fit measures:
chisq pvalue cfi tli rmsea
1.750 0.626 1.000 1.054 0.000
The two models give me the same regression estimates for the variables included, but the model fits are different. So I was wondering whether I can I include my covariates only in one of the regression paths or am I missing something in my initial models (M1)?
Any advice in this regard would be much appreciated!
Kind regards,
Tabea
Fit measures:
chisq pvalue cfi tli rmsea
0 NA 1 1 0
Based on the fit estimates, this model doesn’t seem appropriate to me.
I also ran one model that included the covariates only for one of the main outcomes and this model seem to fit better:
Fit measures:
chisq pvalue cfi tli rmsea
1.750 0.626 1.000 1.054 0.000
The two models give me the same regression estimates for the variables included, but the model fits are different.
example(cfa)parTable(fit)
lavInspect(fit, "free")
Dear Terry,
Thank you very much indeed for your very helpful answer – that made a lot of sense to me! I now ran the saturated model and then one model in which I dropped all paths that were not significant in the initial one.
I have one more question, which already came up in this group but I haven’t yet managed to solve it: When I include the correlation term (can_Y1 ~~ relapse_Y1),
M1 <- '
# Lagged path
can_Y2 ~ relapse_Y1
relapse_Y2 ~ can_Y1
# Autoregressive path
can_Y2 ~ can_Y1
relapse_Y2 ~ relapse_Y1
# Correlation
can_Y1 ~~ relapse_Y1'
can_Y2 ~~ relapse_Y2'
I get the following error message:
Error in vnames(FLAT, type = "ov.x", ov.x.fatal = TRUE) :
lavaan ERROR: model syntax contains variance/covariance/intercept formulas
involving (an) exogenous variable(s): [relapse_Y1 can_Y1];
Please remove them and try again.
I can’t use fixed.x=FALSE, since I am using estimator="WLSMV".
I was just wondering whether there is a way of including the correlation between can_Y1 and relapse_Y1 in the model?
Many thanks again for your advice.
Kind regards,
Tabea
I can’t use fixed.x=FALSE, since I am using estimator="WLSMV".
I was just wondering whether there is a way of including the correlation between can_Y1 and relapse_Y1 in the model?