Calculates sample size for estimating apparent
prevalence (simple proportion)
Usage
n.ap(p, precision, conf = 0.95)
Arguments
p
expected proportion, scalar or vector of values
precision
absolute precision, +/- proportion equivalent to
half the width of the desired confidence interval, scalar or vector of values,
note: at least one of p and precision must be a scalar
conf
level of confidence required, default = 0.95 (scalar)