BookmarkSubscribeRSS Feed
SASUser64
Calcite | Level 5

I have a competing risks model using phreg and am trying to find the group means through lsmeans. I'm not sure I understand the results; the estimates are incredibly small (or negative if I include control variables in the model) compared to the actual group means when I run the same model through proc glimmix as a linear regression model. The outcome is hospital length of stay. Here is some of the code:

 

proc phreg data=cif_icp_crani;
class group / param=glm order=internal ref=last;
model los_adj*outcome(0) = group / rl eventcode=1;
format group groupf.;
hazardratio group / diff=pairwise;;
lsmeans group / means exp cl;
run;

proc glimmix data=cif_icp_crani;
class group;
model los_adj = group;
lsmeans group;
run;

 

Can someone please explain to me what the lsmeans output in a phreg model actually means and why the estimates are so different than what the actually group means are? Thank you.

4 REPLIES 4
SteveDenham
Jade | Level 19

A comparison of the lsmeans output from the two PROCs would be useful to check whether the difference can be explained by the scale on which the models are operating.  That is what I think is happening, but I could be WAAAAAY off.

 

SteveDenham

SASUser64
Calcite | Level 5

Thanks, Steve! Here is the output from the phreg model:

 

Group Least Squares Means

         
GroupEstimateStandard Errorz ValuePr > |z|AlphaLowerUpperExponentiatedExponentiated LowerExponentiated Upper
Medicaid MCO0.27170.067144.05<.00010.050.14010.40331.31221.15041.4968
Medicaid FFS0.22270.065183.420.00060.050.094910.35041.24941.09961.4197
Private Ins.00..0.0500111

Here is the output from the regression model:

Group Least Squares Means

    
GroupEstimateStandardDFt ValuePr > |t|
  Error   
Medicaid FFS36.32121.3628207426.65<.0001
Medicaid MCO29.97071.3407207422.36<.0001
Private Ins.21.94831.2914207417<.0001
SteveDenham
Jade | Level 19

And I am really off - it's not a scale thing. Maybe @SAS_Rob would be a good resource, or could at least point you to someone who is.

 

SteveDenham

SAS_Rob
SAS Employee

I would say that there is really no fair way to compare the two models as they are now.  PHREG is fitting a competing risks model with a very different likelihood function than GLIMMIX would fit (treating the response as having a normal LL by default).

This section of the documentation might be helpful in understanding some of the differences.

SAS Help Center: Analysis of Competing-Risks Data

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 4 replies
  • 816 views
  • 1 like
  • 3 in conversation