Function Reference

# CovidSEIR.countrymodelFunction.

 countrymodel(data::CountryData, priors=defaultcountrypriors(),
              ::Type{R}=Float64) where {R <: Real} = begni

Returns Turing model for single country

source

# CovidSEIR.covidjhudataMethod.

covidjhudata()

Downloads most recent JHU CSSE data on covid cases, deaths, and recoveries.

Returns a DataFrame

source

# CovidSEIR.plotvarsMethod.

plotvars(simdf::DataFrames.AbstractDataFrame,
         data::CountryData;
         dayt0=Dates.Date("2020-01-21"), # one day before JHU data begins
         colors=ColorSchemes.colorschemes[:Set1_9])

Create plots showing fit and implications of simulated trajectories.

source

# CovidSEIR.priorreportFunction.

priorreport((priors=defaultcountrypriors(), T=100, population=1e7)

Create tables and figures summarizing priors.

source

# CovidSEIR.simtrajectoriesMethod.

simtrajectories(cc::AbstractMCMC.AbstractChains,
                     data::CountryData, ts;
                     ic=Iterators.product(StatsBase.sample(1:size(cc,1),300, replace=false),
                                          1:size(cc,3)))

Simulate trajectories based on parameter values in chain cc.

source

# CovidSEIR.odeSEIRMethod.

odeSEIR()

Sets up ODE for SEIR model with unconfirmed cases.

Returns an ODEProblem

source

# CovidSEIR.paramvarsMethod.

Transfrom ODE parameters to/from vector

source

# CovidSEIR.paramvecMethod.

Transfrom ODE parameters to/from vector

source

# CovidSEIR.systemvarsMethod.

Transfrom ODE variables to/from vector

source

# CovidSEIR.systemvecMethod.

Transfrom ODE variables to/from vector

source

Index