R/performance.predict.wa.R

Defines functions `performance.predict.wa`

`performance.predict.wa` <- function(object, ...) {
    if(is.null(object$performance))
        stop("No permformance statistics in 'object'")
    retval <- with(object$performance,
                   c(rmsep, r.squared, avg.bias, max.bias))
    names(retval) <- c("RMSEP","R2","Avg.Bias","Max.Bias")
    class(retval) <- "performance"
    attr(retval, "CV.method") <- object$CV.method
    retval
}
gavinsimpson/analogue documentation built on June 17, 2021, 2:37 a.m.