Compute standard error of the mean of x.

se(x, na.rm = FALSE)

seM(x, na.rm = FALSE)

Arguments

x

Object to compute SEMs for. Can be vector, matrix or data.frame.

na.rm

Specify how to handle missing values.

Value

Standard error of the mean for x, or each column of x.

Details

Returns the standard error of the mean of x, which can be either a vector, matrix or data.frame. In the latter two cases, SEM is computed column-wise and a vector of values is returned. When x is a vector, a single value is returned.

Author

David Braze davebraze@gmail.com