Approximating reproduction numbers: a general numerical method for age-structured models

In this paper, we introduce a general numerical method to approximate the reproduction numbers of a large class of multi-group, age-structured, population models with a finite age span. To provide complete flexibility in the definition of the birth and transition processes, we propose an equivalent formulation for the age-integrated state within the extended space framework. Then, we discretize the birth and transition operators via pseudospectral collocation. We discuss applications to epidemic models with continuous and piecewise continuous rates, with different interpretations of the age variable (e.g., demographic age, infection age and disease age) and the transmission terms (e.g., horizontal and vertical transmission). The tests illustrate that the method can compute different reproduction numbers, including the basic and type reproduction numbers as special cases.


Introduction
Reproduction numbers are key quantities in epidemiology, as they are usually related to concepts such as the occurrence of epidemic outbreaks, the herd immunity level, the final size, and the endemic equilibrium [4].They were originally introduced in the context of demography and ecology, where they typically characterize either population persistence or extinction [32].The most known and used example of a reproduction number in epidemiology is the basic reproduction number (or ratio) R 0 , which describes the average number of secondary cases produced by a typical infected individual during its entire infectious period, in a completely susceptible population [22].For deterministic models, R 0 = 1 is a threshold that determines the stability of the disease-free equilibrium: it is stable when R 0 < 1 and unstable when R 0 > 1.In simple models, R 0 also typically characterizes the herd immunity threshold (i.e., the proportion of population that should be immunized to prevent the spread of the disease) via the expression 1 − 1/R 0 .Variations of the basic reproduction number when the population is partially immune or when transmission is affected by control measures are also known as effective and control reproduction numbers [47].
For more complicated models (e.g., with heterogeneity), looking at R 0 alone may not be satisfactory for epidemic control [49].For instance, this is true when it is possible to apply control measures only to a certain group of individuals (e.g., mosquitoes rather than humans in vector-borne infections) or against certain transmission routes (e.g., vertical rather than horizontal transmission).Under these circumstances, a simple and explicit relation between R 0 and the herd immunity level may no longer exist [49].In this case, the type reproduction number, usually denoted by T, is a more appropriate measure, as it describes the expected number of secondary cases in individuals of a certain type produced by one infected individual of the same type, either directly or through chains of infection passing through any sequence of the other types [33].As such, T can be directly linked to the amount of control measures to be applied to one specific group of individuals to stop the spread.An extension of the type reproduction number, the state reproduction number, was proposed in [39], which allows for focus types not only states describing new infections but potentially any epidemic state (e.g., asymptomatic phase and symptomatic phase) [38,Section 5.2].Finally, [43,54] considered a further generalization of these quantities, the target reproduction number, which focuses on specific interactions between types, rather than all interactions that involve a given type of individuals.It is important to underline that although different reproduction numbers have different biological interpretations, they typically share the same threshold for epidemic extinction with R 0 [43,56].
For deterministic models formulated as ordinary differential equations, a well-established and widely-used framework to compute R 0 is that of linearizing the model around the diseasefree equilibrium and then computing the spectral radius of a Next Generation Matrix (NGM) [22,23].The method is based on the idea of interpreting infection transmission as a demographic process, where a new infection is considered as a birth in the demographic sense.Intuitively, the NGM maps the distribution of infected individuals in one generation to the distribution of newly infected individuals in the next generation [22]; this is mathematically derived from the model's coefficients by suitably splitting the Jacobian into two parts, one accounting for the birth/infection processes and one accounting for the transition processes (which include, for instance, changes in the epidemiological state, death, or acquisition of immunity) [27].The simplicity of the NGM method has considerably increased its popularity in the last decades.At the same time, the potentially arbitrary splitting into birth and transition processes described above has given rise to many criticisms and misconceptions about R 0 and its generational interpretation; see for example [44].In fact, the interpretation of birth and transition is typically left to the modeller [20] and, while different choices agree on the sign of R 0 − 1, they can lead to different values of R 0 .We refer to [16] for a recent didactic note about this issue.
In the context of age-structured models, which are often formulated as integro-partial differential equations with nonlocal boundary conditions, reproduction numbers are again associated with the linearization of the model around an equilibrium and the splitting of the linearization into birth and transition; however, in this case, the operators act on infinitedimensional spaces.For example, it is well known that for a susceptible-infected-removed (SIR) model structured by demographic age without vertical transmission, R 0 can be computed as the spectral radius of a Next Generation Operator (NGO) [22], which is obtained by splitting the linearized operator in two parts-one accounting for all the infection processes and one accounting for all the remaining processes-which are both linear and defined on a subspace of the state space L 1 , with values in L 1 itself [38,Section 6.2].Thus, the procedure is very similar to that of the NGM method, but considering a space of L 1 functions rather than R d , for d a positive integer.Working in L 1 is quite straightforward when processes described by boundary conditions are considered as transition processes.However, things get more involved when boundary conditions involve birth/infection processes (for instance, think at vertical transmission, or simple infection in the case of models structured by infection age).In this context, different strategies have been proposed in the literature.In [7,9], the authors introduced sequences of "approximating problems", for which the relevant reproduction numbers can be computed via the NGO method in the L 1 framework and such that these "approximating" reproduction numbers converge to the one of the original problem, see [6] for its applications.Alternatively, another possible approach is to work in extended spaces of the form R d × L 1 and to develop the spectral theory following the results of [56]; see [55] for details on the extended space method and [38,35] for applications in this context.
Since reproduction numbers for age-structured models are defined as the spectral radius of operators acting between infinite-dimensional vector spaces, their analytical computation is typically difficult, unless one makes additional simplifying assumptions on the model coefficients (e.g., separable mixing).To overcome this problem, several numerical methods have been proposed to approximate R 0 by discretizing the birth and transition operators first to derive a finite-dimensional approximation of the NGO.The NGO is positive and, typically, compact, hence its spectral radius is a dominant eigenvalue (in the sense of largest in magnitude) [41] and the spectral radius of the discrete operator gives an approximation of R 0 .[30,42] proposed a Theta method and a backward Euler method, respectively, to discretize the birth and the transition operators relevant to an age-structured epidemic model with no vertical transmission and a finite age span.Being based on finite-order methods, these two approaches guarantee, under suitable smoothness assumptions on the coefficients, a finite order of convergence.An improvement of these methods was proposed in [11,13,14] by using pseudospectral collocation (thus potentially guaranteeing an infinite order of convergence for smooth coefficients [59]) in the case of models with nontrivial boundary conditions and a finite age span.However, all these methods rely on the definition of R 0 in the L 1 framework discussed above, thus including the boundary condition in the domain of the transition operator and suffering from a lack of flexibility in the choice of the birth and transition processes.
In this paper, we introduce a general numerical method to approximate the reproduction numbers of a large class of multi-group age-structured models.We follow the idea of [30,42,11,13,14] by identifying a birth and a transition operator and discretizing them via pseudospectral collocation.To work with complete flexibility in the definition of the birth/infection and transition processes, we build our approach on the extended space framework by [38,35].We define a suitable integral mapping from the extended space to the space of absolutely continuous functions, so that point evaluation is well defined and the birth processes included in the boundary conditions become part of the action of a new operator with a trivial boundary condition.The idea of going to the integrated framework has been previously successfully applied in [5,12,50,51].
We assume that the maximum age is finite, which is equivalent to require that the survival probability (i.e., the probability of still being alive or infectious depending on the context) is zero after the maximum age.We focus on the applications of the method and we postpone the proof of convergence to a manuscript in preparation by the authors [21].
The paper is organized as follows.In Section 2, we consider a prototype linear multi-group age-structured model and, with reference to it, we illustrate the theoretical framework and the reformulation via integration of the state in the age variable.The numerical method is described in Section 3, alongside additional details about its implementation.In Section 4, we present some applications of the method to epidemic models taken from the literature.To illustrate the flexibility of the approach, we compute different types of reproduction numbers, depending on different interpretations of the age variable and the transmission term.To facilitate the reading, the modeling details and specific computations are collected in Appendix A. Finally, in Section 5 we discuss some concluding remarks.

A general theoretical framework
In this section, we introduce a general, linear, multi-group, age-structured, population model, which encompasses many models of the literature typically obtained from the linearization of a nonlinear model around an equilibrium.With reference to this prototype model and following [38,35,36], we first recall the definition of the basic reproduction number and other relevant reproduction numbers useful to address some control strategies of infectious diseases within the extended space framework.Then, we introduce an integral mapping to the space of absolutely continuous functions and provide the equivalent definitions within the ACframework, which is more advantageous for the development of the discretization technique presented in Section 3.
Let a † ∈ (0, +∞) denote the maximum age.We consider the following linear, multi-group, age-structured, population model: where and d is a positive integer.The d × d matrices β(a, ξ) and b(a) are assumed to be non-negative.The d × d matrix δ(a) has non-positive diagonal elements and all the off-diagonal elements are non-negative.Hence, δ(a) is an essentially non-negative matrix and the associated fundamental solution matrix is a non-negative, non-singular matrix [38, pag. 77].
In the context of infectious disease modeling, (2.1)-(2.2) enables one to describe several types of transmission routes and biological processes: the boundary term (2.2) can account for either vertical transmission (when a represents demographic age) or for natural infection (when a represents infection age), while the right-hand side of (2.1) includes horizontal transmission terms, as well as the removal of individuals via death or recovery.
To allow for flexibility in the definition of reproduction numbers associated to different ways of inflow into the infected compartments, we assume that β and b can be divided into the following: where the non-negative matrices β + , β − , b + , b − are chosen to conveniently split the inflow processes into two parts where β + , b + collect the birth processes and β − , b − collect the transition processes.The +/− notation was inspired by [39].
We work in the extended state space of the density function and its boundary value, hence we consider the space Z := R d × X, equipped with the following norm: [35] and [38,Chapter 6.4.2].Furthermore, we introduce the subspace Z 0 = {0} × X ⊂ Z, where 0 is now used to denote the null vector of R d .
We define the baseline transition operator M Z : D(M Z )(⊂ Z 0 ) → Z as follows: and the bounded linear birth operators B Z ± : From the assumption on δ, it follows that M Z is invertible, and then we can define the following: To compute the reproduction number for the birth process described by B Z + , we define the transition operator Section 4].Then, the reproduction number R for the birth process B Z + and the transition operator M Z − is the spectral radius of the positive operator 3) is a compact operator with positive spectral radius, then the reproduction number is a dominant real eigenvalue with an associated non-negative eigenfunction [41].Note that, in line with the interpretation, the operator ( captures the chains of transmission through any sequence of any other type not included in B Z + .We generically refer to "reproduction number" to include several different interpretations as specific cases, including the basic reproduction number R 0 and the type reproduction number T, as well as more general definitions [33,38,26].

• If B Z
+ contains all processes leading to new infections, then (2.3) is the standard NGO and its spectral radius is precisely R 0 .
• If B Z + only contains a subset of the new infections (e.g., horizontal vs vertical, vector vs host) and B Z − contains all other processes, then (2.3) is the type reproduction operator and its spectral radius is the type reproduction number, and K Z + and K Z − are the type-specific NGOs [38, pag. 477].
• If B Z + contains the inflow in a generic compartment (possibly not a state-at-infection), then the spectral radius of (2.3) is the state reproduction number according to the terminology in [39].
Moreover, depending on the assumptions on population immunity and interventions, (2.3) can capture the concepts of effective and control reproduction numbers.Additionally, (2.3) provides a unifying abstract framework to introduce the numerical method in Section 3.

Now, let us consider the Banach space
and its closed subspace defines an isomorphism between Z and Y and between Z 0 and Y 0 .
By defining y(t, •) := V (0; x(t, •)), the model (2.1)-(2.2) for x(t, •) ∈ X is equivalent to the following multi-group model: (2.4) for y(t, •) ∈ Y 0 .Note that, in (2.4), we consider an absolutely continuous function as a measure.Now, we introduce the birth operators where Proposition 4.1] hold, and there is a one-to-one correspondence of the eigenfunctions via the operator V.Moreover, the compactness results for H Z in Z can be easily extended to the corresponding operators in Y via the isomorphism V.

Numerical approximation via pseudospectral method
In this section, we illustrate how to approximate the reproduction number of a class of models that can be recast in the framework of Section 2. The idea is to derive a finite-dimensional approximation H Y N of H Y , and to approximate the eigenvalues of the latter through those of the former.This is achieved by separately discretizing the operators B Y + and M Y − in Section 2 via pseudospectral collocation [59,10].
In this section, we only work in the space Y and, to simplify the notation, we drop the superscript Y from the operators acting on Y.We adopt the MATLAB-like notation according to which elements of a column vector are separated by ";", while elements of a row vector are separated by ",".
Let us consider the space Y N of algebraic polynomials of degree at most equal to N, for N a positive integer, on [0, a † ], taking values in R d , and its subspace Y 0,N : and the prolongation operator P 0,N : R dN → Y 0,N ⊆ Y 0 defined as1 Observe that R N P 0,N = I R dN and that the composition We derive the finite-dimensional approximations B N : R dN → R dN and M N : R dN → R dN of B + and M − , respectively, as follows: Then, the finite-dimensional approximation N .Finally, we can use the eigenvalues of H N to approximate those of H.The discrete eigenvalue problem can be solved either by using the standard MATLAB function eig or by solving the generalized eigenvalue problem B N = λM N [13].Correspondingly, observe that the eigenvectors of H N give an approximation of the values of the eigenfunctions of H at the Chebyshev zeros.Thus, an approximation of the eigenfunctions of H can be obtained by interpolating the eigenvectors of H N at the nodes in Θ N and, subsequently, an approximation of the eigenfunctions of H Z can be obtained by applying V −1 to those polynomials.

Implementation issues
Here, for the sake of simplicity, we restrict to the case d = 1, and we give an explicit description of the entries of the matrices representing the discretized operators.These follow from the following cardinal property of the Lagrange polynomials: from which it is easy to see that the entries of the matrices B N and M N are explicitly given by and If the integrals in (3.1) and (3.2) cannot be analytically computed, then we need to approximate them via a quadrature formula.In this regard, for a function ψ : [0, a † ] → R d , we make the following approximation: where w 1 , . . ., w N are the Fejer's first rule-quadrature weights relevant to the Chebyshev zeros [62].As for the integrals in [0, a i ], i = 1, . . ., N, inspired by [24], we use the i-th row of the inverse of the following (reduced) differentiation matrix: When dealing with models where the structuring variable a lives in a "large" domain, it can be convenient to consider the change of variable α = a/a † , where α ∈ [0, 1].Then, by defining u(t, α) := x(t, a † α), (2.1)-(2.2) can be rewritten as follows: Via integration, one can derive the corresponding equation for (2.4): Then, the numerical approach can be easily adapted.Moreover, observe that one could also be interested in using different interpretations of "age" in the same model; for example see ( Finally, in the presence of breaking points (i.e., discontinuities in the model coefficients or in their derivatives), it is preferable to resort to a piecewise approach.More in the detail, given 0 = ā0 < ā1 < • • • < āM = a † the breaking points of the coefficients, for M a positive integer, we approximate a function ψ ∈ Y via a continuous function In this case, in order to simplify the implementation, a possible choice is to extend the mesh (of Chebyshev zeros plus the left endpoint) within each interval by adding the right endpoint.This still ensures convergence of interpolation under the choice made at the beginning of the section [45,Theorem 4.2.4].Alternatively, it can be convenient to choose the Chebyshev extremal nodes as discretization points and the Clenshaw-Curtis quadrature formula to approximate the integrals in [0, a † ] [19,57].The latter choice has been widely used in the literature for pseudospectral methods, and experimentally shows convergence properties comparable to those of Chebyshev zeros [57].In the codes available at https://cdlab.uniud.it/software,we implement this latter choice.

Age-structured epidemic models and reproduction numbers in applications
In this section, we introduce some examples of linear age-structured models in the context of infectious disease dynamics which are obtained from the linearization of a nonlinear model around an equilibrium.For each of them, we compute different types of reproduction numbers depending on different interpretations of the age variable and the transmission term.The examples are chosen to cover a range of cases: the first two models are somewhat simplified, which allows us to work with continuous rates and scalar equations and to have explicit expressions for the reproduction numbers; the third example is a system of equations that is useful to reflect on the interpretation of the birth processes; and finally, the last example involves a system of equations and application to real data, which requires piecewise constant parameters.All the reproduction numbers are computed using the method of Section 3 with N = 100 and the piecewise version of the numerical approach in the presence of breaking points.The modeling details and the linearization around the equilibria are described in the appendix, while Section 4 shows how the test examples fit into the general framework of Section 2. As we assume to work with a finite maximum age, we implicitly assume that the death/removal rates are infinite after the maximum age.

An epidemic model structured by infection age
Let us consider the spread of an infectious disease in a closed population, with the infected individuals structured by infection age, in the presence of isolation measures upon detection of symptoms.We refer to [38, Section 5.3] and Appendix A.1 for further details about the nonlinear model, and to [52] for an application of an extended version of this model to study the impact of contact tracing on the containment of COVID-19.
Let i(t, τ) denote the density of infected individuals at time t ≥ 0 and infection age τ ∈ [0, τ † ].The linearization around the disease-free equilibrium reads as follows: The non-negative functions b, γ : [0, τ † ] → R describe the per capita infection rate and recovery rate, respectively.In particular, we assume that γ accounts for both natural recovery and isolation upon symptom onset, and we take the following: Table 4.1: Birth and transition processes used to compute the reproduction numbers for the models in Section 4, with reference to the notation used in Section 2.
where γ 0 , ϵ, D are non-negative parameters whose interpretation is specified in Section 4.1.
In the absence of isolation from symptoms (ϵ = 0), the basic reproduction number is In the presence of isolation (ϵ > 0), the control reproduction number is as follows: Note that, even though an explicit expression for R c is available in this case, its computation from the analytical formula requires numerical approximations.In Figure 4.1, we investigated the impact of a delay from symptom onset to diagnosis (D) and the fraction of symptomatic infections (ϵ) using parameter values inspired by the COVID-19 literature, collected in Section 4.1.R c increases linearly with the baseline transmission parameter R 0 , and isolation of symptomatic individuals effectively reduces R c and promotes controllability (left panel).Moreover, the isolation is more effective if the proportion of symptomatic individuals is larger or the delay from symptoms to isolation is shorter (right).
Finally, in Figure 4.2, we illustrate the convergence behavior of the approximation error with respect to R 0 = 1 for increasing values of N with ϵ = 0.

A multi-strain epidemic model with host age structure
We consider a model with two classes of infected individuals structured by demographic age, which describes the dynamics of two competing strains in a host population [48].For applications of similar models to real infectious diseases, we refer to [18], where the case of influenza was discussed.In the model, susceptible individuals can be infected either with strain 1 or with strain 2, and enter the class of individuals infected with each strain.Cross-immunity      [46].The parameters are chosen so that b(τ)e −γ 0 τ = R 0 Γ(5, 1.9), where Γ(5, 1.9) is a Gamma density function with mean 5 days and standard deviation 1.9 [29] (normalized in [0, τ † ]), and R 0 is varied in the simulations.Function describing density dependence of births K 1 (a) Age-specific susceptibility of individuals to strain 1 K 2 (a) m 2 + c 2 a Age-specific susceptibility of individuals to strain 2 q j (a) 1 Age-specific infection rate for strain j, j = 1, 2 Table 4.3: Parameters of (4.2), taken from [48].With this parameter choice, the total population density is Φ −1 (1/R d 0 ) = 19/3.The non-negative parameters c 1 , c 2 , m 1 and m 2 are introduced for mathematical convenience to characterize the shape of the functions K 1 and K 2 , and are varied in the simulations.is assumed, so that individuals recovered with any strain are immune towards both strains, and immunity is assumed to be permanent.In [48], it is shown that the coexistence of both strains in an endemic equilibrium is not possible when the parameters do not depend on age, but is possible for age-dependent parameters.The model derivation is described in detail in Appendix A.2, and the parameters are summarized in Section 4.2.We assume that the total population is at the (nontrivial) demographic steady state, and we neglect disease-induced mortality.The system can have four equilibria, of which three are boundary equilibria (one disease-free and two with only one strain present in the population) and one is an endemic coexistence equilibrium.Let i j (t, a) denote the density of individuals infected with strain j, for j = 1, 2, at time t ≥ 0 and demographic age a ∈ [0, a † ].The linearization around the disease-free equilibrium reads as follows: with β j (a, ξ) = K j (a)q j (ξ)P * (ξ), see also Section 4.2, and The basic reproduction number R 0,j for strain j can be computed by individually considering each scalar equation in the absence of the other strain, and explicitly reads as follows: Figure 4.3 shows the values of R 0,1 and R 0,2 varying the parameters c 1 , m 1 , and c 2 , m 2 , respectively, which are introduced for mathematical convenience to characterize the shape of the age-specific susceptibility of individuals (see also Section 4.2).The large values of the basic reproduction numbers for these parameter choices ensure the existence of the boundary equilibria where one strain is endemic in the population, and allow us to study the invasion reproduction numbers, as explained below.
Consider the boundary equilibria , where only strain 1 or strain 2, respectively, is present in the population (where s * k (a) and i * k (a) are the densities of susceptible and infected individuals at equilibrium divided by the stable age distribution P * (a)).The equilibria E * k , k = 1, 2, do not admit an analytic expression, but their values can be solved numerically, as explained in Appendix A.2.The linearization at E * k for k = 1, 2 and j ̸ = k reads as follows: The invasion reproduction number R j k , which describes whether strain j can invade the equilibrium set by strain k, admits the following explicit expression: Note that, in this case, computing the reproduction numbers from the analytical formula requires one to numerically approximate not only the integrals, but also the equilibria.When both invasion reproduction numbers are larger than 1, the coexistence equilibrium is stable and the two strains can persist in the population [48].
Figure 4.4 shows the invasion reproduction numbers R 1 2 and R 2 1 when varying the parameters m 1 , m 2 , c 1 , and c 2 .As expected, each of these parameters has an opposite impact (either decreasing or increasing) on R 1 2 and R 2 1 .The parameter m 1 is the only one that positively impacts the invasion of strain 1 (increasing R 1  2 ) and negatively impacts strain 2 (decreasing R 2 1 ).In Figure 4.5, we plot the absolute errors of approximation for R 0,1 and R 0,2 for increasing N with respect to the reference values computed from the analytical formulas.The numerical convergence is of infinite order, which is consistent with the fact that the parameters are of class C ∞ .Table 4.4: Parameters of (4.3).Parameter values are taken from [39], assuming exponential distributions (i.e., all rates are assumed to be constant), making exception for b 11 and b 12 which are chosen for illustration purposes.

An epidemic model with symptomatic and asymptomatic transmission
We consider the asymptomatic transmission model described in [39].Upon infection, individuals enter an asymptomatic phase characterized by an infection age τ 1 ∈ [0, τ †  1 ].Then, individuals can either recover without developing symptoms at a rate γ 1 (τ 1 ), or they can develop symptoms at a rate b 21 (τ 1 ), upon which they enter the symptomatic phase, which is characterized by a disease age (time since the onset of symptoms) , and from which they recover with a rate γ 2 (τ 2 ).
Let i 1 (t, τ 1 ) denote the density of asymptomatic individuals at time t ≥ 0 and infection age τ 1 , and let i 2 (t, τ 2 ) denote the density of symptomatic individuals at time t ≥ 0 and disease age τ 2 .Assuming that the total susceptible population is normalized to one, the linearization around the disease-free equilibrium reads where b 11 (τ 1 ) is the per capita infection rate at the infection age τ 1 in the asymptomatic phase, and b 12 (τ 2 ) is the infection rate at the disease age τ 2 in the symptomatic phase.
The parameter values used in the numerical simulations are listed in Section 4.3.Here, inspired by [20,Section 4] and [39], we can consider different definitions of "birth".According to the standard interpretation of R 0 as the number of new infections generated by one average infectious individual, we consider all new infections coming from asymptomatic and symptomatic individuals as birth processes, and consider the development of symptoms as transition process.On the other hand, since asymptomatic individuals are invisible from the point of view of the public health system (in the absence of other interventions like test-and-trace and asymptomatic testing), one could be interested in studying the effectiveness of control measures to the class of symptomatic individuals only (e.g., isolation upon symptoms) [39].In this case, one could interpret the entrance in the class of symptomatic individuals as birth, while the asymptomatic phase is included in the transition operator, see also [8].Therefore, we denote the state reproduction number of symptomatic individuals by T S .As expected, the two reproduction numbers, R 0 and T S , have different values in general, but the same threshold at 1, as seen in Figure 4.6 when varying r := b 11 /b 21 .Additionally, Figure 4.6 illustrates another important theoretical property: the state reproduction number T S is finite (and well defined) only when the spectral radius of the NGO relevant to asymptomatic transmission is smaller than one.When the latter becomes larger than one, then asymptomatic individuals alone can sustain the epidemic, hence interventions that are targeted to only symptomatic individuals are not sufficient to control its spread.This feature is reflected in the behavior of T S , which tends to infinity and becomes not well defined.

A model for the spread of Rubella with vertical transmission
Rubella, also known as German measles or three-day measles, is an acute and contagious viral infection that can be vertically transmitted [25].It is not particularly severe in children and adults, but infection during pregnancy can result in the so called congenital rubella syndrome, which can result in fetal death or congenital malformations in infants [61].For women infected during early pregnancy (first trimester), the probability of passing the virus to the fetus is reported to be 90% [61] and, since there is no treatment for Rubella, the design of vaccination policies plays a fundamental role.In the last few decades, this has triggered a series of works by Anderson and colleagues, see for example [1,2,3].
Here, we consider a model inspired by [1] for the spread of congenital rubella syndrome in the United Kingdom.The model definition and the derivation of the disease-free equilibrium and the corresponding linearization are described in detail in Appendix A. Table 4.5: Parameters of (4.4) taken from [1].The functions f and Π are chosen so that interventions such as vaccinations.To simplify our terminology, here we refer to R 0 even in the presence of vaccinations.
Let e(t, a) and i(t, a) denote the density of exposed (not infectious) and infectious individuals, respectively, at time t ≥ 0 and demographic age a ∈ [0, a † ], and let s * (a) denote the density of susceptible individuals at equilibrium, which is determined by the vaccination rate ν (see Appendix A.3 for the details).The linearization around the disease-free equilibrium reads as follows: where β(a, ξ) = s * (a)Π(ξ)k(a, ξ) and b(a) = q f (a)Π(a), see Section 4.4 for more details.
Following [1], we assume that the transmission rate k is piecewise constant among six age groups, i.e., given 0 so that we can estimate it from existing data using the well-known procedure of [3, Appendix A] (that we recall in Appendix A.3 for the reader's convenience).In this regard, we consider force of infection data from two different datasets: one for the South East of England in 1980 (case a) and one for Leeds in 1978 (case b), as summarized in Appendix A.3.These datasets fix the age class division at 5, 10, 15, 20, and 30 years of age.The piecewise form in (4.5) gives us a Who Acquires Infection From Whom (WAIFW) matrix (k ij ) i,j=1,...6 , which collects the contact rates between different age groups.We consider three different forms of the WAIFW, which capture different features in the transmission patterns.The estimated values of k ij are illustrated in Figure 4.7.More details on the parameters and data used for the estimation are available in Appendix A.3.
We compute the basic reproduction number, R 0 , and the type reproduction number for horizontal transmission, T H , for different choices of the vaccination rate v and the WAIFW    When not varied, the parameters are ν = 0.11871 and q = 0.9.The computed values of R 0 and T H are never substantially different (we can appreciate some differences only at the third decimal digit), thus suggesting that, for these data-informed parameter values, vertical transmission has a substantially smaller effect on the epidemic spread compared to horizontal transmission.Note that, for case b, the results obtained with WAIFW2 and WAIFW3 are identical: this is actually a consequence of the particular force of infection data in Appendix A.3, which is the same for the two age groups 20-29 and 30-75 years old, see also [1, pag. 324].Additionally, the values in Section 4.4 and Table 4.7 numerically illustrate the known relations between T H and R 0 , namely 0 < T H < R 0 < 1 and 1 < R 0 < T H [36].
Both R 0 and T H decrease for increasing v for all choices of WAIFW matrix, see Figure 4.8.This is expected since a larger vaccination rate reduces the density of the susceptible population at equilibrium.On the other hand, different choices of the WAIFW matrix may result in slightly different quantitative values of R 0 and T H , which reflects how different assumptions on the mixing patterns between individuals of different ages can affect transmission.This difference is even more evident looking at the eigenfunction of the type reproduction operator relevant to T H (normalized in the L 1 -norm), see Figure 4.9.
Finally, we compute the type reproduction number for vertical transmission T V .Figure 4.10 shows how T V depends on ν (left) and q (right) for case b with WAIFW1.T V is a decreasing function of ν and linearly increases with q (the ad hoc values of ν are chosen for illustrative purposes).

Discussion and conclusions
In this paper, we have proposed a general numerical method to approximate the reproduction numbers of a class of age-structured population models with a finite age span.We presented applications to epidemic models that show how the method can compute different reproduction numbers, including the basic and the type reproduction numbers.Additionally, these examples show that, even when analytical expressions for the reproduction numbers are available, their computation may still require numerical approximations.Hence, our approach may represent an efficient and general alternative.
To our knowledge, this is the first numerical method that can approximate the many types of reproduction numbers for any splitting of the processes into birth and transition.This flexibility is made possible by working with the equivalent formulation for the age-integrated state, which has several advantages.First, it allows us to interpret processes described by the boundary condition as perturbations of an operator with trivial domain.Second, since the state is continuous, we can work with polynomial interpolation.Moreover, the additional regularity provided by the integral mapping permits us to investigate the convergence of the approximated eigenvalues without the need to look for a characteristic equation as in [14].In fact, we can prove under mild (and biologically meaningful) assumptions that if M − is invertible with bounded inverse, then there exists a positive integer N such that M N is also invertible with bounded inverse for all N ≥ N, and that the eigenvalues of H N converge to those of H with rate that depends on the regularity of the relevant eigenfunctions.In this paper, we experimentally investigated the convergence in some cases where the reproduction numbers were known, and we refer to the work in preparation [21] for the theoretical details.
Here, we focused on models with one structuring variable, namely age.However, to obtain a more realistic portrait of the dynamics of a population, one could also be interested in considering models with two (or more) structures (e.g., demographic age and infection age), see for example [40,60] and references therein.Unfortunately, considering an additional structuring variable brings in many difficulties in the theoretical and numerical study of these models.In fact, the hyperbolic nature of the infinitesimal generator of the semigroup makes the stability analysis more involved in the presence of discontinuities that propagate along the characteristic lines; for instance, these could be generated by corner singularities in the domain of the structuring variables, which is typically a rectangle in R 2 .In this context, working with the integrated state permits us to work with more regular spaces and to have an explicit expression for the infinitesimal generator, without the need for additional smoothness assumptions on the model coefficients, or compatibility assumptions on the boundary conditions as in [11].A first work in this direction is [5], where the integrated state framework was used to approximate the spectrum of the infinitesimal generator relevant to the semigroup of a linear, scalar model with two structures.Following this idea, we plan to extend the method presented in this paper to models with more than one structure.
A limitation of this work is the assumption of finite age span.Hence, another interesting extension of this method regards models with unbounded structuring variables, which are common in the literature when considering probability distributions with unbounded support.For handling this problem numerically, one can either truncate the domain or resort to interpolation on exponentially weighted spaces and Laguerre-type nodes.For recent applications of these techniques to delay and renewal equations, which can also be used to model structured populations [17], see [31,53].neglect additional disease-induced mortality.The full nonlinear model reads as follows: where Q(t) := a † 0 P(t, ξ) dξ, P(t, a) := S(t, a) + I 1 (t, a) + I 2 (t, a) is the age distribution of the host population, and the force of infection λ j satisfies where q j is the age-specific infection rate for strain j, and K j is the age-specific susceptibility of susceptible individuals to strain j.For the demographic process, P(t, a) is assumed to be at demographic equilibrium, i.e., the death rate µ and the per capita fertility rate f are such that and obtain the following nonlinear system of equations: where the force of infection can be written (equivalently) as follows: The linearization around the disease-free equilibrium is reported in (4.2).Regarding the boundary equilibria E , where only one strain is present in the population, they satisfy, for k = 1, 2, Numerical solution of the endemic equilibrium.Note that system (A.3) for s * k and i * k cannot be solved analytically.To compute the equilibrium values to perform the numerical tests in the main text, the solutions were approximated numerically.Consider the equilibrium E * 1 for illustrative purposes.For n ∈ N, we discretize the interval [0, a † ] using Chebyshev extremal nodes {0 = a 0 < a 1 < • • • < a n = a † }.Then, the derivative at each node is approximated using spectral differentiation, and the integral is approximated using Clenshaw-Curtis quadrature formulas with weights w n,j .Let S n , I n ∈ R n+1 be two vectors such that, for j = 0, . . ., n, each entry S n,j approximates s * 1 (a j ), and each entry I n,j approximates i * 1 (a j ).Let D ∈ R (n+1)×(n+1) be the differentiation matrix associated with the nodes.Finally, let K n , Q n ∈ R n+1 such that K n,j = K 1 (a j ), and Q n,j = w n,j q 1 (a j )P * (a j ).Then, we can write the following approximating system for the unknowns S n , I n : where * denotes the element-wise product.In practice, to facilitate the convergence to the nontrivial solution, we divide both terms by (Q n • I n ) and solve the corresponding system.

A.3 A model for the spread of Rubella with vertical transmission
We consider a model inspired by [1].Let M(t, a), S(t, a), E(t, a), I(t, a) and Z(t, a) denote the density of individuals who are protected by maternal antibodies, susceptible, infected but not infectious, infectious, and immune (acquired naturally or via vaccination), respectively, at time t ≥ 0 and demographic age a ∈ [0, a † ].The model reads as follows: with the following boundary conditions: is the force of infection, for k(a, ξ) the transmission rate between one individual of age a and one individual of age ξ.We refer to Section 4.4 for the interpretation of the parameters.Note that an individual is assumed to have permanent immunity once infected.
Following [38,Chapter 6], we assume that a † 0 f (a)Π(a) da = 1, where Π is the survival probability defined in (A.1), and that the age density of the host population P(t, a) := M(t, a) + S(t, a) + E(t, a) + I(t, a) + Z(t, a) has already attained the stable age distribution P(t, a) = P * (a) defined in (A.2), for some P 0 > 0, see for example [38,Chapter 6].For convenience, we define the standardized transmission rate as follows:  2] according to their comments at page 324.
where the force of infection can be expressed as follows: Observe that we have s * (a) ≡ 1 for v ≡ 0. The linearization around the disease-free equilibrium is given in (4.4).

Figure 4 . 4 :
Figure 4.4: Model (4.2).Invasion reproduction numbers varying the parameters m 1 , m 2 , c 1 and c 2 .Note that these parameters affect the value of the invasion reproduction numbers both via the kernels and via the value of the susceptible population at equilibrium.When not varied, the parameters are fixed at: c 1 = 1, c 2 = 0.06, m 1 = 0.1, and m 2 = 0.06.

Figure 4 . 6 :
Figure 4.6: Model (4.3).Left: R 0 and T S as functions of r := b 11 /b 21 .Right: T S and the spectral radius of the NGO relevant to the asymptomatic individuals as functions of r.

Figure 4 . 8 :
Figure 4.8: Model (4.4).T H as a function of v for different choices of the WAIFW-matrix, case a (left) and case b (right) according to Appendix A.3.

Figure 4 . 9 :
Figure 4.9: Model (4.4).Approximated eigenfunctions of the type reproduction operator (see also Section 2) relevant to horizontal transmission in the absence of vaccination, for different choices of the WAIFW matrix for case a (upper row) and case b (lower row).

Figure 4 .
Figure 4.10: Model (4.4).T V as a function of v (left) and q (right) for case b with WAIFW1.When not varied, the parameters are ν = 0.11871 and q = 0.9.

Table 4 .
2: Parameters of (4.1).The function f is a Gamma probability density function with mean µ = 4.84 days and standard deviation σ = 2.79, describing the incubation period distribution 3. The parameter definitions and values used in the numerical tests are collected in Section 4.4.Note that, in the literature, the term control reproduction number is typically used in the presence of

Table 4 .
6: Model (4.4).R 0 and T H for different values of the vaccination rate v and different choices of the WAIFW matrix (case a).

Table 4 .
7: Model (4.4).R 0 and T H for different values of the vaccination rate v and different choices of the WAIFW matrix (case b).matrix.The results are collected in Section 4.4 (case a) and Table 4.7 (case b), rounded to four decimal digits.

Table A .
6, which are listed below:In Appendix A.3, we list the values of k i , i = 1, ..., 6, obtained from Appendix A.3 using the procedure described below.2:Values of k i , i = 1, ..., 6 in case a and case b, estimated from the force of infection data in Appendix A.3 with different configurations of the WAIFW matrix.Estimation of age-dependent transmission rates.Here, we recall the procedure described in [3, Appendix A] to estimate the age-dependent transmission rate k under the hypothesis that it is piecewise constant among different age groups, i.e.,k(a, ξ) ≡ k ij for (a, ξ) ∈ [ āi−1 , āi ] × [ āj−1 , āj ], i, j = 1, . .., n, for given 0 = ā0 < ā1 < • • • < ān = a † .We assume that the age-specific mortality rate µ has the following form: