# To run the simulation with default parameters:
result <- simulate_SIRSd_model_stochastic()
# To choose values other than the standard one, specify them like this:
result <- simulate_SIRSd_model_stochastic(S = 2000,I = 2,R = 0)
# You can display or further process the result, like this:
plot(result$ts[,'time'],result$ts[,'S'],xlab='Time',ylab='Numbers',type='l')
print(paste('Max number of S: ',max(result$ts[,'S'])))
Run the code above in your browser using DataLab