adjR2: Adjusted coefficient of determination

View source: R/adjR2.R

adjR2R Documentation

Adjusted coefficient of determination

Description

Calculates the adjusted coefficient of determination of a multiple linear regression model.

Usage

adjR2(r2, n, p)

Arguments

r2

Numeric vector with the coefficient of determination to be adjusted.

n

Numeric vector providing the number of observations used to fit the multiple linear regression model.

p

Numeric vector providing the number of parameters included in the multiple linear regression model.

Value

A numeric vector with the adjusted coefficient of determination.

Author(s)

Alessandro Samuel-Rosa alessandrosamuelrosa@gmail.com

References

Coefficient of determination. Wikipedia, The Free Encyclopedia. Available at https://en.wikipedia.org/wiki/Coefficient_of_determination.

Examples

x <- adjR2(r2 = 0.95, n = 100, p = 80)

samuel-rosa/pedometrics documentation built on June 21, 2022, 11:32 p.m.