Skip to contents

Package overview

ModelArray-package
ModelArray: Statistical Analysis of Element-Wise Neuroimaging Data

ModelArray class and constructor

ModelArray() show(<ModelArray>)
ModelArray class
ModelArray()
Load element-wise data from an HDF5 file

Accessors

sources()
Source filenames of a ModelArray object
scalars()
Element-wise scalar data of a ModelArray object
results()
Statistical results of a ModelArray object
nElements()
Number of elements in a ModelArray
nInputFiles()
Number of input files in a ModelArray
scalarNames()
Names of scalars in a ModelArray
analysisNames()
Names of analyses in a ModelArray
elementMetadata()
Element metadata from a ModelArray
exampleElementData()
Example per-element data.frame for user functions

Analysis functions

ModelArray.lm()
Fit element-wise linear models
ModelArray.gam()
Fit element-wise generalized additive models
ModelArray.wrap()
Run a user-supplied function for element-wise data

Per-element internals

These functions are called internally by the analysis functions. Most users should not call them directly.

analyseOneElement.lm()
Fit a linear model for a single element
analyseOneElement.gam()
Fit a GAM for a single element
analyseOneElement.wrap()
Run a user-supplied function for a single element

Merging

mergeModelArrays()
Merge multiple ModelArrays from different HDF5 files

Utilities

writeResults()
Write outputs from element-wise statistical analysis to an HDF5 file
h5summary() print(<h5summary>)
Summarize an HDF5 file without loading a full ModelArray
numElementsTotal()
Number of elements in ModelArray
gen_gamFormula_fxSmooth()
Generate GAM formula with factor-smooth interaction
gen_gamFormula_contIx()
Generate GAM formula with continuous-by-continuous interaction