prep_regional | R Documentation |
This function processes the input data and prepares the regions for MVPA analysis by extracting voxel indices for each region of interest (ROI) specified in the region_mask.
prep_regional(model_spec, region_mask)
model_spec |
A model specification object. |
region_mask |
A mask representing different regions in the brain image. |
A list containing information about the regions for further processing: * allrois: A vector of unique ROI labels. * region_vec: A vector representation of the region_mask. * region_set: A sorted vector of unique ROI labels in the region_mask. * vox_iter: A list containing voxel indices for each ROI. * lens: A vector containing the number of voxels in each ROI. * keep: A logical vector indicating if an ROI should be kept for analysis (those with more than one voxel).
# Create example inputs
model_spec <- list(dataset = "Example dataset")
region_mask <- matrix(c(rep(0, 5), rep(1, 5), rep(2, 5), rep(3, 5)), nrow = 5)
# Prepare regional data
regional_data <- prep_regional(model_spec, region_mask)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.