The Hosmer-Lemeshow Goodness-of-Fit Test
6 次查看(过去 30 天)
显示 更早的评论
Hi, I am not able to find any function to computation of Hosmer-Lemeshow test. I am trying to compute a quality of model for predicting of the defaults in credit risk modeling (logistic regression used.). Thank you
0 个评论
回答(2 个)
Prashanth Ravindran
2013-5-1
Check out this website for the matlab code for HL test. http://www.nyu.edu/projects/farbood/projects/stats.html
Prashanth
David Nielsen
2017-1-7
I am taking the chance to bring a function I wrote to compute the HL test. However, I have tested it with different packages (i.e. R) and I get different results. Please also check the very clearifying answer to why that may be here.
The function for the HL test uses binning in quantiles with same number of observations.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Hypothesis Tests 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!