UpdateTheta_FCtemplateICAcpp: Update parameters (M-step of the EM)

View source: R/RcppExports.R

UpdateTheta_FCtemplateICAcppR Documentation

Update parameters (M-step of the EM)

Description

Update parameters (M-step of the EM)

Usage

UpdateTheta_FCtemplateICAcpp(
  template_mean,
  template_var,
  template_FC,
  G,
  prior_params,
  BOLD,
  Y_sq_sum,
  post_sums,
  sigma2_alpha,
  verbose
)

Arguments

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 AS_sq_sum, yAS_sum, A_sum, and AtA_sum

sigma2_alpha

a scalar multiplier for the prior variance of alpha

verbose

a boolean. Should messages be generated and output?

Value

A list with quantities tau_sq, alpha, and G


templateICAr documentation built on Feb. 16, 2023, 8:14 p.m.