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
}

Try the analogue package in your browser

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

analogue documentation built on June 21, 2021, 1:08 a.m.