powered by
Defined as: 1 - (1 - rsq) * (p / (n - p - 1L)). Adjusted R-squared is only defined for normal linear regression.
ARSQ(truth, response, n, p)
[numeric] vector of true values
[numeric] vector of predicted values
[numeric] number of observations
[numeric] number of predictors
# NOT RUN { n = 20 p = 5 set.seed(123) truth = rnorm(n) response = rnorm(n) ARSQ(truth, response, n, p) # }
Run the code above in your browser using DataLab