r2diff: Calculate difference of R2 and adjusted R2

View source: R/r2diff.R

r2diffR Documentation

Calculate difference of R2 and adjusted R2

Description

Calculate difference of R2 and adjusted R2

Usage

r2diff(fit, mode = 1, digits = 3)

Arguments

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

Examples

fit=lm(mpg~wt*hp,data=mtcars)
r2diff(fit)
r2diff(fit,mode=2)

cardiomoon/processR documentation built on April 20, 2023, 3:38 a.m.