Function which takes in trial parameters for one or more populations, sends to C++ for computation of changes over time using deterministic continuum model, then collects and organizes results (EIR over time + starting immunity data for intervention computation or endpoint population data for control population, benchmark values for both)

mainpop(
  input_data = list(),
  output_folder = NA,
  int_v_varied = 0,
  int_values = c(0),
  start_interval = 31,
  time_values = c(0, 7),
  flag_dt_adjust = 1
)

Arguments

input_data

List containing parameters, starting data etc. created by load_inputs function

output_folder

Folder to send output files (no files saved if set to NA)

int_v_varied

Intervention parameter given variable value (0= None, 1=ATSB kill rate, 2=bednet coverage, 3=IRS coverage)

int_values

Vector of values of varied intervention parameter (will be unused if int_v_varied=0)

start_interval

Period from start date before intervention starts (used to equilibrate lagged FOI data)

time_values

Vector of time checkpoints

flag_dt_adjust

Integer indicating whether or not to adjust dt by mosquito density in rcpp_mainpop (0 = No, 1 = Yes)

Details

Takes a list of parameters, returns a list of raw data (data also saved to files as backup).