Learn R Programming

fMRItools (version 0.7.2)

despike_3D: 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

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

Run the code above in your browser using DataLab