BookmarkSubscribeRSS Feed
Lynn1
Calcite | Level 5

I am working on an analysis of RERI from a PHREG output. I am first trying to generate a lsmeans output that shows the four absolute estimates for defined binary 'Delivery Ischemic Event' (1,0) and 'C-Section' (1,0). When I run this, a control level is automatically selected. Is there a way to remove this in this statement so there is data populated in all four rows, eliminating the control/reference group in the lsmeans output? In this attached case; a control level was set at Delivery Ischemic Event=0, C-Section=0. My code and the output I am trying to modify is below.

 

ods exclude none;

Title "PHREG Delivery Index Event: Any Ischemic Event C/S RERI";

PROC PHREG DATA=DELIVDATA;

strata NRD_STRATUM;

weight DISCWT;

class        DELIVANYISCHEMIC (ref='0') DELIVCS (ref='0') /param=glm;

model days_frombirth*EXPOSUREDX(0) = DELIVANYISCHEMIC DELIVCS DELIVANYISCHEMIC*DELIVCS / type3;

hazardratio DELIVANYISCHEMIC/diff=all;

lsmeans DELIVANYISCHEMIC*DELIVCS /cl means diff exp plots=none;

ods output lsmeans=ph_lsmeans;

run;

quit;

 

Title "LS Means Output";

PROC PRINT DATA=work.ph_lsmeans;

run;

 

Many Thanks, let me know if any additional information is required 

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 0 replies
  • 782 views
  • 0 likes
  • 1 in conversation