Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65073

limit y axis after using adjustrcspline

$
0
0
Dear Statalister,

I made a model containing two restricted cubic splines and 2 dichotomous variables using linear regression (commad regress).

* example of my model
regress logkpa i.wave2 alcsp* methadonyrsp* i.hcvstat

After running the model I used adjustrcspline to obtain the adjusted predictions. The only thing is that I want to change the limit of the y axis at 20 years as I have very wide confidence intervals >20 yrs (instead of having a graph showing the independent variable until 40 years).

* example of my post spline command
adjustrcspline, at(hcvstatus=1 wave2=1) link(log)

I looked at lineopts but I do not see anything to limit y axis or rescales any kind of axis.

I am using Stata 13.

Any tips are highly appreciated.

Thank you in advance.

Daniela.



Viewing all articles
Browse latest Browse all 65073

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>