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"
Shifting values leftwards to replace missingCan anyone advise about how to replace missing values with the next value to the right of the same t…
Need help with creating a Growth Incidence Curve in Stata. I am very new to this wonderful software.Hey there! My name is Philip and I'm currently studying for a bachelors degree in economics. I reall…
Panel regression with moderatorDear all, I am conducting a fixed effects panel regression with a IV several DVs and a moderator (M…
creating a percentage graph barDear Statalist I would like to make a graph bar but with percentages instead of the count. However,…
Plot with text not exporting to PDFDear all. What I am about to describe, happens happens in both Stata 15 and Stata 16, running on Wi…
Subscribe to:
Post Comments (Atom)
0 Response to Graph question for growth model "xtmixed"
Post a Comment