Calculates the standard error of mean.
Arguments
- x
a (non-empty) numeric vector of data values.
- sd
the standard deviation of x
. If provided it's interpreted as sd of the population. If left to NULL
(default) the sample sd(x)
will be used.
- na.rm
logical. Should missing values be removed? Defaults to FALSE
.
Details
MeanSE calculates the standard error of the mean defined as: σ√n
σ being standard deviation of x
and n the length of x
.
Value
the standard error as numeric value.
Author
Andri Signorell <andri@signorell.net>