powered by
Similar to RSQ (R-squared). Defined as explained_sum_of_squares / total_sum_of_squares.
EXPVAR(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) EXPVAR(truth, response) # }
Run the code above in your browser using DataLab