powered by
Also called R-squared, which is 1 - residual_sum_of_squares / total_sum_of_squares.
RSQ(truth, response)
[numeric] vector of true values
[numeric] vector of predicted values
# NOT RUN { n = 20 set.seed(123) truth = rnorm(n) response = rnorm(n) RSQ(truth, response) # }
Run the code above in your browser using DataLab