Skip to contents

Rousseeuw & Croux (1993) Sn robust scale

Usage

SnScale(y, constant = 1.1926, finite_corr = TRUE)

Arguments

y

numeric sample, length >= 2

constant

consistency constant, 1.1926

finite_corr

apply the robustbase finite-sample bias correction

Value

list(estimate, raw, inner, correction, constant, n)

Examples

V <- c(1, 2, 3, 4, 5, 6, 7, 8)
SnScale(V)
#> $estimate
#> [1] 2.397126
#> 
#> $raw
#> [1] 2
#> 
#> $inner
#> [1] 4 3 2 2 2 2 3 4
#> 
#> $correction
#> [1] 1.005
#> 
#> $constant
#> [1] 1.1926
#> 
#> $n
#> [1] 8
#> 
#> $method
#> [1] "Rousseeuw & Croux (1993) Sn, robustbase qnsn.R definition"
#>