R/gof.R

## Root mean squared error
rmse <- function (actual,estimated) {
  e <- actual - estimated
  sqrt(mean(e^2))
}

## Average absolute error
aabse <-function (actual,estimated){
  e <- actual - estimated	
  mean(abs(e))
}   							

Try the termstrc package in your browser

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

termstrc documentation built on May 2, 2019, 4:50 p.m.