Skip to contents

ModelArray

Load, access, and write ModelArray class data

ModelArray() ModelArray()
An S4 class to represent element-wise scalar data and statistics.
results(<ModelArray>)
Statistical results of an ModelArray object
scalars(<ModelArray>)
Element-wise scalar data of an ModelArray object
show(<ModelArray>)
Show ModelArray object
sources(<ModelArray>)
Source filenames of an ModelArray object
writeResults()
Write outputs from element-wise statistical analysis to the HDF5 file.
numElementsTotal()
Number of elements in ModelArray

Model fitting

Fit models for element-wise data

ModelArray.lm()
Fit linear model for element-wise data
ModelArray.gam()
Run GAM for element-wise data

Supports for model fitting

Generate GAM functions with interactions. Use them only if you hope to include interaction terms in GAM formula.

generator_gamFormula_continuousInteraction()
Generate GAM formula with continuous*continuous interaction
generator_gamFormula_factorXsmooth()
Generate GAM formula with factor-smooth interaction

Behind the scene

Fit a model for one element

analyseOneElement.lm()
Fit linear model for one element.
analyseOneElement.gam()
Fit GAM for one element