Skip to contents

This function fits an fMRI linear regression model using the specified fmri_model object, dataset, and data splitting strategy (either "runwise" or "chunkwise"). It is primarily an internal function used by the fmri_lm function.

Usage

fmri_lm_fit(
  fmrimod,
  dataset,
  strategy = c("chunkwise", "runwise"),
  robust = FALSE,
  nchunks = 10,
  ...
)

Arguments

fmrimod

An object of type fmri_model.

dataset

An object derived from fmri_dataset containing the time-series data.

strategy

The data splitting strategy, either "chunkwise" or "runwise". Default is "chunkwise".

robust

Whether to use robust fitting. Default is FALSE.

nchunks

Number of data chunks when strategy is chunkwise. Default is 10.

...

Extra arguments.

Value

A fitted fMRI linear regression model with the specified fitting strategy.

See also

fmri_lm, fmri_model, fmri_dataset