
Last chance! 50% off unlimited learning
Sale ends in
D
for generalized linear (mixed) models for binary data. It is
an alternative to other Pseudo-R-squared values
like Nakelkerke's R2 or Cox-Snell R2.cod(x)
D
Coefficient of Discrimination, also known as
Tjur's R-squared value.pseudo_r2
for Nagelkerke's and Cox and Snell's pseudo
r-squared coefficients.data(efc)
# Tjur's R-squared value
efc$services <- dicho(efc$tot_sc_e, "v", 0, as.num = TRUE)
fit <- glm(services ~ neg_c_7 + c161sex + e42dep,
data = efc,
family = binomial(link = "logit"))
cod(fit)
Run the code above in your browser using DataLab