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???
Panel Data with Count DV - CEM & Diff-in-Diff & NBREGHello! In my dataset, I'm looking to model the effect of a particular treatment on the number of pa…
Drop unmatched data after IPTWHello everyone, I'd like to ask how to drop unmatched observations after kernel and IPTW matching. T…
multilevel modelling - syntaxHello, How are the two following lines of code different in the way they treat the cluster variable…
Error "pweights must be positive"Hi Statalists, I keeps getting an error message, ""pweights must be positive", when using the "mixe…
graph estimated coefficients after oaxaca_rif commandDear all, I use oaxaca_rif user written command by Rios-Avila (Rios-Avila, F. 2020. Recentered infl…
Subscribe to:
Post Comments (Atom)
0 Response to How can I overlap two marginsplot graph???
Post a Comment