# confidence interval width with n
prec_sens(.6, 50)
# confidence interval width with ntot and prevalence (assuming 50% prev)
prec_sens(.6, ntot = 100, prev = .5)
# sample size with confidence interval width
prec_sens(.6, conf.width = 0.262)
Run the code above in your browser using DataLab