ste_mean: Standard error of mean

View source: R/rutabaga.R

ste_meanR Documentation

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, ...)

## Default S3 method:
ste_mean(x, na.rm = FALSE, na_as_zero = na.rm, ...)

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

Value

A numerical number that is the standard error of the mean

See Also

mean_se

Examples


x <- rnorm(100)

ste_mean(x)

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


dipsaus documentation built on June 27, 2024, 5:10 p.m.