The Hosmer-Lemeshow Goodness of Fit Test is generated by the LACKFIT
option in the MODEL Statement.
The "C" statistic is automatically generated by PROC LOGISTIC and is
in the part of the output called "Association of Predicted
Probabilities and Observed Outcomes".
These two measures are NOT identical.
I am not sure what the CLASS statement is supposed to do for you in
the code sample you provided.
Also, if you are trying to implement a "survivial analysis," I am not
sure that logistic regression is the best tool to use.
SAS Press authors have written extensively about logitstic regression
and survival analysis using SAS Software.
See, for example:
Allison, Logistic Regression Using the SAS System
Allison, Survival Analysis Using the SAS System
Stokes, et. al., Categorical Data Analysis Using the SAS System
And, of course, there's the PROC LOGISTIC documentation chapter in the
Hope this helps...
Sierra Information Services
Post by Idahoe
I am testing a risk model that outputs an estimate of 1-year survival
(SHFM1). �The observed 1-year outcomes are binary (out_365). �I would
appreciate some help with the sas code, as I cannot find an example
online or in this group (only discussions of the model(s) ).
proc logistic data=newhl;
class shfm1 out_365;
Is this correct? �I am specifically looking for the HL GoF test, which
I beleive is "c" on the output.