R/se_prop.R

Defines functions se_prop

Documented in se_prop

#' SE for the proportion
#'
#' Takes p and n
#' 
#' @param p proportion
#' @param n size of the vector
#' 
#' @return vector
#' 
#' @export
#' @examples
#' se_prop(.50, 100)
#' 

se_prop <- function(p, n) {

  sqrt(p * (1 - p) / n)
}
soodoku/goji documentation built on Aug. 26, 2017, 8:55 a.m.