# Table of Contents

# Pre

Pre-made models for disease outbreaks.

Import it with:

       const pre = require('@epispot/epijs').pre

# sir

The SIR Model. Returns a chart.js graph with the total Susceptible, Infected, and Recovered after the given amount of time.

# Parameters

# Examples

sir(4, 9999, 1, 100, 1/21, 10000, true)

Returns any The data for the model as a list.

# seir

The SEIR Model. Returns a chart.js graph with the total Susceptible, Exposed, Infected, and Recovered after the given amount of time.

# Parameters

# Examples

seir(4, 9999, 1, 100, 1/7, 1/7, 10000, true)

Returns any The data for the model as a list.

# seird

The SEIRD Model. Returns a chart.js graph with the total Susceptible, Exposed, Infected, Recovered, and Dead populations after the given amount of time.

# Parameters

# Examples

seird(4, 99999, 1, 100, 1/21, 1/14, 1/100, 10000, true)

Returns any The data for the model as a list.

# seihrd

The SEIHRD Model. Returns a chart.js graph with the total Susceptible, Exposed, Infected, Hospitalized, Recovered, and Dead populations after the given amount of time.

# Parameters

# Examples

seihrd(4, 9999, 1, 265, 1/21, 1/40, 1/14, 1/100, 1/20, 1/30, 10000, true)

Returns any The data for the model as a list.

# seihcrd

The SEIHCRD Model. Returns a chart.js graph with the total Susceptible, Exposed, Infected, Hospitalized, Critical, Recovered, and Dead populations after the given amount of time.

# Parameters

# Examples

seihcrd(4, 9999, 1, 265, 1/21, 1/40, 1/14, 1/100, 1/20, 1/10, 1/40, 2/5, 1/5, 1/5, 1/5, 1/30, 10000, true)

Returns any The data for the model as a list.