Learn R Programming

BayesfMRI (version 0.10.1)

make_replicates: Make replicates

Description

beta and repl vectors are of length \(nMesh \times nSess \times n_field\). 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

make_replicates(nSess, field_names, spatial)

Value

replicates vector and betas for sessions

Arguments

nSess

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

field_names

Vector of names for each field

spatial

Spatial info