Skip to contents

Calculates mean and standard error of mean

Usage

mean_se(x, na.rm = FALSE, se_na_as_zero = na.rm)

Arguments

x

R numerical object

na.rm

whether to remove NA; default is false

se_na_as_zero

see na_as_zero in ste_mean

Value

A named vector containing the mean and standard error of mean (ste_mean).

See also

Examples


# Mean should be near 0 (mean of standard normal)
# standard error of mean should be near 0.01
mean_se(rnorm(10000))
#>          mean            se 
#> -0.0008053411  0.0099975702