Hi. I always thanks to statalist.
I have six years of cross sectional data for SBP and BMI.
There are three variables, SBP, BMI and Year.
I would like to draw the SBP's average trend graph over the years before and after the adjustment to BMI.
How can I overlay the two graphs below?
reg sbp bmi i.year
margins year
marginsplot
reg sbp i.year
margins year
marginsplot
like this graph
Array
Related Posts with How can I overlap two marginsplot graph???
Syntax for a mixed-effect repeated measures modelDear Statalisters, I am trying to implement a mixed-effet repeated measures model that was describe…
Outreg2: export table with marginal effect, standard error and p-valueI would like to use outreg2 to export result of logistic regression as a .xls file with marginal eff…
Defining Pseudo PanelHi All, I am currently using the world bank enterprise survey data for my PhD research. This is fir…
Tabout export tables to word/csvI am trying to export a frequency table generated by tab2 or tabout. Code: local var a b c d e f …
Merging variables into one variable after rehapingHi everyone, this is my first post to Statalist so I kindly request some patience as well as welcome…
Subscribe to:
Post Comments (Atom)
0 Response to How can I overlap two marginsplot graph???
Post a Comment