Hi, I'm having a problem in making a line graph for my growth model.
The outcome variable is depression level: dep_ (categorical)
The main independent variable is gender: sex_ (coded as 0/1)
One time-varying variable is alcohol use: alcohol_new (coded as 0/1)
Time variable is: year_new (4 waves coded as 0, 1, 2 3)
My original command is: xtmixed dep_ sex_ alcohol_new year_new i.sex_#c.year_new i.alcohol_new#c.year_new|| id: year , cov(un) variance mle
I'm wondering how could I do the predict function and then make a line graph which fits this model the best.
Thank you!
Related Posts with Graph question for growth model "xtmixed"
Ranking observations by a variable within two groups by yearI am working with some data on NCAA football players. For the purposes of this question, it looks so…
How to calculate the Average Treatment Effect on the Untreated (ATU) vs. ATE/ATETQuite often, I am more interested in knowing how a treatment might improve the outcomes of the untre…
what are the commands for a PVAR type model on stata?salut! Je suis nouveau sur ce forum et aussi dans l'utilisation du logiciel stata. J'utilise la vers…
Filling missing values with meanHello everyone, I am struggling with filling missing values with mean values, because I have to sep…
what are the commands for a PVAR type model on stata?Hello! I am new on this forum and also in the use of the stata software. I'm using version 15.0 of S…
Subscribe to:
Post Comments (Atom)
0 Response to Graph question for growth model "xtmixed"
Post a Comment