Learn R Programming

psycho (version 0.4.91)

R2_tjur: Tjur's (2009) coefficient of determination.

Description

Computes Tjur's (2009) coefficient of determination.

Usage

R2_tjur(fit)

Arguments

fit

Logistic Model.

References

Tjur, T. (2009). Coefficients of determination in logistic regression models<U+2014>A new proposal: The coefficient of discrimination. The American Statistician, 63(4), 366-372.

Examples

Run this code
# NOT RUN {
library(psycho)
library(lme4)

fit <- lme4::glmer(vs ~ wt + (1 | gear), data = mtcars, family = "binomial")
R2_tjur(fit)
# }

Run the code above in your browser using DataLab