Learn R Programming

BayesBrainMap (version 0.1.3)

update_S: Update S for VB FC Bayesian brain mapping

Description

Update S for VB FC Bayesian brain mapping

Usage

update_S(
  mu_tau2,
  mu_A,
  E_AtA,
  D_inv,
  D_inv_S,
  BOLD,
  nNets,
  nvox,
  ntime,
  final = FALSE
)

Value

List of length three: mu_S (QxV), E_SSt (QxQ), and cov_S (QxQxV).

Arguments

mu_tau2, mu_A, E_AtA,

Most recent posterior estimates

D_inv, D_inv_S

Some pre-computed quantities.

BOLD

(\(T \times V\) matrix) preprocessed fMRI data.

nNets, nvox, ntime

Number of networks, number of data locations, and time series length

final

If TRUE, return cov_S. Default: FALSE