adjPrevSensSpec: Adjust a prevalence point estimate for a given assay...

Description Usage Arguments Value See Also Examples

View source: R/adjustPrevalence.R

Description

Given a reported prevalence estimate from an imperfect assay with known sensitivity and specificity, this function will adjust the prevalence point estimate for the assay sensitivity and specificity.

Usage

1
adjPrevSensSpec(prevEst, sens, spec, replaceImpossibleValues = FALSE)

Arguments

prevEst

The reported prevalence point estimate.

sens

The known assay sensitivity.

spec

The known assay specificity.

replaceImpossibleValues

Logical; not all combinations of prevalence, sensitivity and specificity are possible and it can be that the adjusted prevalence is <0 or >1, so if this parameter is set to TRUE, values below 0 are set to 0, values above 1 to 1. Default to FALSE.

Value

A vector of the same length as prevEst, returning the adjusted prevalence estimates.

See Also

adjPrevSensSpecCI, ssBetaPars, optim, dbeta

Examples

1
adjPrevSensSpec(prevEst=0.16,sens=0.90,spec=0.95)

bootComb documentation built on Jan. 31, 2022, 1:07 a.m.