This function is used for the immunity models that incorporate biomarker mediated protection.

biomarker_protection(
  biomarker_quantity,
  biomarker_prot_midpoint,
  biomarker_prot_width
)

Arguments

biomarker_quantity

Current biomarker quantity at the time of exposure

biomarker_prot_midpoint

The biomarker quantity at which you are 50% protected from infection

biomarker_prot_width

Determines the shape of the curve

Value

The risk of infection given the current biomarker quantity

Examples

biomarker_protection(50,25,.02)
#> [1] 0.6224593