Calculate difference of R2 and adjusted R2
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 variaables one by one |
digits |
Integer indicating the number of decimal places |
fit=lm(mpg~wt*hp,data=mtcars) r2diff(fit) r2diff(fit,mode=2)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.