bias | R Documentation |
bias
computes r-squared (r2), bias and root mean square error (RMSE) given a vector of observation and prediction.
bias(obs, pred)
obs |
vector of observation. |
pred |
vector of prediction. |
A data.frame containing r2, bias and RMSE.
bias(1:10, 1:10 + rnorm(10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.