Understanding Residual Chi-square Test in SAS


I ran a logistic regress in SAS but did not quite understand the meaning of Residual Chi-square Test. Could anybody help I would appreciate.


Dark Knight
Hosmer-Lemeshow test is a (summary level) goodness of fit test. Not a residual test.

Here the assumption is the model is perfect.
So if the model is perfect then the chisquare value ( obs value - actual value =0) become zero. and P value become 1.
So higher the P value ( smaller the chisquare value) is better.