powered by
Calculate difference of R2 and adjusted R2
r2diff(fit, mode = 1, digits = 3)
An object of class lm
Integer If 1, remove all interaction. If 2, remove variaables one by one
Integer indicating the number of decimal places
# NOT RUN { fit=lm(mpg~wt*hp,data=mtcars) r2diff(fit) r2diff(fit,mode=2) # }
Run the code above in your browser using DataLab