using directly the formula not posterior distribution

var_ll(pi, n, spec = 0.9, sens = 0.995)

Arguments

pi

the adjusted prevalence

n

sample size

spec

specificity

sens

sensitivity