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.
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).
Can you post some of the output that illustrates your issue?
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).
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
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.