Hosmer and Lemeshow Test

by Irina 14. April 2007 12:13

Hosmer-Lemeshow test of goodness-of-fit can be performed by using the lackfit option after the model statement. This test divides subjects into deciles based on predicted probabilities, then computes a chi-square from observed and expected frequencies. It tests the null hypothesis that there is no difference between the observed and predicted values of the response variable.Therefore, when the test is not significant, as in this example, we can not reject the null hypothesis and say that the model fits the data well. We can also request the generalized R-square measure for the model by using rsquare option after the model statement. SAS gives the likelihood-based pseudo R-square measure and its rescaled measure.

 Categorical Data Analysis Using The SAS System, by M. Stokes, C. Davis and G. Koch offers more details on how the generalized R-square measures that you can request are constructed and how to interpret them.

 proc logistic data = hsb2;

 class prog(ref='1') /param = ref;

model hiwrite(event='1') = female prog read math / rsq lackfit;

run;

Related posts

Comments

9/3/2009 4:13:05 AM

I like reading your post. Keep up the good work.

Voguishchic

9/20/2010 2:54:04 AM

In simple fact your inventive creating skills has inspired me to begin my personal BlogEngine website now. Truly the blogging is spreading its wings quickly. I will bookmark your blog site and have my young children check out up the following frequently. I'm really confident they are going to discover a lot of new things right here than anybody else!

jordan retro 5

Add comment


(will show your Gravatar icon)  





Live preview

2/5/2012 9:05:26 PM

 

About the author

Irina Spivak Irina Spivak
Team Leader at G-Stat. More...


Send mail Email

Blogroll

    Disclaimer

    The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

    © Copyright 2012

    Sign in

    eXTReMe Tracker