Skip to contents

Compute M-estimator and its standard error for a given vector. Can be used as fun.data in ggplot2's stat_summary.

Usage

mest_se(x)

Arguments

x

A numeric vector.

Value

A tibble with columns ymin, mean, and ymax.

Examples

x <- rnorm(200)

mest_se(x)
#>            y        ymin       ymax
#> 1 0.02789551 -0.03945027 0.09524129