Run_model.Rd
runs the ODE Cysticercosis model
run_model( params = NULL, initial_states = NULL, time, intervention = NULL, intervention_time = time/2, intervention_effect = intervention_effect_size(), step = 1/30, burn_in = 0 )
params | List of model parameters |
---|---|
initial_states | List of intitial state values |
time | The number of years to run the model for (from equilibrium). Default is at the halfway point. |
intervention | A vector of interventions to include from: Husbandry, Sanitatio, Inspection, Pig_MDA, Pig_vaccine and Human_test_and_treat |
intervention_time | Timing of intervention |
intervention_effect | A list of intervention effect sizes, see |
step | time step (months) |
burn_in | A burn in period run before model run (years) |
# run the baseline model: M1 <- run_model(time = 50, burn_in = 50) plot(M1$t / 12, M1$Humans_Cysticercosis, t = "l", ylim = c(0, 1000), ylab = "Humans with Cysticercosis", xlab = "time (years)")# run the model with a single intervention: M2 <- run_model(time = 50, intervention = "Sanitation", intervention_time = 20, burn_in = 50) lines(M2$t / 12, M2$Humans_Cysticercosis, col = "deeppink")