Skip to contents

T = (trimmed mean - null) / trimmed-mean standard error on n - 2g - 1 df.

Usage

TrimCI(x, tr = 0.2, alpha = 0.05, null_value = 0)

Arguments

x

Numeric vector.

tr

Trimming proportion.

alpha

Level.

null_value

Hypothesised trimmed mean.

Value

list(estimate, se, statistic, df, ci, p_value).

References

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

Examples

TrimCI(c(2.1, 3.4, 1.9, 5.6, 4.4, 3.3, 2.8, 6.1, 3.9, 4.2, 2.2, 5.0, 40), null_value = 3)$statistic
#> [1] 1.427408