pseudo_r2 {pubh} | R Documentation |
Pseudo R2 (logistic regression)
pseudo_r2
Calculates R2 analogues (pseudo R2) of logistic regression.
Description
Pseudo R2 (logistic regression)
pseudo_r2
Calculates R2 analogues (pseudo R2) of logistic regression.
Usage
pseudo_r2(model)
Arguments
model |
A logistic regression model. |
Details
pseudo_r2
calculates three pseudo R2 of logistic regression models: 1) Nagelkerke, @0 Cox and Snell, 3) Hosmer and Lemeshow.
Value
A data frame with the calculated pseudo R2 values.
Examples
data(Oncho)
model_oncho <- glm(mf ~ area, data = Oncho, binomial)
glm_coef(model_oncho, labels = c("Constant", "Area (rainforest/savannah)"))
pseudo_r2(model_oncho)
[Package pubh version 1.3.2 Index]