Learn R Programming

rgr (version 1.1.15)

gx.adjr2: Function to compute Adjusted r-squared values

Description

Function to compute the Adjusted R-square value from the Multiple R-squared value displayed in the summary of a lm object. See Note below.

Usage

gx.adjr2(mr2, n, p)

Arguments

mr2

the Multiple R-squared value.

n

the number of cases in the regression model.

p

the number of independent (explanatory or predictor) variables in the model.

See Also

summary, AIC, step

Examples

Run this code
# NOT RUN {
gx.adjr2(0.7394, 111, 11)
gx.adjr2(0.713, 111, 6)
# }

Run the code above in your browser using DataLab