Internal function used in joint approach to group-analysis
beta.posterior.thetasamp(
theta,
spde,
Xcros,
Xycros,
contrasts,
quantiles,
excursion_type,
gamma,
alpha,
nsamp_beta = 100
)
A list containing mu
, quantiles
, and F
A single sample of theta (hyperparameters) from q(theta|y)
A SPDE object from inla.spde2.matern() function.
A crossproduct of design matrix.
A crossproduct of design matrix and BOLD y.
A list of vectors of length M*K specifying the contrasts of interest.
Vector of posterior quantiles to return in addition to the posterior mean
Vector of excursion function type (">", "<", "!=") for each contrast
Vector of activation thresholds for each contrast
Significance level for activation for the excursion sets
The number of samples to draw from full conditional of beta given the current value of theta (p(beta|theta,y))
This function requires the INLA
package, which is not a CRAN package.
See https://www.r-inla.org/download-install for easy installation instructions.