update_A: Update A for VB FC Template ICA using IW prior on FC

View source: R/VB_FCtemplateICA.R

update_AR Documentation

Update A for VB FC Template ICA using IW prior on FC

Description

Update A for VB FC Template ICA using IW prior on FC

Usage

update_A(
  mu_tau2,
  mu_S,
  E_SSt,
  BOLD,
  ntime,
  nICs,
  nvox,
  u_samps,
  template_FC,
  usePar = TRUE,
  final = 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

u_samps

Samples from Gamma for multivariate t prior on A

template_FC

IW parameters for FC template

usePar

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

final

If TRUE, return cov_A. 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.