DescTools (version 0.99.8.1)

MeanSE: Standard error of mean

Description

Calculates the standard error of mean. If x is a matrix or a data frame, a vector of the standard error of the columns is returned.

Usage

MeanSE(x, na.rm = FALSE)

Arguments

x
a (non-empty) numeric vector of data values.
na.rm
logical. Should missing values be removed? Defaults to FALSE.

Value

  • For a data frame or for a matrix, a named vector with the appropriate method being applied column by column.

Details

MeanSE calculates the standard error of the mean defined as sd(x)/sqrt(length(x)).

See Also

MeanCI

Examples

Run this code
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