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 (\(\sigma_{\bar{x}}\)) divided by the square root of the sample size (\(\sqrt{n}\)).

$$\sigma_{\bar{x}} = \frac{\sigma}{\sqrt{n}} \approx \frac{s}{\sqrt{n}}$$

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