R/loadings-methods.R

setMethod(f="loadings",signature="MAIT",function(object,type){
  if(!(exists("type"))){type<-"none"}
  
  out <- switch(type,
         "none" = models(object),
         "PCA" = pcaLoadings(object),
         "PLS" = plsLoadings(object))
  return(out)
})

Try the MAIT package in your browser

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

MAIT documentation built on Nov. 8, 2020, 5:43 p.m.