# NOT RUN {
# To run the simulation with default parameters just call the function:
result <- simulate_parasites_ode()
# To choose parameter values other than the standard one,
# specify the parameters you want to change, e.g. like such:
result <- simulate_parasites_ode(Sh = 2000, Ih = 10, tmax = 100, g = 0.5)
# You should then use the simulation result returned from the function, like this:
plot(result$ts[ , "time"],result$ts[ , "Sh"],xlab='Time',ylab='Number Susceptible',type='l')
# }
Run the code above in your browser using DataLab