partialR2adj function

Adjusted partial R2

Adjusted partial R2

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

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.

Returns

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

  • Maintainer: Anthony Ives
  • License: GPL-3
  • Last published: 2023-08-21