Programming the statistical procedures from SAS

Multivariable Cox proportional hazards regression.

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 11
Accepted Solution

Multivariable Cox proportional hazards regression.

Hi Everyone,

 

Someone please explain me through your own example (data) the:- 

Multivariable Cox proportional hazards regression models (procedure/fitting in SAS) - adjusting for baseline covariates in the model.

 

Thanks!


Accepted Solutions
Solution
‎08-28-2016 02:09 AM
Grand Advisor
Posts: 16,940

Re: Multivariable Cox proportional hazards regression.

Have you looked at examples in documentation?

I think the third one is applicable. 

http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_phreg_exampl...

 

View solution in original post


All Replies
Solution
‎08-28-2016 02:09 AM
Grand Advisor
Posts: 16,940

Re: Multivariable Cox proportional hazards regression.

Have you looked at examples in documentation?

I think the third one is applicable. 

http://support.sas.com/documentation/cdl/en/statug/68162/HTML/default/viewer.htm#statug_phreg_exampl...

 

Occasional Contributor
Posts: 11

Re: Multivariable Cox proportional hazards regression.

Hi Reeza,

 

Thanks for the link.  Can you please clarify one more thing.  Like we use class statement in our 'proc logistic' procedure (to specify our categorical variables used in model statement).  Do we have to do the same in 'proc phreg' also? And, do it serves the same purpose 'specify our categorical variables used in model statement'?

 

Thanks!

Grand Advisor
Posts: 16,940

Re: Multivariable Cox proportional hazards regression.


Camp wrote:

 Like we use class statement in our 'proc logistic' procedure (to specify our categorical variables used in model statement).  Do we have to do the same in 'proc phreg' also?

 

Yes, you use the CLASS statement in PROC PHREG similar to how you would in PROC LOGISTIC

 

 


Camp wrote:

And, do it serves the same purpose 'specify our categorical variables used in model statement'?

 


Not sure what that means. You still have to list the categorical variables in both your CLASS and MODEL statements.

Occasional Contributor
Posts: 11

Re: Multivariable Cox proportional hazards regression.

Thanks! your answer clarifies my last question. Can you suggest/answer my one question (as I am not sure)

 

As per standard practice: Can we include continuous variable specially 'Age' on RHS of = sign (i.e. independent variable) in model statement for PHREG procedure?

 

I am asking this because I am not a statistician.

Grand Advisor
Posts: 16,940

Re: Multivariable Cox proportional hazards regression.

My personal suggestion, don't run a proc if you don't know what it does, especially the statistical procedures. 

 

Yes, continuous and categorical variables can go into a model. 

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 230 views
  • 2 likes
  • 2 in conversation