Hi lavaan-users!
I have two questions. Let me use a modified version of the lavaan-example (
http://lavaan.ugent.be/tutorial/sem.html) for demonstration.
In this case, ind60 is a second-order-factor. Also, i added a manifest variable "age" as preditor.
model <- '
# measurement model with ind60 beeing a second-order-factor.
Firstorder1 =~ x1 + x2 + x3
Firstorder2 =~ x4 + x5 + x6
Firstorder3 =~ x7 + x8 + x9
Firstorder4 =~ x10 + x11 + x12
ind60 =~ Firstorder1 + Firstorder2 + Firstorder3 + Firstorder4
dem60 =~ y1 + y2 + y3 + y4
dem65 =~ y5 + y6 + y7 + y8
# regressions
ind60 ~ age
dem60 ~ ind60 + age
dem65 ~ ind60 + dem60 + age'
1.) If i want to add a manifest variable ("age") as a covariate in my SEM, should i just use it as predictor for the endogenous latent variables (dem60, dem65), or also for the other predictor variable (ind60)? My guess would be, to add a path to every latent variable, predictor or not (ind60, dem60, dem65 in the example). This would also be in line with my theory.
2.) My structural equation
model involves a second-order-factor as predictor. Inspecting the residual-matrix i found out, that the relationship of age and the indicators of one first-order-factor is higher than in the estimated model. That is a source of model-misfit i got after adding "age". How do i model a covariance between the manifest variable "age" and the Factor "Firstorder1"? Or if this isn´t possible: How do i estimate covariances of age and x1-x3?
Thank you for any advice!