Compute posterior mean and precision matrix of s
compute_mu_s(y_vec, D, Dinv_s0, R_inv, theta, P, C_diag)
A list containing the posterior mean \(\mu\) (mu) and precision \(\Omega\) (Omega) of s=(s1,...,sQ), along with the supporting vector m, where \(\mu = \Omega^{-1}m\).
Vectorized, dimension-reduced fMRI data, grouped by locations. A vector of length \(QV\).
Sparse diagonal matrix of prior standard deviations
The inverse of D times s0_vec
Estimate of inverse spatial correlation matrix (sparse)
List of current parameter estimates
Permutation matrix for regrouping by locations (instead of by networks.)
Diagonals of residual covariance of the first level model. A vector of length \(Q\).