Standard deviation for proportion

sdprop(x, na.rm = TRUE)

Arguments

x

Input variable

na.rm

If TRUE missing values are removed before calculation

Value

Standard deviation for proportion

Examples

sdprop(c(rep(1L, 10), rep(0L, 10)))
#> [1] 0.5