EM_templateICA {templateICAr} | R Documentation |
EM Algorithms for Template ICA Models
Description
EM Algorithms for Template ICA Models
Usage
EM_templateICA.spatial(
template_mean,
template_var,
meshes,
BOLD,
theta0,
C_diag,
maxiter = 100,
usePar = FALSE,
epsilon = 0.01,
verbose = FALSE
)
EM_templateICA.independent(
template_mean,
template_var,
BOLD,
theta0,
C_diag,
maxiter = 100,
epsilon = 0.01,
usePar = FALSE,
verbose
)
Arguments
template_mean |
( |
template_var |
( |
meshes |
|
BOLD |
( |
theta0 |
(list) initial guess at parameter values: A ( |
C_diag |
( |
maxiter |
Maximum number of EM iterations. Default: 100. |
usePar |
Parallelize the computation over voxels? Default: |
epsilon |
Smallest proportion change between iterations. Default: 0.01. |
verbose |
If |
Details
EM_templateICA.spatial
implements the expectation-maximization
(EM) algorithm described in Mejia et al. (2019+) for estimating the
subject-level ICs and unknown parameters in the template ICA model with
spatial priors on subject effects.
In both models, if original fMRI timeseries has covariance
\sigma^2 I_T
, the prewhitened timeseries achieved by premultiplying
by (QxT
) matrix H
from PCA has diagonal covariance
\sigma^2HH'
, so C_diag is diag(HH')
.
Value
A list: theta (list of final parameter estimates), subICmean
(estimates of subject-level ICs), subICvar (variance of subject-level ICs,
for non-spatial model) or subjICcov (covariance matrix of subject-level ICs,
for spatial model – note that only diagonal and values for neighbors are
computed), and success (flag indicating convergence (TRUE
) or not
(FALSE
))