Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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.

Note

The Adjusted R-squared value is a long established criterion. It may be calculated casually by this function, or may be extracted from a lm object, using summary(lm.object)[[9]]. However, users are urged to investigate Akaike's Information Criterion, AIC, as a procedure for comparing the fits of alternate models, and the use of the step function for automated model selection.

Author(s)

Robert G. Garrett

See Also

Examples

gx.adjr2(0.7394, 111, 11)
gx.adjr2(0.713, 111, 6)

rgr

Applied Geochemistry EDA

v1.1.15
GPL-2
Authors
Robert G. Garrett
Initial release
2018-03-05

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.