Generate a test-recent function that has a desired window and shadow period that satisfies the shape assumption of the adjusted estimator.

getTestRecentFuncAdj(mdri, shadow, bigT, frr)

Arguments

mdri

MDRI (in days)

shadow

Shadow period (in days)

bigT

The T that is the cutoff for recent infection

frr

The desired false recency rate (FRR)

Value

A test-recent function of t

Examples


phi <- getTestRecentFuncAdj(mdri=120, shadow=100, bigT=2, frr=0.02)