Learn R Programming

ATQ (version 0.2.3)

summary.ssir_epidemic_multi: S3 Summary method for multiple epidemic simulations

Description

This function provides a summary of multiple SSIR epidemic simulations. It calculates and displays average statistics across all simulations.

Usage

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

Value

No return value, called for side effects.

Arguments

object

An object of class "ssir_epidemic_multi", typically the result of calling ssir() with rep > 1.

...

Additional arguments affecting the summary produced.

Examples

Run this code
# Run multiple simulations
multi_result <- ssir(N = 10000, T = 300, alpha = 0.3, inf_period = 4,
                     inf_init = 32, report = 0.02, lag = 7, rep = 100)

# Display summary
summary(multi_result)

Run the code above in your browser using DataLab