2,583
Views
0
CrossRef citations to date
0
Altmetric
Research Article

Building mean field ODE models using the generalized linear chain trick & Markov chain theory

Pages S248-S272 | Received 01 Jun 2020, Accepted 17 Mar 2021, Published online: 13 Apr 2021

Figures & data

Figure 1. Diagram for an SEIR-type model with an Erlang latent period and Coxian infectious period. A special case of Equations (Equation15) and Equations (Equation20). See the main text for details (and compare to Figure  in [Citation83]).

Figure 1. Diagram for an SEIR-type model with an Erlang latent period and Coxian infectious period. A special case of Equations (Equation15(15d) dRdt=(−AI1)Ty⏞(15d) ) and Equations (Equation20(20d) dRdt=rIIkI+∑j=1kI−1(1−ρIj)λIjIj.(20d) ). See the main text for details (and compare to Figure 2 in [Citation83]).

Figure 2. SEIR-type model with heterogeneity in illness severity and hospitalizations that do not alter the infectious period. A special case of Equations (Equation21) (cf. Figure ). See the main text for details. Here the standard LCT has been applied to the exposed (E) state, and the GLCT is applied to the I states, using the competing Poisson process approach [Citation51] to model hospitalizations in a fraction of the I state individuals. This ensures that the time spent in I is independent of whether or not individuals transition to the hospital or not. Compare to [Citation35].

Figure 2. SEIR-type model with heterogeneity in illness severity and hospitalizations that do not alter the infectious period. A special case of Equations (Equation21(21e) dRdt=(−AI01)Ty0+(−AIs1)Tys.(21e) ) (cf. Figure 3). See the main text for details. Here the standard LCT has been applied to the exposed (E) state, and the GLCT is applied to the I states, using the competing Poisson process approach [Citation51] to model hospitalizations in a fraction of the I state individuals. This ensures that the time spent in I is independent of whether or not individuals transition to the hospital or not. Compare to [Citation35].

Figure 3. SEIR-type model with heterogeneity in illness severity in which a fraction of infected individuals experience severe illness, and a fraction of those require critical care. This is also a special case of Equations (Equation21) (see Figure ). See the main text for details.

Figure 3. SEIR-type model with heterogeneity in illness severity in which a fraction of infected individuals experience severe illness, and a fraction of those require critical care. This is also a special case of Equations (Equation21(21e) dRdt=(−AI01)Ty0+(−AIs1)Tys.(21e) ) (see Figure 2). See the main text for details.

Figure 4. Benchmark results for 140 iterations computing numerical solutions to Rosenzweig-MacArthur model with Erlang (gamma) distributed maturation times and time spent in the adult-stage, using either a direct (LCT; medium grey) or more general (GLCT; black) formulations of the model (the standard Rosenzweig-MacArthur model with no maturation delay and exponentially distributed time spent in the adult stage [light grey; Equations (Equation8)] is also included as a baseline). The second and third cases are mathematically equivalent systems. For smaller shape parameters (lower dimension systems) the GLCT model formulation is relatively slower than explicitly writing out the 2M + 1 equations, whereas for larger shape parameters (higher dimension systems) the GLCT-based formulation becomes markedly faster. This is likely due to the efficiency of the matrix computations. The x-axis values M indicate the number of maturing predator sub-states (kx=M) and adult predator sub-states (ky=M), which yields a 2M + 1 dimensional model. Numerical solutions were computed using the ode() function in the deSolve package [Citation101] in R [Citation90], using method ode45 with atol=10-6, for time points 0 to 500 in increments of 1, and model parameters r = 1, K = 1000, a = 5, h = 500, χ=0.5, μx=0.5, μy=1, with initial conditions N(0)=1000, xi(0)=0 (i1), y1(0)=10, and yj(0)=0 (j>1).

Figure 4. Benchmark results for 140 iterations computing numerical solutions to Rosenzweig-MacArthur model with Erlang (gamma) distributed maturation times and time spent in the adult-stage, using either a direct (LCT; medium grey) or more general (GLCT; black) formulations of the model (the standard Rosenzweig-MacArthur model with no maturation delay and exponentially distributed time spent in the adult stage [light grey; Equations (Equation8(8b) dPdt=χaNh+NP−μP(8b) )] is also included as a baseline). The second and third cases are mathematically equivalent systems. For smaller shape parameters (lower dimension systems) the GLCT model formulation is relatively slower than explicitly writing out the 2M + 1 equations, whereas for larger shape parameters (higher dimension systems) the GLCT-based formulation becomes markedly faster. This is likely due to the efficiency of the matrix computations. The x-axis values M indicate the number of maturing predator sub-states (kx=M) and adult predator sub-states (ky=M), which yields a 2M + 1 dimensional model. Numerical solutions were computed using the ode() function in the deSolve package [Citation101] in R [Citation90], using method ode45 with atol=10-6, for time points 0 to 500 in increments of 1, and model parameters r = 1, K = 1000, a = 5, h = 500, χ=0.5, μx=0.5, μy=1, with initial conditions N(0)=1000, xi(0)=0 (i≥1), y1(0)=10, and yj(0)=0 (j>1).

Figure 5. Benchmark results for 500 iterations computing numerical solutions to an SEIR model with latent and infectious period distributions that are either Erlang (panel a; Equation (Equation18)) or Coxian (panel b; Equation (Equation20)), using either a direct equation-by-equation formulation (LCT; medium grey) or more general matrix-vector formulation (GLCT; black) of the model (SEIR with exponentially distributed latent and infectious periods [light grey; Equation (14)] also included as a baseline). The second and third cases are mathematically equivalent systems. For smaller shape parameters (lower dimension systems) the GLCT model formulation is relatively slower than explicitly writing out the 2N + 2 equations, whereas for larger shape parameters (higher dimension systems) the GLCT-based formulation becomes faster, presumably due to the efficiency of the matrix computations. The x-axis values N indicate the number of sub-states in each of E (kE=N) and I (kI=N), which yields a 2N + 2 dimensional model. Numerical solutions were computed using the ode() function in the deSolve package [Citation101] in R [Citation90], using method ode45 with atol=10-6, for time points 0 to 100 in increments of 0.5, and model parameters β=1, μE=4, μI=7, where all ρE=ρI=0.99, with initial conditions S(0)=0.9999, E1(0)=0.0001, Ei(0)=0 (i>1), I1(0)=0, Ii(0)=0 (i>1), and R(0)=0. See Supplementary Materials for more details.

Figure 5. Benchmark results for 500 iterations computing numerical solutions to an SEIR model with latent and infectious period distributions that are either Erlang (panel a; Equation (Equation18(18d) dRdt=kIτIIkI(18d) )) or Coxian (panel b; Equation (Equation20(20d) dRdt=rIIkI+∑j=1kI−1(1−ρIj)λIjIj.(20d) )), using either a direct equation-by-equation formulation (LCT; medium grey) or more general matrix-vector formulation (GLCT; black) of the model (SEIR with exponentially distributed latent and infectious periods [light grey; Equation (14)] also included as a baseline). The second and third cases are mathematically equivalent systems. For smaller shape parameters (lower dimension systems) the GLCT model formulation is relatively slower than explicitly writing out the 2N + 2 equations, whereas for larger shape parameters (higher dimension systems) the GLCT-based formulation becomes faster, presumably due to the efficiency of the matrix computations. The x-axis values N indicate the number of sub-states in each of E (kE=N) and I (kI=N), which yields a 2N + 2 dimensional model. Numerical solutions were computed using the ode() function in the deSolve package [Citation101] in R [Citation90], using method ode45 with atol=10-6, for time points 0 to 100 in increments of 0.5, and model parameters β=1, μE=4, μI=7, where all ρE=ρI=0.99, with initial conditions S(0)=0.9999, E1(0)=0.0001, Ei(0)=0 (i>1), I1(0)=0, Ii(0)=0 (i>1), and R(0)=0. See Supplementary Materials for more details.