tjurD | R Documentation |
Computes Tjur's D
tjurD(m)
m |
A glm object with family = binomial |
Computes Tjur's D and produces a probability plot
A list with two elements, rsq = Tjur's D, and plot = ggplot object.
## Not run:
if(interactive()){
m <- glm(am ~ mpg, family = binomial, mtcars)
out <- tjurD(m)
out$rsq
out$plot
}
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.