Learn R Programming

radiant.data (version 1.4.5)

meprop: Margin of error for proportion

Description

Margin of error for proportion

Usage

meprop(x, conf_lev = 0.95, na.rm = TRUE)

Value

Margin of error

Arguments

x

Input variable

conf_lev

Confidence level. The default is 0.95

na.rm

If TRUE missing values are removed before calculation

Examples

Run this code
meprop(c(rep(1L, 10), rep(0L, 10)))

Run the code above in your browser using DataLab