Hi everyone,
I have currently run a cross-lagged model on 5 waves to answer the question does depression affect self-esteem, or does self-esteem affect depression, using the following code:
This all went nice and well; however, I would like to include fixed effect of gender and iq and I have absolutely no clue how to do it. I found some slides by Paul Allison that were cut off at the point where he was supposed to explain how to do this. Is there anyone here who would be able to advice me on how to achieve this? Thank you!
I have currently run a cross-lagged model on 5 waves to answer the question does depression affect self-esteem, or does self-esteem affect depression, using the following code:
Code:
sem (depression2 <- depression1 inattention1) /// (depression <- depression2 selfesteem2) /// (depression4 <- depression3 selfesteem3) /// (depression5 <- depression4 selfesteem4) /// (selfesteemn2 <- selfesteem1 depression1) /// (selfesteem3 <- selfesteem2 depression2) /// (selfesteem4 <- selfesteem3 depression3) /// (selfesteem5 <- selfesteem4 depression4), /// method(mlmv) standardized /// cov(e.depression2*e.selfesteem2 e.depression3*e.selfesteem3 e.depression4*e.selfesteem4 e.depression5*e.selfesteem)