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 May 30, 2019, 6:29 a.m.