Fit GLM with full config (AR/robust) on a transformed series
Source:R/aaa_plugin_api.R
fit_glm_with_config.RdRuns the same integrated solver used by fmri_lm, honoring AR/robust options
from cfg, but on an externally provided response matrix Y (T×V). This is
intended for engines that transform the time-series before inference.
Usage
fit_glm_with_config(
model,
Y,
cfg = NULL,
dataset = NULL,
strategy = "external",
engine = "external"
)Arguments
- model
An
fmri_modeldescribing the design.- Y
Numeric matrix with
nrow(Y)time points and columns matching voxels.- cfg
Optional
fmri_lm_config; defaults tofmri_lm_control().- dataset
Optional dataset backing the model. Defaults to
model$datasetwhen available.- strategy
Character label recorded on the returned object. Defaults to "external".
- engine
Character label indicating the engine that produced the fit. Defaults to "external".