# To run the simulation with default parameters just call the function:
result <- simulate_multipathogen_ode()
# To choose parameter values other than the standard one, specify them like such:
result <- simulate_multipathogen_ode(S = 100, I2 = 10, tmax = 100, b1 = 2.5)
# You should then use the simulation result returned from the function, like this:
plot(result$ts[,"time"],result$ts[,"I1"], xlab="Time",ylab="Number Infected Type 1",type="l")
Run the code above in your browser using DataLab