# NOT RUN {
# To run the simulation with default parameters just call the function:
# }
# NOT RUN {
res <- simulate_modelexploration_sir()
# }
# NOT RUN {
# To choose parameter values other than the standard one, specify them, like such:
res <- simulate_modelexploration_sir(tfinal=100, samples=5, samplepar='g', parmin=0.1, parmax=1)
# You should then use the simulation result returned from the function, like this:
plot(res$dat[,"xvals"],res$data[,"Imax"],xlab='Parameter values',ylab='Max Infected',type='l')
# }
Run the code above in your browser using DataLab