powered by
Standard deviation for proportion
sdprop(x, na.rm = TRUE)
Input variable
If TRUE missing values are removed before calculation
sdprop(c(rep(1L, 10), rep(0L, 10)))
Run the code above in your browser using DataLab