View source: R/performance-metrics.R
| gazepoint_regression_metrics | R Documentation |
Regression metrics
gazepoint_regression_metrics(truth, prediction)
truth |
Observed numeric outcome values. |
prediction |
Predicted numeric outcome values. |
A one-row data frame containing the sample size, RMSE, MAE, R-squared value, and prediction correlation.
truth <- c(1.0, 2.0, 3.0, 4.0, 5.0)
prediction <- c(1.1, 1.8, 3.2, 3.9, 4.8)
gazepoint_regression_metrics(truth, prediction)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.