Learn R Programming

pedometrics (version 0.12.1)

adjR2: 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.

References

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

Examples

Run this code
# NOT RUN {
x <- adjR2(r2 = 0.95, n = 100, p = 80)
# }

Run the code above in your browser using DataLab