Programming the statistical procedures from SAS

Stratified unadjusted Cox model Hazard ratio

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 6
Accepted Solution

Stratified unadjusted Cox model Hazard ratio

       

I'm trying to derive the Stratified unadjusted Cox model Hazard ratio and confidence intervals. The specs are such:

 

Hazard ratio as a treatment effect measure will be derived from the
Cox proportional hazards model using SAS procedure PHREG.
The stratified unadjusted Cox model will be used (where the baseline
hazard function is allowed to vary across strata) for the primary
analysis, i.e. the MODEL statement will include the treatment group
variable as the only covariate and the STRATA statement will include
stratification variables.
PROC PHREG data=dataset;
MODEL survtime*censor(1)=trt / TIES=EXACT;
STRATA stratum1 .. <stratum k>;
RUN;
/* survtime represents variable containing event/censor times;
   censor represents censoring variable (1=censored, 0=event);
   trt represents treatment group variable;
   stratum1 to stratumk represent stratification variables */
Hazard ratio with two-sided 95% confidence interval will be based on Wald test.

 

 

 

I need to capture the ods output for hazard ratio and confidence intervals into a dataset for reporting. This is the current code:

 

 

        ODS TRACE ON;
        ODS OUTPUT ;

        proc phreg data = pop3;
        model months*event(0) = TRT01PN  TIES=EXACT;
        STRATA STRVAL1 STRVAL2 STRVAL3 ;
        run;

        ODS OUTPUT CLOSE;
        ODS TRACE OFF;

 

 

Which ODS output dataset(s) need to be captured and do the values require extra code to derive?

 

Thank you!


Accepted Solutions
Solution
‎11-23-2015 03:57 PM
Contributor ndp
Contributor
Posts: 61

Re: Stratified unadjusted Cox model Hazard ratio

ODS OUTPUT PHREG.PARAMETERESTIMATES=HR;

View solution in original post


All Replies
Solution
‎11-23-2015 03:57 PM
Contributor ndp
Contributor
Posts: 61

Re: Stratified unadjusted Cox model Hazard ratio

ODS OUTPUT PHREG.PARAMETERESTIMATES=HR;

🔒 This topic is solved and locked.

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

Discussion stats
  • 1 reply
  • 273 views
  • 0 likes
  • 2 in conversation