# NOT RUN {
# To run the simulation with default parameters just call the function:
result <- simulate_heterogeneity_ode()
# To choose parameter values other than the standard one, specify them like such:
result <- simulate_heterogeneity_ode(S1 = 100, S2 = 1e3, b11 = 0.7, tmax = 100)
# You should then use the simulation result returned from the function, like this:
plot(result$ts[,"time"],result$ts[,"S1"],xlab='Time',ylab='Number Susceptible 1',type='l')
# }
Run the code above in your browser using DataLab