r2diff | R Documentation |
Calculate difference of R2 and adjusted R2
r2diff(fit, mode = 1, digits = 3)
fit |
An object of class lm |
mode |
Integer If 1, remove all interaction. If 2, remove variables one by one |
digits |
Integer indicating the number of decimal places |
fit=lm(mpg~wt*hp,data=mtcars) r2diff(fit) r2diff(fit,mode=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.