add_baseline_regressors: Helper function to append baseline regressors to the...

View source: R/fmri_utility_fx.R

add_baseline_regressorsR Documentation

Helper function to append baseline regressors to the convolved design matrix. These are especially useful for GLMs that use concatenated data for multiple runs, where run-specific intercepts and drift terms are needed.

Description

Helper function to append baseline regressors to the convolved design matrix. These are especially useful for GLMs that use concatenated data for multiple runs, where run-specific intercepts and drift terms are needed.

Usage

add_baseline_regressors(
  dmat_convolved,
  baseline_coef_order = -1L,
  baseline_parameterization = "Legendre"
)

Arguments

dmat_convolved

The design matrix containing convolved regressors for all events, created by build_design_matrix

baseline_coef_order

The polynomial order of baseline regressors to be added

baseline_parameterization

The parameterization of baseline regressors. Default is "Legendre". Alternative is "orthogonal.polynomials".

Value

A modified version of dmat_convolved that contains the baseline regressors requested by the user.


UNCDEPENdLab/fmri.pipeline documentation built on April 3, 2025, 3:21 p.m.