scrub: Data-driven scrubbing

Description Usage Arguments Value

View source: R/scrub.R

Description

Performs projection scrubbing or DVARS scrubbing, and optionally thresholds to identify artifactual time points.

Usage

1
scrub(X, method = c("projection", "DVARS"), ...)

Arguments

X

A T by V numeric matrix representing an fMRI run. There should not be any missing data (NA or NaN).

method

"projection" (default) or "DVARS"

...

Additional arguments to the specific scrubbing function: see pscrub or DVARS.

Value

A list with components

measure

A length T vector or data.frame with T rows, giving the outlyingness measure(s)

measure_info

Describes the outlyingness measure(s)

outlier_cutoff

The outlier cutoff value(s).

outlier_flag

A length T vector or data.frame with T rows, where TRUE indicates suspected outlier presence.


neuroconductor/fMRIscrub documentation built on Dec. 22, 2021, 1:10 a.m.