Learn R Programming

BayesBrainMap (version 0.1.3)

update_A: Update A for VB FC Bayesian brain mapping using IW prior on FC

Description

Update A for VB FC Bayesian brain mapping using IW prior on FC

Usage

update_A(
  mu_tau2,
  mu_S,
  E_SSt,
  BOLD,
  ntime,
  nNets,
  nvox,
  u_samps,
  prior_FC,
  usePar = TRUE,
  final = 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 , number of locations

u_samps

Samples from Gamma for multivariate t prior on A

prior_FC

IW parameters for FC prior

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