03-27-2018
mmazariegos
Fluorite | Level 6
Member since
07-26-2017
- 7 Posts
- 4 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by mmazariegos
Subject Views Posted 8081 03-22-2018 01:16 PM 1488 03-21-2018 10:03 PM 1553 03-21-2018 12:26 AM 2586 08-03-2017 08:50 PM 2658 08-02-2017 08:22 PM 2173 07-26-2017 11:44 PM 2196 07-26-2017 06:19 PM -
Activity Feed for mmazariegos
- Liked Re: Restricted cubic splines in proportional hazard regression for Reeza. 03-22-2018 01:17 PM
- Liked Re: Restricted cubic splines in proportional hazard regression for Rick_SAS. 03-22-2018 01:17 PM
- Posted Re: Restricted cubic splines in proportional hazard regression on Graphics Programming. 03-22-2018 01:16 PM
- Posted Re: Non-linear association for proportional hazards models on Statistical Procedures. 03-21-2018 10:03 PM
- Posted Non-linear association for proportional hazards models on Statistical Procedures. 03-21-2018 12:26 AM
- Liked Re: Generalized least squares regression and fitted cubic splines for Rick_SAS. 08-07-2017 09:54 PM
- Posted Re: Generalized least squares regression and fitted cubic splines on Statistical Procedures. 08-03-2017 08:50 PM
- Liked Re: Generalized least squares regression and fitted cubic splines for Rick_SAS. 08-03-2017 08:49 PM
- Posted Generalized least squares regression and fitted cubic splines on Statistical Procedures. 08-02-2017 08:22 PM
- Posted Re: Regression with restricted cubic splines on Graphics Programming. 07-26-2017 11:44 PM
- Tagged Regression with restricted cubic splines on Graphics Programming. 07-26-2017 06:20 PM
- Tagged Regression with restricted cubic splines on Graphics Programming. 07-26-2017 06:20 PM
- Posted Regression with restricted cubic splines on Graphics Programming. 07-26-2017 06:19 PM
-
Posts I Liked
Subject Likes Author Latest Post 1 1 1 2
03-22-2018
02:26 PM
Your code includes the option PLOTS=(CUMHAZ), which means that you are only requesting the plot for the cumulative hazard function. See the documentation for the other plots that you can request.You can also browse the Examples section of the documentation to see if your plot appears in any of the examples. If not, see the doc for the OUTPUT statement and create an output data set that contains the statistic that you want.
To specify the placement of the knots, see the article "Regression with restricted cubic splines in SAS". It sounds like you might want the LIST option: such as
KNOTMETHOD=LIST(0, 6, 12, 24)
... View more
03-21-2018
10:03 PM
Hi Ballardw, I am using the proc phreg for Cox regression model, the time variable is "follow_timedx_yrs" (person-years), the case is "definicion11_1" (values 0 and 1) and the exposure are the dummies for lactationcat. Below the code to run the unadjusted model and the output: /*Unadjusted model*/ proc phreg data=diabetes2; model follow_timedx_yrs*definicion11_1(0) = lactationcat_1 lactationcat_2 lactationcat_3 lactationcat_4/rl; run; Attached the output. I see that there is a non-linear association, I mean I would expect to have decreased risk for diabetes for the longer duration of breastfeeding, but this is not the case. Some time ago I run regression models with restricted cubic splines using the code of Dr. Rick Wicklin but now I don't know how to do it when using Cox regression models. Thanks, Monica
... View more
08-04-2017
05:26 AM
1 Like
The OUTPUT statement in regression procedures usually supports a way to output the lower- and upper-limits for predicted means (and sometimes for individual predictions). Let's say you write the lower and upper values to the variables LCL and UCL. Then you can use the BAND statement in PROC SGPLOT like this:
band x=lactationbypar lower=LCL upper=UCL ;
... View more
07-26-2017
11:44 PM
Thank you very much Reeza, It works! 'spl 1'n
... View more