Using a modified Lew and Levy to allow non-uniform prior on the prevalenc

p_adj(n, x, alpha = 3, beta = 15, sens = 0.995, spec = 0.9)

Arguments

n

sample size

x

number of cases

alpha

shape1 of beta distribution prior

beta

shape2 of beta distribution prior

sens

sensitivity of the test

spec

specificity of the test