I am using the marginsplot command to create a graph which includes a confidence interval at each point.
However I want the starting point of the graph to be (0,0) and thus I need to take away one specific value from every point in the graph (a downward shift).
For example, if the graph starts at (0,25), I would need to take away 25 at every point for the graph to start at (0,0)
The code I am currently using is listed below.
Code:
svy: reg y x1 x2 x3 x4 margins, at(x1=(0(1)11)) marginsplot, recastci(rarea)
I am using Stata 15.1 for Windows 10.
Many thanks in advance,
James Clarke.
0 Response to marginsplot with a constant (downward shift)
Post a Comment