se {RVAideMemoire}R 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)

[Package RVAideMemoire version 0.9-83-7 Index]