despike_3D {fMRItools}R Documentation

3dDespike from AFNI

Description

Identify and interpolate outliers. See the AFNI documentation for 3dDespike for additional information.

Usage

despike_3D(Yt, c1 = 2.5, c2 = 4)

Arguments

Yt

The data vector.

c1

spike threshold. Default: 2.5.

c2

upper range of the acceptable deviation from the fit. Default: 4.

Examples

if (requireNamespace("fda", quietly=TRUE) && requireNamespace("quantreg", quietly=TRUE)) {
 y <- rnorm(99) + cos(seq(99)/15)*3
 y[20] <- 20
 despike_3D(y)
}


[Package fMRItools version 0.4.2 Index]