R/evaluation.R

Defines functions rmse rsquared

# RMSE root mean squared error
rmse <- function(error)
{
  sqrt(mean(error^2))
}
# coefficient of correlation, also known as r squared value
rsquared <- function(a,b)
{
  (var(a)-(var(a)-var(b))) / var(a)
}

Try the frost package in your browser

Any scripts or data that you put into this service are public.

frost documentation built on May 2, 2019, 10:19 a.m.