Fit an fMRI linear regression model with a specified fitting strategy
Source:R/fmrilm.R
fmri_lm_fit.Rd
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.