Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

CompartmentalModeling

Guides

  • Compartmental Modeling

Tech Notes

  • Vertical Transmission Models

Symbols

  • DynamicTransmissionModel
  • ForceOfInfection
  • Incidence
  • NextGenerationMatrix
  • CollectModel
  • CompartmentalModelGraph
  • CompetitiveInhibitorKinetics
  • DefinePropensityFunction
  • DeriveTransitions
  • DynamicTransmissionModel
  • EnzymeReaction
  • EpidemiologyModelData
  • EpidemiologyModel
  • ExpandModel
  • ForceOfInfection
  • HillKinetics
  • Incidence
  • KineticCompartmentalModel
  • KineticReactionNetworkModel
  • MichaelisMentenKinetics
  • NextGenerationMatrix
  • NoncompetitiveInhibitorKinetics
  • NullCompartment
  • ResolveCompartmentalModel
  • StochasticSolve
  • StoichiometryTable
  • StratifyModel
  • Transition
  • UncompetitiveInhibitorKinetics
  • VitalDemographicsModel
  • $C
  • $CompartmentalModelingVersion
  • $EpidemiologyColor
  • $EpidemiologyModelingVersion
  • $R
  • $SystemsBiologyModelingVersion
RobertNachbar`EpidemiologyModeling`
VitalDemographicsModel
​
VitalDemographicsModel
[{
tr
1
,
tr
2
,…},{
bc
1

r
1
,
bc
2

r
2
,…}]
returns an expanded list of transitions
tr
i
with transitions for births and all-cause mortality added using the total birth rate model. The
bc
i
are individual birth compartments, and the
r
i
are rate expressions.
​
​
VitalDemographicsModel
[{
tr
1
,
tr
2
,…},{
bc
1
{{
sc
11
,
sc
12
,…}
r
1
},
bc
2
{{
sc
21
,
sc
22
,…}
r
2
},…}]
returns an expanded list of transitions
tr
i
with transitions for births and all-cause mortality added using the maternal birth rate model. The
bc
i
are individual birth compartments, the
sc
ij
are source compartments, and the
r
i
are rate expressions.
​
Details and Options

Examples  
(12)
Basic Examples  
(1)
Add birth and death transitions to an SEIR model:
In[1]:=
model=
VitalDemographicsModel

βλ[t]
→
ℰ,ℰ
ζ
→
ℐ,ℐ
γ
→
ℛ,Λ
Out[1]=

Λ
↦
,ℰ
ζ
→
ℐ,ℰ
μ
⇥
,ℐ
γ
→
ℛ,ℐ
μ
⇥
,ℛ
μ
⇥
,
μ
⇥
,
βλ[t]
→
ℰ
Display the compartmental model graph:
In[2]:=
CompartmentalModelGraph
model,
options

Out[2]=
Scope  
(1)

Generalizations & Extensions  
(2)

Options  
(5)

Applications  
(2)

Possible Issues  
(1)

SeeAlso
DynamicTransmissionModel
RelatedGuides
▪
Compartmental Modeling
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com