Skip to contents

Describes how the nuisance / baseline model should be built for every subject, without binding any particular subject's confound values. The concrete baseline_model is assembled per subject at instantiation time from this spec, the subject's sampling_frame, and the subject's confound matrix.

Usage

baseline_spec(
  degree = 3,
  basis = c("bs", "poly", "ns", "constant"),
  confounds = NULL,
  intercept = c("runwise", "global", "none"),
  nuisance_check = c("warn", "error", "drop", "none")
)

Arguments

degree

Integer drift degree passed to baseline_model().

basis

Drift basis: one of "bs", "poly", "ns", "constant".

confounds

Optional confound selection used to populate the per-subject nuisance regressors. Either NULL (no confounds), a character vector of confound column names / patterns, or a bidser confound-set object. Resolved to actual values by from_bids() / instantiate().

intercept

Intercept handling passed to baseline_model().

nuisance_check

How to handle problematic nuisance regressors, passed to baseline_model().

Value

An object of class baseline_spec.

Examples

baseline_spec(degree = 3, basis = "bs")
#> <baseline_spec>
#>   basis: bs  degree: 3  intercept: runwise
#>   confounds: none