Learn R Programming

RSurveillance (version 0.2.1)

tp.normal: Normal approximation confidence limits for true prevalence

Description

Estimates true prevalence and confidence limits for estimates based on normal approximation

Usage

tp.normal(x, n, se, sp, conf = 0.95)

Arguments

x

number of positive results in sample (scalar or vector)

n

sample size (scalar or vector)

se

test unit sensitivity (scalar or vector)

sp

test unit specificity (scalar or vector)

conf

desired level of confidence for CI, default = 0.95 (scalar or vector)

Value

list with 2 elements, a matrix of apparent prevalence and wilson lower and upper confidence limits and a matrix of true prevalence and normal approximation lower and upper confidence limits

Examples

Run this code
# NOT RUN {
# examples for tp.normal
tp.normal(25, 120, 0.9, 0.99)
tp.normal(seq(5, 25, by=5), 120, 0.9, 0.99)
# }

Run the code above in your browser using DataLab