R/logitreg.analog.R

Defines functions `logitreg.analog`

`logitreg.analog` <- function(object, groups, k = 1, ...) {
    if(is.null(object$train))
        stop("'object$train' missing. Refit 'object' with argument 'keep.train = TRUE'")
    out <- logitreg(object$train, groups = groups, k = k, ...)
    if(!is.null(attr(object, "method"))) {
        out$method <- attr(object, "method")
        ##attr(models, "method") <- attr(object, "method")
    }
    out
}

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.