Filters scenarios, arr_scenarios and costs to visit or bed pathways. Extracts parameters from scenarios dataframe. Pivots subset of arr_scenarios. Creates vector with each scenario name.
Usage
sim_setup(
model_type,
scenarios = parent.frame()$scenarios,
arr_scenarios = parent.frame()$arr_scenarios,
costs = parent.frame()$costs,
sd_los = parent.frame()$sd_los
)
Arguments
- model_type
String - either "visit" or "bed"
- scenarios
Dataframe with information about scenarios
- arr_scenarios
Dataframe with information about arrival scenarios
- costs
Dataframe with costs for community and acute for each location and pathway
- sd_los
Float - standard deviation of length of stay distribution