R/predict.msr.elnet.R

Defines functions predict.msr.elnet

predict.msr.elnet <- function (object, newdata, ...) {
    ms = object$ms
    x <- model.matrix(ms, newdata)
    mm <- model.matrix(object, x)
    predict(object$slm, mm)
}

Try the msr package in your browser

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

msr documentation built on May 30, 2017, 4:23 a.m.