Skip to content

FAQ ​

This page is for readers who know the model they want and need the page that builds it.

Which page builds a given model feature? ​

Each table lists model features with the types that build them and the page that gives the equations and the code. The API overview defines the terms used.

Transmission ​

Model featureBuilt withPage
Renewal processRecurrenceThree towns, step by step
Control measure that scales transmission over a periodthe gainThree towns, step by step
Imported casesthe add input, or Transform after depletionImported cases
Instantaneous or effective reproduction number from a runpressureThe reproduction number from a run
Log reproduction number as a random walk or an autoregressionRecurrence on innovationsLatent processes driving the reproduction number
Transmission that responds to incidenceTransform before DepletionLatent processes driving the reproduction number

Susceptible depletion and vaccination ​

Model featureBuilt withPage
Susceptible depletionDepletionRenewal then delay
Doses or places used up in fullTruncateDepletion forms
All-or-nothing, leaky and waning vaccinationDepletion with two pools and a FlowVaccination
Births into a changing populationDepletion with a Flow from outsideDepletion in practice
Vaccine doses from a weekly budgetDepletion with a budget poolDepletion in practice

Reporting and clinical delays ​

Model featureBuilt withPage
Reporting delayConvolutionThree towns, step by step
Chain of clinical transitions, each with a probabilityone Convolution per transition, with a gainClinical outcomes
Delay that changes over time, by report day or infection dayTimeVarying, PrimaryTime-varying delays and kernels
Delay from a hazard with an effect of the reporting daySurvival, IncrementsNowcasting
Reports by infection day and delay, cut at the present daycontributionsReporting triangle
Eventual counts of recent days from the reports made so farthe transpose of a ConvolutionNowcasting

Places and groups ​

Model featureBuilt withPage
Mixing between places or groupsa couplingSpatial models
Generation interval per group or per pair of groupsPerStratum, PairwiseSpatial models
Transmission routes, each with its own coupling and kernelPairwiseSpatial models
Infections moved between patchesRedistributeSpatial models
Districts that share a total fixed elsewhereAllocateSpatial models
Imported cases of each district within a fixed totalAllocate with importsAllocate with imports

Branching processes and isolation ​

Model featureBuilt withPage
Multi-type offspring with a mean matrixa Recurrence of one lag with a couplingBranching processes
Isolation, with a delay shared or set by typea thinned kernel, PerStratumBranching processes
Contact tracing with traced and untraced typesPairwiseBranching processes
Probability of extinction by generationTransformBranching processes
Isolation that starts on a set dayTimeVarying with PrimaryTime-varying delays and kernels

Hospital occupancy and capacity ​

Model featureBuilt withPage
Bed occupancy from admissions and a length of stayConvolution, or a Recurrence for a geometric stayOccupancy and capacity
Bed capTransform, with Recent for any length of stayOccupancy and capacity
Patients moving between the pools of a wardDepletion with FlowsOccupancy and capacity
Isolation beds with overflowDepletion with TruncateDepletion in practice

Seeding and forecasting ​

Model featureBuilt withPage
Seed on an exponential growth pathexponential_historyRenewal then delay
Growth rate from a reproduction number, and the reversegrowth, growth_gainSeeding
Seed days returned with the runinclude_historyWhat a call returns
Case reproduction numberthe transpose of a ConvolutionCase reproduction number
Expected descendants of one infectionthe reverse of a RecurrenceExpected descendants
Forecast that continues a runResumeForecasting
Sample paths stepped forward from a stateadvance!Forecasting

Fitting ​

Any fitting tool works, as the operators are ordinary differentiable Julia functions. These pages show two that need no gradients.

Model featureBuilt withPage
Closed-form posterior of the reproduction number by windowpressure, window_sumsConjugate estimation
Particle filter of a stochastic renewal modeladvance!, selectParticle filtering