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.
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.