:exclamation: This is a read-only mirror of the CRAN R package repository. glmtoolbox — Set of Tools to Data Analysis using Generalized Linear Models. Homepage: https://mlgs.netlify.app/ Report bugs for this package: https://github.com/lhvanegasp/glmtoolbox/issues
The function hltest() does not seem to work properly, the p-values it returns seem impossibly small. Take for instance the following setup, with independent y (response) and x (predictor):
y = sample(0:1, 1000, repl=TRUE)
x = rnorm(1000)
m = glm(y~x, family='binomial')
The call hltest(m) produces the following (up to randomness):
The function
hltest()
does not seem to work properly, the p-values it returns seem impossibly small. Take for instance the following setup, with independenty
(response) andx
(predictor):The call
hltest(m)
produces the following (up to randomness):Compare this with
performance::performance_hosmer(m)
, which producesand
vcdExtra::HLtest(m)
, which yieldsBoth of the latter are the same and much more sensible (i.e., non-rejection) outputs.
Are these not the same Hosmer and Lemeshow tests?