Skip to contents

The lower and upper ideal fourths of Wilcox (2017) eq. (2.6)-(2.7), and the interquartile range they define, eq. (2.8). These are the quartile estimates the book uses for outlier detection.

Usage

morie_ideal_fourths(x)

morie_idealf_iqr(x)

Arguments

x

numeric vector

Value

morie_ideal_fourths a list with q1, q2, j, h, k; morie_idealf_iqr the single number q2 - q1

Examples

V <- c(1, 2, 3, 4, 5, 6, 7, 8)
morie_ideal_fourths(V)
#> $q1
#> [1] 2.416667
#> 
#> $q2
#> [1] 6.583333
#> 
#> $j
#> [1] 2
#> 
#> $h
#> [1] 0.4166667
#> 
#> $k
#> [1] 7
#>