se: Standard error

View source: R/se.R

seR Documentation

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.

Author(s)

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

Examples

# Standard error of a mean
se(rnorm(30))

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

RVAideMemoire documentation built on Nov. 6, 2023, 5:07 p.m.