Calculates the standard error of mean.
MeanSE(x, sd = NULL, na.rm = FALSE)
a (non-empty) numeric vector of data values.
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.
logical. Should missing values be removed? Defaults to FALSE
.
the standard error as numeric value.
MeanSE calculates the standard error of the mean defined as: x
and n the length of x
.
# NOT RUN {
data(d.pizza)
MeanSE(d.pizza$price, na.rm=TRUE)
# evaluate data.frame
sapply(d.pizza[,1:4], MeanSE, na.rm=TRUE)
# }
Run the code above in your browser using DataLab