powered by
Computes the standard error of a mean or of a proportion.
se(x, y = NULL)
numeric vector or number of successes.
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.
NULL
x
x/y
Maxime HERVE <maxime.herve@univ-rennes1.fr>
The function deals with missing values.
# 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