Hi everyone,
I am currently evaluating the sex differences in the trajectory of depression over time measured at 3 timepoints with non-linear model. I've converted my data to the long format. Here is my syntax:
mixed depression sex age age2 || subjectid: age age2, covariance(unstructured) mle
age: the age at which depression symptoms were measured
age2: is squared of age
I then entered:
predict traj, fitted
to predict individual-specific trajectories of depression with the individual intercept and slopes. However, I would like to see if maternal depression measured prenatally is associated with individual slopes. Can anyone please give advice on how I can do that on STATA?
Thank you!
I am currently evaluating the sex differences in the trajectory of depression over time measured at 3 timepoints with non-linear model. I've converted my data to the long format. Here is my syntax:
mixed depression sex age age2 || subjectid: age age2, covariance(unstructured) mle
age: the age at which depression symptoms were measured
age2: is squared of age
I then entered:
predict traj, fitted
to predict individual-specific trajectories of depression with the individual intercept and slopes. However, I would like to see if maternal depression measured prenatally is associated with individual slopes. Can anyone please give advice on how I can do that on STATA?
Thank you!
Comment