MeanSE {DescTools} | R Documentation |
Standard Error of Mean
Description
Calculates the standard error of mean.
Usage
MeanSE(x, sd = NULL, na.rm = FALSE)
Arguments
x |
a (non-empty) numeric vector of data values. |
sd |
the standard deviation of |
na.rm |
logical. Should missing values be removed? Defaults to |
Details
MeanSE calculates the standard error of the mean defined as:
\frac{\sigma}{\sqrt{n}}
\sigma
being standard deviation of x
and n the length of x
.
Value
the standard error as numeric value.
Author(s)
Andri Signorell <andri@signorell.net>
See Also
Examples
data(d.pizza)
MeanSE(d.pizza$price, na.rm=TRUE)
# evaluate data.frame
sapply(d.pizza[,1:4], MeanSE, na.rm=TRUE)
[Package DescTools version 0.99.55 Index]