BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
debblack
Calcite | Level 5

I have a binary covariate using PROC PHREG that states it has 0 DF in the output. I have checked and there are definitely two categories in the data for this covariate. I am not sur ehow to proceed.

1 ACCEPTED SOLUTION

Accepted Solutions
JacobSimonsen
Barite | Level 11

It is not enough you have more than one value of the covariate in your data. There should also be events in all levels ( I mean, not all persons with same level should be censored).

It is even more complicated: At the time a person has events, there should also be persons with different values of covariates at risk at that time, if that event should contribute anything. If all events fail this, then it is possible to have events at several levels and still no estimate (and df=0).

View solution in original post

3 REPLIES 3
Reeza
Super User

Can you post some of the output that illustrates your issue?

JacobSimonsen
Barite | Level 11

It is not enough you have more than one value of the covariate in your data. There should also be events in all levels ( I mean, not all persons with same level should be censored).

It is even more complicated: At the time a person has events, there should also be persons with different values of covariates at risk at that time, if that event should contribute anything. If all events fail this, then it is possible to have events at several levels and still no estimate (and df=0).

debblack
Calcite | Level 5

Thank you this is very helpful and I can see my error because to model mortality and whether there is an extreme weather event but of course each date has the same value hence my error

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
  • 3 replies
  • 3170 views
  • 0 likes
  • 3 in conversation