R2 | R Documentation |
Generic function to return variance explained (R2) estimates from various models. In some cases these will be true R2 values, in other cases they may be pseudo-R2 values if R2 is not strictly defined for a model.
R2(object, ...)
## S3 method for class 'lm'
R2(object, ...)
object |
A fitted model object. |
... |
Additional arguments passed to specific methods. |
Depends on the method dispatch.
The raw and adjusted r-squared value.
R2(lm(mpg ~ qsec * hp, data = mtcars))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.