Skip to contents

[Stable]

std_error() computes the standard error of the sample mean.

Usage

std_error(x)

Arguments

x

A numeric vector with the sample data.

Value

A number representing the standard error.

Details

The standard error can be estimated by the standard deviation of the sample (σx¯) divided by the square root of the sample size (n).

σx¯=σnsn

See also

Other statistical functions: cut_interval_mean(), remove_outliers(), test_outlier()

Examples

1:100 |> std_error() |> round(5)
#> [1] 2.90115
#> [1] 2.90115 # Expected