powered by
A generic function to compute different flavors of coefficients of determination
rsq(x, type)# S3 method for lm rsq(x, type = c("raw", "adj"))# S3 method for micsr rsq( x, type = c("mcfadden", "cox_snell", "cragg_uhler", "aldrich_nelson", "veall_zimm", "estrella", "cor", "ess", "rss", "tjur", "mckel_zavo", "w", "lm", "lr") )
# S3 method for lm rsq(x, type = c("raw", "adj"))
# S3 method for micsr rsq( x, type = c("mcfadden", "cox_snell", "cragg_uhler", "aldrich_nelson", "veall_zimm", "estrella", "cor", "ess", "rss", "tjur", "mckel_zavo", "w", "lm", "lr") )
a numeric scalar.
fitted model
the type of coefficient of determination
pbt <- binomreg(mode ~ cost + ivtime + ovtime, data = mode_choice, link = 'probit') rsq(pbt) rsq(pbt, "estrella") rsq(pbt, "veall_zimm")
Run the code above in your browser using DataLab