Creates a function that interpolates an AR-to-PR dataset. The data calculates attack rate as a function of PR and recovery.

ar_of_pr_rho(pr_to_ar_dt)

Arguments

pr_to_ar_dt

A data.table with columns AR, PR, and rho.

Value

A function with signature function(pr, rho) -> AR.