Hello!
I have a question on generalized structural equation modeling. Say, I fit the following two-level random intercept model:
where x1/x2 and y are at the doctor level and hospital_id is a latent variable denoting random intercept for upper (hospital) level.
Now, in my data set I also have several hospital level predictors (say, b1 and b2). Is it plausible to add them to the model and estimate like:
I recall that in multilevel estimation dependent variable (y) must be at the lowest level (doctor in my case), so I am not sure if I can estimate effects of higher-level b1 and b2 on y.
Thank you in advance for help.
I have a question on generalized structural equation modeling. Say, I fit the following two-level random intercept model:
Code:
gsem (x1 -> y, ) (x2 -> y, ) (M1[hospital_id] -> y, ), covstruct(_lexogenous, diagonal) vce(robust) latent(M1 ) nocapslatent
Now, in my data set I also have several hospital level predictors (say, b1 and b2). Is it plausible to add them to the model and estimate like:
Code:
gsem (x1 -> y, ) (x2 -> y, ) (M1[hopsital_id] -> y, ) (b1 -> y, ) (b2 -> y, ), covstruct(_lexogenous, diagonal) vce(robust) latent(M1 ) nocapslatent
Thank you in advance for help.
Comment