Learn R Programming

RVAideMemoire (version 0.9-83-7)

se: Standard error

Description

Computes the standard error of a mean or of a proportion.

Usage

se(x, y = NULL)

Arguments

x

numeric vector or number of successes.

y

number of trials. If NULL, the standard error of the mean of x is computed. If not, the standard error of the proportion x/y is computed.

Author

Maxime HERVE <maxime.herve@univ-rennes1.fr>

Details

The function deals with missing values.

Examples

Run this code
# Standard error of a mean
se(rnorm(30))

# Standard error of a proportion
se(9,25)

Run the code above in your browser using DataLab