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???
How to fit a zero-inflated poisson model in GSEM?Hi friends, BACKGROUND: I have checked all examples showed in SEM/GSEM, but I do not find any examp…
Deleting observations from a panel data according to a criteriaHi, I am quite new to STATA (shame on me) and am trying to figure out how to get a desired dataset …
To NAME: excel export using value of variable.input forvalues i=1(1)300 { display `i' clear all display Area[1] use "data (`i').dta" export excel …
Help for nonlinear dynamic panel models with fixed effects (count data)Hi, I recently suffered from confusion about dynamic panel models with fixed effects for count data…
Keeping specific observations within groupsHi everyone, I am having difficulties wrapping my head around the following problem: I have a pane…
Subscribe to:
Post Comments (Atom)
0 Response to How can I overlap two marginsplot graph???
Post a Comment