R/calc_rf_perf.R

Defines functions calc_rf_perf

Documented in calc_rf_perf

#' calculates rf performance
#' @param data data with variables Y and Ypred
#' @export
#' @return tibble with meanError and bias
calc_rf_perf=function(data){
  result=tibble(
    meanError=mean(abs(data$Ypred-data$Y)),
    bias=mean(data$Ypred-data$Y)
  )
  return(result)
}
lvaudor/woody documentation built on March 22, 2022, 9:53 a.m.