Learn R Programming

BayesBrainMap (version 0.1.3)

update_A_Chol: Update A for VB FC Bayesian brain mapping using Cholesky prior for FC

Description

Update A for VB FC Bayesian brain mapping using Cholesky prior for FC

Usage

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

Value

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

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, nNets, nvox

Number of timepoints, number of networks, number of locations

prior_FC

IW parameters for FC prior

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.