Master function for converting prevalence rates into attack-rates

PR2AR(X, Tx, PAR, Xinterval = 365, eq = F, showMessages = F,
  cpp = T)

Arguments

X

A vector of prevalence rates

Tx

A vector of case-management rates

PAR

A set of parameters for the mechanistic model of malaria

Xinterval

An integer with the number of days between PR observations

eq

Toggle for whether to calculate all attack-rates at equilibrium or to only calculate the initial states at equilibrium and simulate forward

showMessages

Toggle for whether the function prints messages

cpp

A toggle for using the C++ version of the forward simulation algorithm