summary.ssir_epidemic {ATQ}R Documentation

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 class 'ssir_epidemic'
summary(object, ...)

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.

Value

No return value, called for side effects.

Examples

# 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)


[Package ATQ version 0.2.2 Index]