Compute 20% trimmed mean and standard error for a given vector. Can be used
as fun.data
in ggplot2's stat_summary
.
Examples
x <- rnorm(200)
tr_mean_se(x)
#> y ymin ymax
#> 1 0.03094491 -0.04569035 0.1075802
Compute 20% trimmed mean and standard error for a given vector. Can be used
as fun.data
in ggplot2's stat_summary
.
x <- rnorm(200)
tr_mean_se(x)
#> y ymin ymax
#> 1 0.03094491 -0.04569035 0.1075802