Skip to content

Commit

Permalink
Seems to all be working with non-timevarying demographics. Need to ma…
Browse files Browse the repository at this point in the history
…ke sure that population groups get assigned in order.
  • Loading branch information
jameshay218 committed May 14, 2024
1 parent 39bc522 commit 876849e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -919,8 +919,11 @@ setup_stratification_table <- function(par_tab, demographics){
return(NA)
}
}

## Skip any infection history prior parameters
skip_pars <- c("infection_model_prior_shape1","infection_model_prior_shape2")
## Creates an estimated parameter entry for each
stratifications <- unique(unlist(sapply(par_tab$stratification,function(x) strsplit1(x))))
stratifications <- unique(unlist(sapply(par_tab[!(par_tab$names %in% skip_pars),"stratification"],function(x) strsplit1(x))))
stratifications <- stratifications[!is.na(stratifications)]

scale_table <- vector(mode="list",length=length(stratifications))
Expand Down

0 comments on commit 876849e

Please sign in to comment.