UpdateTheta_FCtemplateICAcpp | R Documentation |
Update parameters (M-step of the EM)
UpdateTheta_FCtemplateICAcpp( template_mean, template_var, template_FC, G, prior_params, BOLD, Y_sq_sum, post_sums, sigma2_alpha, verbose )
template_mean |
a matrix with dimensions V x Q giving the mean value of the independent components |
template_var |
a matrix with dimensions V x Q giving the variance of the independent components |
template_FC |
a list with two elements: psi, a Q x Q matrix, and nu, a scalar. These two values are the parameters of the Wishart prior on G |
G |
a Q x Q matrix of the prior covariance of A |
prior_params |
a length 2 vector with the prior parameters for tau_v |
BOLD |
a V x T matrix of BOLD values |
Y_sq_sum |
a length V vector with the sum of squared BOLD values at each data location |
post_sums |
a list of posterior summary statistics including the named
summaries |
sigma2_alpha |
a scalar multiplier for the prior variance of alpha |
verbose |
a boolean. Should messages be generated and output? |
A list with quantities tau_sq, alpha, and G
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.