Skip to content

Commit

Permalink
Merge pull request #589 from HopkinsIDD/dev_update_postprocessing
Browse files Browse the repository at this point in the history
Risk category for thresholds of 95 and 50%
  • Loading branch information
eclee25 authored Mar 4, 2024
2 parents fe68ffc + fb1cdf6 commit 3c439c3
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions Analysis/R/postprocess_results.R
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,10 @@ mai_grid_cases_draws <- run_all(
# G. Risk categories ---------------------------------------------------------

# Get the risk category by location at all admin levels
risk_categories <- run_all(
risk_categories_95 <- run_all(
config_dir = opt$config_dir,
fun = postprocess_risk_category,
fun_name = "risk_categories",
fun_name = "risk_categories_95",
fun_opts = list(cum_prob_thresh = 0.95),
prefix = opt$prefix,
suffix = opt$suffix,
Expand All @@ -503,6 +503,25 @@ risk_categories <- run_all(
output_file_type = "rds",
verbose = opt$verbose)


# Get the risk category by location at all admin levels
risk_categories_50 <- run_all(
config_dir = opt$config_dir,
fun = postprocess_risk_category,
fun_name = "risk_categories_50",
fun_opts = list(cum_prob_thresh = 0.50),
prefix = opt$prefix,
suffix = opt$suffix,
error_handling = opt$error_handling,
redo = opt$redo,
redo_interm = opt$redo_interm,
redo_aux = opt$redo_auxilliary,
output_dir = opt$output_dir,
interm_dir = opt$interm_dir,
data_dir = opt$data_dir,
output_file_type = "rds",
verbose = opt$verbose)

# Get the population at risk in each risk category by country
pop_at_risk <- run_all(
config_dir = opt$config_dir,
Expand Down

0 comments on commit 3c439c3

Please sign in to comment.