Learn R Programming

RVAideMemoire (version 0.9-79)

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.

Details

The function deals with missing values.

Examples

Run this code
# NOT RUN {
# 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