adjPrevSensSpec: Adjust a prevalence point estimate for a given assay sensitivity and specificity.
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.
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.