R/predict.msc.slm.R

Defines functions predict.msc.slm

Documented in predict.msc.slm

predict.msc.slm <- function (object, newdata, ...) {
    ms = object$ms
    x <- model.matrix(ms, newdata)
    mm <- model.matrix(object, x)
    mm %*% object$slm[[ms$predictLevel]]$lm$coefficients    
}

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.