R/predict.msda.R

Defines functions predict.msda

Documented in predict.msda

predict.msda <- function(object, newx, z=NULL, ztest=NULL, gamma=NULL, ...){
  switch(class(object),
         "dsda" = predict.dsda(object,newx, z=z, ztest=ztest, gamma=gamma,...),
         "msda.original" = predict.msda.original(object,newx, z=z, ztest=ztest, gamma=gamma, ...),
         "msda.modified" = predict.msda.modified(object,newx, z=z, ztest=ztest, gamma=gamma, ...),
         stop('Fitted model type is not available for prediction')
  )
}

Try the TULIP package in your browser

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

TULIP documentation built on Jan. 13, 2021, 3:14 p.m.