R/loadings.mvdareg.R

loadings.mvdareg <- function (object, ncomp = object$ncomp, conf = .95, ...) {
  if (is.null(object$validation$loadings)) {
    {
      if (missing(ncomp) || is.null(ncomp)) {
        B <- object$loadings[, 1:object$ncomp]
      }
      else {
        B <- object$loadings[, ncomp]
      }
      return(B)
    } 
  } else {
    loadings.boots(object, ncomp = ncomp, conf = conf)
  }
}

Try the mvdalab package in your browser

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

mvdalab documentation built on Oct. 6, 2022, 1:05 a.m.