update_A_Chol: Update A for VB FC Template ICA using Cholesky prior for FC

View source: R/VB_FCtemplateICA.R

update_A_CholR Documentation

Update A for VB FC Template ICA using Cholesky prior for FC

Description

Update A for VB FC Template ICA using Cholesky prior for FC

Usage

update_A_Chol(
  mu_tau2,
  mu_S,
  E_SSt,
  BOLD,
  ntime,
  nICs,
  nvox,
  template_FC,
  final = FALSE,
  exact = FALSE,
  usePar = TRUE,
  verbose = FALSE
)

Arguments

mu_tau2, mu_S, E_SSt

Most recent estimates of posterior moments for these variables.

BOLD

(T \times V matrix) preprocessed fMRI data.

ntime, nICs, nvox

Number of timepoints, number of ICs, number of locations

template_FC

IW parameters for FC template

final

If TRUE, return cov_A. Default: FALSE

exact

If FALSE, at intermediate steps (final = FALSE) will attempt to approximate V_k as described in the appendix of Mejia et al. 2024. Setting exact = TRUE may be helpful when using spatial ESS correction, which can lead to a lower rate of usable prior samples for the approximation.

usePar

Parallelize the computation? Default: FALSE. Can be the number of cores to use or TRUE, which will use the number available minus two.

verbose

If TRUE, display progress of algorithm. Default: FALSE.

Value

List of length two: mu_A (TxQ) and E_AtA (QxQ).


templateICAr documentation built on Oct. 14, 2024, 5:08 p.m.