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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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