Description Usage Arguments Value Author(s) References See Also Examples
The HL decile-of-risk test. Validity of the test assumes that the number of covariate patterns is close to the number of observations which is violated when many observations have the same covariate pattern and several ties will impact the required ordering and grouping (by deciles) of observations. This is less likely when there is at least one continuous covariate. Not valid for grouped data.
1 | HL_test(object, g = 10)
|
object |
object of class 'lbreg'. |
g |
number of groups |
A list with elements
X2 |
HL statistic |
pvalue |
p-value for the test from Chi Squared with df = g-2 |
Bernardo B. Andrade
Hosmer D W, Lemeshow S 2000. Applied Logistic Regression. New York, USA: John Wiley and Sons.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
The Hosmer-Lemeshow Goodness-of-Fit Test
$X2
[1] 28.89441
$pvalue
[1] 0.0003309147
$g
[1] 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.