R/get.loadings.R

Defines functions get.loadings

Documented in get.loadings

#' 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)
}
neuroconductor-devel-releases/medals documentation built on Oct. 28, 2020, 3:53 a.m.