p_adj: Adjusted prevalence using sensitivity and specificity

View source: R/prev_adj.R

p_adjR Documentation

Adjusted prevalence using sensitivity and specificity

Description

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

Usage

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


kklot/ktools documentation built on Aug. 13, 2024, 7:08 p.m.