error_se_prop: Calculate Standard Error of a Proportion

Description Usage Arguments References See Also Examples

View source: R/errors.R

Description

Calculate Standard Error of a Proportion

Usage

1
error_se_prop(pct, N)

Arguments

pct

numeric: Estimated proportion

N

numeric: Number of Responses

References

http://en.wikipedia.org/wiki/Standard_error

See Also

Other functions for estimating sampling error: error_me(), error_se_mean()

Examples

1
2
3
4
5
# standard error for N=30, pct=33%/67%
x <- c(rep("Checked", 10), rep("Unchecked", 20))
N <- length(x)
pct <- prop.table(table(x))
error_se_prop(pct, N)

southwick-associates/sastats documentation built on March 27, 2020, 9:39 p.m.