View source: R/summary.ssir_epidemic.R
summary.ssir_epidemic | R Documentation |
This function provides a summary of SSIR epidemic simulation. It calculates and displays the statistics.
## S3 method for class 'ssir_epidemic'
summary(object, ...)
object |
An object of class "ssir_epidemic", typically the result of calling ssir() with rep = 1 or NULL. |
... |
Additional arguments affecting the summary produced. |
No return value, called for side effects.
# Run multiple simulations
result <- ssir(N = 10000, T = 300, alpha = 0.3, inf_period = 4,
inf_init = 32, report = 0.02, lag = 7)
# Display summary
summary(result)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.