R/get.loadings.R

#' A function to create the loadings matrix for  MEDALS.
#'
#' This function allows you to create loadings matrix for PC scores in the MEDALS pipeline. T
#' @param cov.mat The crossproduct matrix ($X^TX$) for decomposition to get loadings. Should be the output of imaging.cp.mat()
#' @export
get.loadings <- function(cov.mat){
  loadings <- svd(cov.mat, nu = 0)
  v = loadings$v
  return(v)
}
JMMaronge/medals documentation built on May 7, 2019, 10:12 a.m.