partialR2adj: Adjusted partial R2

View source: R/utils.R

partialR2adjR Documentation

Adjusted partial R2

Description

Get adjusted partial R2 by comparing a model and its reduced model.

Usage

partialR2adj(
  mod,
  df.f = summary(mod)$df[1],
  mod.r,
  df.r = summary(mod.r)$df[1]
)

Arguments

mod

A linear regression model.

df.f

Degree of freedom of the mod.

mod.r

A reduced model based on mod.

df.r

Degree of freedom of the reduced mod.r.

Value

A list of both R2 and adjusted R2 , the latter is not necessary to be between 0 and 1.


rr2 documentation built on Aug. 21, 2023, 5:11 p.m.