View source: R/misc_functions.R
pseudo_r2 | R Documentation |
pseudo_r2
Calculates R2 analogues (pseudo R2) of logistic regression.Pseudo R2 (logistic regression)
pseudo_r2
Calculates R2 analogues (pseudo R2) of logistic regression.
pseudo_r2(model)
model |
A logistic regression model. |
pseudo_r2
calculates three pseudo R2 of logistic regression models: 1) Nagelkerke, @0 Cox and Snell, 3) Hosmer and Lemeshow.
A data frame with the calculated pseudo R2 values.
data(Oncho)
model_oncho <- glm(mf ~ area, data = Oncho, binomial)
glm_coef(model_oncho, labels = c("Constant", "Area (rainforest/savannah)"))
pseudo_r2(model_oncho)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.