sd_hIQR: Estimate SD robustly using the half IQR

Description Usage Arguments Value

View source: R/DVARS.R

Description

Estimates standard deviation robustly using the half IQR (and power trans.). Used to measure DVARS in Afyouni and Nichols, 2018.

Usage

1
sd_hIQR(x, d = 1)

Arguments

x

Numeric vector of data to estimate standard deviation for.

d

The scalar power transformation parameter. w = x^{1/d} is computed to obtain w \sim N(μ_w, σ_w^2).

Value

Scalar for the robust estimate of standard deviation.


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