Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

r2diff

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 variaables 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)

processR

Implementation of the 'PROCESS' Macro

v0.2.6
GPL-2
Authors
Keon-Woong Moon [aut, cre], Sokyoung Hong [ctb]
Initial release
2021-1-5

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.