Skip to contents

Compute 20% trimmed mean and standard error for a given vector. Can be used as fun.data in ggplot2's stat_summary.

Usage

tr_mean_se(x)

Arguments

x

A numeric vector.

Value

A tibble with columns ymin, mean, and ymax.

Examples

x <- rnorm(200)

tr_mean_se(x)
#>            y        ymin      ymax
#> 1 0.03094491 -0.04569035 0.1075802