Description Usage Arguments Value Examples
View source: R/hw11Functions.R
Calculate R-Squared
1 | r2(pred, truth)
|
pred |
numerical vector of predicted values |
truth |
numerical vector of true values |
R-squared value as a measure of model fitness. formula: R^2 = 1 - RSS/TSS
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.