Learn R Programming

abd (version 0.1-22)

se: Standard Error of the Mean

Description

se calculates the standard error of the mean of a vector.

Usage

se(x)

Arguments

x
a vector of numeric values

Value

  • A single numeric value of the standard error of the mean

See Also

mean for the mean of a vector sd for the standard deviation of a vector

Examples

Run this code
set.seed(2)
n <- 10
y <- rnorm(n)

sd(y)
sd(y)/sqrt(n)

se(y)

Run the code above in your browser using DataLab