Skip to contents

d = k (trimmed mean - null) / s_w with k^2 the Winsorized variance of N(0, 1).

Usage

AkpD(x, y = NULL, tr = 0.2, null_value = 0)

Arguments

x

Numeric vector.

y

Optional paired vector (differences x - y are used).

tr

Trimming proportion.

null_value

Null value.

Value

list(d, k).

References

Wilcox, R. R. (2017). Modern Statistics for the Social and Behavioral Sciences, 2nd ed. Eq (8.6).

Examples

AkpD(c(2.1, 3.4, 1.9, 5.6, 4.4))$k
#> [1] 0.6419398