getpolicy {amei} | R Documentation |
Extracts the optimal static vaccination policy from an
"optvac"
-class object
getpolicy(obj, which = c("best", "worst"))
obj |
and "optvac" -class object |
which |
optionally, by supplying which = "worst"
the worst static vaccination policy can be extracted |
This function is designed to work with the output of
the optvac
function, and to provide inputs
to the MCepi
function. It searches the cost
grid defined by vacgrid
for the lowest (or highest)
cost, and returns this information
The output is a data.frame
with scalar entries
row |
the row of vacgrid$stops from the
"optvac" -class object corresponding to the lowest
(or highest) cost |
col |
the row of vacgrid$fracs from the
"optvac" -class object corresponding to the lowest
(or highest) cost |
frac |
the actual optimal fraction to vaccinate
from the vacgrid table |
stop |
the actual optimal (stopping) threshold
from the vacgrid table |
cost |
the cost associated with the optimal static vaccination strategy |
Daniel Merl <dan@stat.duke.edu>, Leah R. Johnson <leah@statslab.cam.ac.uk>, Robert B. Gramacy <bobby@statslab.cam.ac.uk>, and Mark S. Mangel <msmangl@ams.ucsc.edu>
A statistical framework for the adaptive management of epidemiological interventions (2008). Daniel Merl, Leah R. Johnson, Robert B. Gramacy, and Marc S. Mangel. Duke Working Paper 08-29. http://ftp.stat.duke.edu/WorkingPapers/08-29.html
## for an example of the usage of this function, ## please see the documentation for optvac as ## referenced in the See Also section, above