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???
Setting up a 3-dimensional panel in Stata with interaction termDear All, I have a query related to a using a 3-dimensional panel in Stata which I am unable to fig…
Please help: Merge 1:1 delivers different results after each runthroughI want to merge two datasets based on one variable (neither dataset contains duplicates on this vari…
How to draw this graph with Stata? Tempogram?Hi. I want to draw this graph with time use data and have been failing to produce one. What would be…
Two-way fixed effects in unbalanced panelHi everyone, I am replicating a paper in an economic journal which uses an unbalanced panel of firm…
marginsplot title (and text box) centered on graph region, not plot region-marginsplot- expands the title and text box across the entire graph region, which twoway plots don'…
Subscribe to:
Post Comments (Atom)
0 Response to How can I overlap two marginsplot graph???
Post a Comment