Helper function for finding the maximum prevelance for a given model and set of paramaters

AR2PRopt(A, PAR, Bfn)

Arguments

A

An attack-rate

PAR

A set of model parameters

Bfn

A function for building the matrix represention of the system of equations that update the state vector