sd_hIQR: Estimate SD robustly using the half IQR

View source: R/DVARS.R

sd_hIQRR Documentation

Estimate SD robustly using the half IQR

Description

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

Usage

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(\mu_w, \sigma_w^2).

Value

Scalar for the robust estimate of standard deviation.


fMRIscrub documentation built on Oct. 25, 2023, 9:07 a.m.