R/predict.gen.ridge.R

predict.gen.ridge <-
function (object, newdata, ...) 
{
    if (missing(newdata)) 
        fitted(object)
    else scale(newdata, object$xmeans, FALSE) %*% object$coef
}

Try the mda package in your browser

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

mda documentation built on July 9, 2023, 7:14 p.m.