rsq | R Documentation |
A generic function to compute different flavors of coefficients of determination
rsq(x, type)
## S3 method for class 'lm'
rsq(x, type = c("raw", "adj"))
## S3 method for class 'micsr'
rsq(
x,
type = c("mcfadden", "cox_snell", "cragg_uhler", "aldrich_nelson", "veall_zimm",
"estrella", "cor", "ess", "rss", "tjur", "mckel_zavo", "w", "lm", "lr")
)
x |
fitted model |
type |
the type of coefficient of determination |
a numeric scalar.
pbt <- binomreg(mode ~ cost + ivtime + ovtime, data = mode_choice, link = 'probit')
rsq(pbt)
rsq(pbt, "estrella")
rsq(pbt, "veall_zimm")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.