You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for your paper and providing this code, very useful!
I just quickly wanted to flag that there is a little error in the H-L-C calculation when splitting the dataset into equal chunks. If the dataset size isn't a multiple of g, the nrow(data) % g rows with the highest predicted scores are grouped with the lowest decile group. The issue is in the following line:
Thanks for your paper and providing this code, very useful!
I just quickly wanted to flag that there is a little error in the H-L-C calculation when splitting the dataset into equal chunks. If the dataset size isn't a multiple of
g
, thenrow(data) % g
rows with the highest predicted scores are grouped with the lowest decile group. The issue is in the following line:cali_tutorial/hosmer_lemeshow.R
Line 10 in cb854b3
Minimal example
Easy fix
An easy fix could be to use
dplyr::ntile
instead orrep
.The text was updated successfully, but these errors were encountered: