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

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

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