Learn R Programming

dipsaus (version 0.3.1)

ste_mean: Standard error of mean

Description

Ported from 'rutabaga' package, calculates standard error of mean. The sample size is determined by number of none-NA numbers by default

Usage

ste_mean(x, na.rm = FALSE, na_as_zero = na.rm, ...)

# S3 method for default ste_mean(x, na.rm = FALSE, na_as_zero = na.rm, ...)

Value

A numerical number that is the standard error of the mean

Arguments

x

R object

na.rm

whether to remove NA; default is false

na_as_zero

whether convert NA to zero

...

passed to other methods

See Also

mean_se

Examples

Run this code

x <- rnorm(100)

ste_mean(x)

# internal implementation
identical(ste_mean(x), sd(x) / sqrt(100))

Run the code above in your browser using DataLab