R/propCI-jeffreys.R

Defines functions propCI_jeffreys

propCI_jeffreys <-
function(x, n, l){

  lw <- qbeta(l[1], x + .5, n - x + .5)
  up <- qbeta(l[2], x + .5, n - x + .5)

  return(c(lw, up))
}

Try the prevalence package in your browser

Any scripts or data that you put into this service are public.

prevalence documentation built on June 4, 2022, 1:05 a.m.