Learn R Programming

BayesfMRI (version 0.3.11)

organize_replicates: Organize replicates

Description

beta and repl vectors are of length \(nvox \times n_sess \times n_task\). The ith repl vector is an indicator vector for the cells corresponding to the ith column of x. The ith beta vector contains data indices (e.g. 1,...,V) in the cells corresponding to the ith column of x.

Usage

organize_replicates(n_sess, task_names, mesh)

Value

replicates vector and betas for sessions

Arguments

n_sess

The number of sessions sharing hyperparameters (can be different tasks)

task_names

Vector of names for each task

mesh

An "inla.mesh" object (see make_mesh for surface data).