| run_region {EpiNow2} | R Documentation |
Run epinow with Regional Processing Code
Description
Internal function that handles calling
epinow(). Future work will extend
this function to better handle stan logs and allow the user to modify
settings between regions.
Usage
run_region(
target_region,
generation_time,
delays,
truncation,
rt,
backcalc,
gp,
obs,
stan,
horizon,
CrIs,
data,
target_folder,
target_date,
return_output,
output,
complete_logger,
verbose,
progress_fn,
...
)
Arguments
target_region |
Character string indicating the region being evaluated |
generation_time |
A call to |
delays |
A call to |
truncation |
A call to |
rt |
A list of options as generated by |
backcalc |
A list of options as generated by |
gp |
A list of options as generated by |
obs |
A list of options as generated by |
stan |
A list of stan options as generated by |
horizon |
Numeric, defaults to 7. Number of days into the future to forecast. |
CrIs |
Numeric vector of credible intervals to calculate. |
data |
A |
target_folder |
Character string specifying where to save results (will create if not present). |
target_date |
Date, defaults to maximum found in the data if not specified. |
return_output |
Logical, defaults to FALSE. Should output be returned, this automatically updates to TRUE if no directory for saving is specified. |
output |
A character vector of optional output to return. Supported
options are the individual regional estimates ("regions"), samples
("samples"), plots ("plots"), copying the individual region dated folder into
a latest folder (if |
complete_logger |
Character string indicating the logger to output the completion of estimation to. |
verbose |
Logical defaults to FALSE. Outputs verbose progress messages
to the console from |
progress_fn |
Function as returned by |
... |
Pass additional arguments to |
Value
A list of processed output as produced by process_region()