Learn R Programming

ATQ (version 0.2.3)

summary.ssir_epidemic: S3 Summary method for epidemic Simulation

Description

This function provides a summary of SSIR epidemic simulation. It calculates and displays the statistics.

Usage

# S3 method for ssir_epidemic
summary(object, ...)

Value

No return value, called for side effects.

Arguments

object

An object of class "ssir_epidemic", typically the result of calling ssir() with rep = 1 or NULL.

...

Additional arguments affecting the summary produced.

Examples

Run this code
# 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)

Run the code above in your browser using DataLab