Skip to main content
Wiley - PMC COVID-19 Collection logoLink to Wiley - PMC COVID-19 Collection
. 2022 Nov 7;185(Suppl 2):S547–S572. doi: 10.1111/rssa.12947

COVID‐19 clinical footprint to infer about mortality

Carlos E Rodríguez 1,✉, Ramsés H Mena 1
PMCID: PMC9877559  PMID: 38607894

Abstract

Information on 4.1 million patients identified as COVID‐19 positive in Mexico is used to understand the relationship between comorbidities, symptoms, hospitalisations and deaths due to the COVID‐19 disease. Using the presence or absence of these variables a clinical footprint for each patient is created. The risk, expected mortality and the prediction of death outcomes, among other relevant quantities, are obtained and analysed by means of a multivariate Bernoulli distribution. The proposal considers all possible footprint combinations resulting in a robust model suitable for Bayesian inference. The analysis is carried out considering the information on the monthly COVID‐19 cases, from March 2020 to the first days of January 2022. This allows one to appreciate the evolution of the mortality risk over time and the effect the strategies of the health authorities have had on it. Supporting information for this article, containing code and the dataset used for the analysis, is available online.

Keywords: Bayesian modelling, correlation, COVID‐19 footprint, mortality risk, prediction

1. INTRODUCTION

On 31 December 2019, the World Health Organization (WHO) received a troubling report from Chinese health officials (WHO, 2021). A mystery pneumonia had sickened dozens of people in Wuhan, the capital of Hubei Province in China. A virus, that we know now as SARS‐CoV‐2, had been transmitted from an unknown animal host to humans and since then it has turned up lives worldwide with an unprecedented speed.

As of 8 January 2022, the WHO database has confirmed 298,915,721 COVID‐19 cases globally with 5,469,303 reported deaths from 237 countries. The most affected countries are the United States with 826,022 deaths out of 57,535,858 confirmed cases; Brazil with 619,513 deaths out of 22,351,104 cases; India with 483,178 deaths out of 35,226,386 confirmed cases; the Russian Federation with 314,604 deaths out of 10,618,035 confirmed cases and Mexico with 300,303 deaths out of 4,113,789 confirmed cases (WHO, 2021).

1.1. Clinical characteristics of COVID‐19

The incubation period of COVID‐19, defined as the time between exposure to the virus and symptom onset, is on average 5 to 6 days, but it can be as long as 14 days (Lauer et al., 2020). The symptoms of COVID‐19 range from those that might not be noticeable to severe life‐threatening illness. Some infected people have no symptoms, known as asymptomatic or pre‐symptomatic carriers (Arons et al., 2020).

According to the WHO most infected people will develop mild to moderate illness and recover without hospitalisation. The WHO divides COVID‐19 symptoms in three groups: most common symptoms; fever, dry cough and tiredness, less common symptoms; aches and pains, sore throat, diarrhoea, conjunctivitis, headache, loss of taste or smell, a rash on skin, or discolouration of fingers or toes, and serious symptoms; breathing difficulty or shortness of breath, chest pain or pressure, loss of speech or movement (WHO, 2021).

It is important to mention that individual symptoms appear to have poor diagnostic properties. Indeed, based on currently available data, neither absence nor presence of any symptoms are accurate enough to rule in or rule out the disease (Struyf et al., 2020). Thus, the gold standard for COVID‐19 diagnosis is the laboratory technique known as Reverse‐Transcription Polymerase Chain Reaction test; however, there are other alternatives (see Oliveira et al., 2020).

1.2. Comorbidities and their effects in COVID‐19 patients

People of any age who have underlying medical conditions, such as hypertension and diabetes, have shown worse prognosis (Sanyaolu et al., 2020). Diabetic patients have increased morbidity and mortality rates which have been linked to more hospitalisation and intensive care unit admissions (Singh et al., 2020). People with chronic obstructive pulmonary disease (COPD) or any respiratory illnesses are also at higher risk for severe illness from COVID‐19 (Zhao et al., 2020).

1.3. Impact of sex and age on COVID‐19 outcomes

From the first reports from China a sex imbalance with regard to the fatality rate of COVID‐19 patients has been detected. Case fatality rates reported in China, Italy, Spain, France, Germany and Switzerland support the view that a consistent biological phenomenon is operating, accounting for a higher case fatality in men. Such observation is independent of country‐specific demographics and testing strategies (Gebhard et al., 2020).

Age has also been identified as a variable with high impact over the mortality rate of COVID‐19 cases. All age groups appear to have significantly higher mortality compared with the immediately younger age group (Bonanad et al., 2020).

1.4. Objectives and methods

The purpose of this research is to use the available data from the COVID‐19 pandemic in Mexico to gain insight into the COVID‐19 disease. The first particular objective is to understand the relationship between comorbidities, symptoms, hospitalisation and mortality. The second is to identify differences by sex and age group. The third last objective is the mortality risk prediction of a patient identified as COVID‐19 positive, given commodities, symptoms, age and sex. It is important to observe that almost all relevant variables in this study are binary and indicate the presence or absence of a symptom or a comorbidity, or whether a patient has died, has been hospitalised or not.

A straightforward first strategy to analyse the impact of comorbidities and symptoms over death outcomes and hospitalisations, under a binary data setting, is to use contingency tables. Thus, denoting generically by Yj's the presence or absence of these clinical features, basic probabilities such as P(Yj=1) and P(Yi=1|Yj=1) can be easily computed via the observed frequencies. This can be extended to account for higher order interactions of the form P(Yi|Yj,Yr). The idea to compute these probabilities efficiently is to concatenate the observed combinations yjyr and then to obtain the correspondent frequencies. The same ideas could be applied to obtain probabilities such as P(Yi|Yj1,Yj2,…,Yjk). Moving to a modelling framework, a second vanilla strategy is to use logistic regression models, and estimate death outcome probabilities using all available variables. The challenge is to select a small subset of variables that describe the death outcomes effectively. However, it is not possible to obtain all the summaries of interest, as the joint distribution over all variables is sometimes needed and not robustly available for such a regression method. A third and possibly more general approach is to use a multivariate binary distribution.

To achieve the aforementioned objectives via the generation of relevant information summaries such as those obtained via contingency tables, while maintaining the predictive capabilities of the logistic regression, we use the multivariate Bernoulli distribution (see Dai et al., 2013). In this case all the relevant quantities are obtained in closed form and their implementation is straightforward. This model is a generalisation of the well‐known Bernoulli distribution that takes the value 1 (success) with probability p and the value 0 (failure) with probability 1−p. In the multivariate case each observation is a vector of k successes/failures. The multivariate Bernoulli distribution assigns positive probability to each of the 𝕊:=2k possible combination of successes/failures. It is important to note that this model can estimate not only the main effects and the interactions between pairs of variables, but is also capable of modelling all higher‐order interactions. For us the information of each patient will be encoded by a k‐dimensional vector of ones and zeros: 1 (presence) or 0 (absence) of each comorbidity, symptom, hospitalisation and death. Such data composition will be referred to as the COVID‐19 footprint for each patient. With the multivariate Bernoulli distribution and the footprint for each patient is relatively simple to use the Bayesian machinery to obtain meaningful inference. Furthermore, as we will see, it is possible to obtain inferences about quantities such as the mortality risk given certain comorbidity, sex and age group. Indeed, this will be done for all patients identified as COVID‐19 cases.

2. COVID‐19 PANDEMIC IN MEXICO

In Mexico, the first cases of SARS‐CoV‐2 were detected on 29 February 2020, and by 8 January 2022, there were 4,113,789 confirmed cases and 300,303 deaths. With this Mexico has become one of the countries with the highest death toll due to this disease.

2.1. Diabetes, obesity and hypertension in Mexico

The WHO has said people with underlying medical problems like high blood pressure, heart and lung problems, diabetes, or cancer, are among those most vulnerable to severe cases of the new coronavirus disease, along with the elderly (WHO, 2021).

Over the past 30 years, Mexico has become one of the countries in the world most heavily affected by the global epidemic of obesity. It is now the second country worldwide with obesity prevalence. Between 2006, 2012 and 2018, overweight or obesity prevalence increased from 69.5% to 71.3% and then to 75.2%, respectively, in population of 20 years and over, while the rate of obesity alone rose from 30% in 2006 to 32.4% in 2012 and then to 36.1% in 2018. Also, Mexico is now one of the countries with the highest child obesity rates in the world with one in three children being overweight or obese. Diabetes, the chronic disease most directly linked with obesity, is spreading rapidly and in Mexico in 2018 affected 10.3% of the adult population—aged over 20 years—, while in 2012 it affected 9.2%.

High blood pressure, or hypertension, has less noticeable symptoms, but if untreated, it increases the risk of serious problems such as heart attacks and strokes. In Mexico, the prevalence of hypertension in 2012 was of 30.2% and in 2018 of 32.7%. It is worth mentioning that these estimates are not directly comparable as there was a methodological change in the National Health and Nutrition Survey1 (NHNS) of 2018. Specifically, digital baumanometers were introduced; being less susceptible to measurement error, they provide interviewers with better estimates of blood pressure values, see Campos et al. (2019). All these information have been obtained via the NHNS, which is a survey conducted every 6 years by the National Institute of Statistics and Geography, an autonomous agency of the Mexican Government dedicated to coordinate the National System of Statistical and Geographical Information of Mexico.

2.2. Data and variables

The source of information for this work is the database of the National Epidemiological Surveillance System for monitoring possible cases of COVID‐19 in Mexico (SINAVE/SISVER for its acronym in Spanish), coordinated by the Secretariat of Health. The SINAVE/SISVER platform considers cases that are suspected of COVID‐19. People who have had flu‐like symptoms, or that believe to have been infected with the SARS‐CoV‐2 virus, are entitled to attend any public or private health service in Mexico, and if after an initial examination is suspected to suffer from the COVID‐19 disease, are registered on this database.

By 8 January 2022, this database had information for a total of 12,693,821 suspected cases and 115 variables. We work with the information of 4,064,259 confirmed COVID‐19 cases. For our analysis we consider relevant information of comorbidities, symptoms, sex, age and disease outcomes, encoded in 35 dichotomous variables. So for each patient we use a vector generically denoted by

y=(y1,y2,…,y35), (1)

that we call the COVID‐19 footprint.

Variables in (1) are ordered as follows: 1‐diabetes, 2‐COPD, 3‐asthma, 4‐immunosuppression, 5‐hypertension, 6‐heart disease, 7‐obesity, 8‐chronic kidney failure, 9‐smoking, 10‐fever, 11‐cough, 12‐ears pain, 13‐breathing difficulty (or shortness of breath), 14‐irritability, 15‐diarrhoea, 16‐chest pain, 17‐chills, 18‐headache, 19‐muscle pain, 20‐joint pain, 21‐attack general state, 22‐nasal discharge, 23‐increased respiratory frequency and depth, 24‐vomiting, 25‐abdominal pain, 26‐conjunctivitis, 27‐black colour lack of oxygen, 28‐sudden onset of symptoms, 29‐death, 30‐hospitalisation, 31‐sex and finally, the four age groups are given by 32‐ [0,20), 33‐ [20,40), 34‐ [40,60) and 35‐ [60,). Notice that the first nine variables are the comorbidities, while the following 19 variables are the symptoms. For these variables each patient has only two possible values presence 1 or absence 0. Variables 29‐death and 30‐hospitalisation are the disease outcomes. In these cases y29=1 indicates the patient has died and y30=1 the patient has been hospitalised. The variable with information about the sex of the patient, y31=1 indicates a male patient. Finally, for the age group variables, value 1 indicates membership to the corresponding group.

Clinical knowledge about the COVID‐19 disease has evolved during the pandemic and several countries are implementing vaccination programmes. Fortunately, these factors have been influencing hospitalisation and mortality rates of the disease across time. To have a glance of their impact in Mexico we have included the onset date of symptoms in the analysis. We use this variable to select COVID‐19 positive patients by month to perform all the analysis as well as to have an idea of the evolution through time.

2.3. COVID‐19 case

Health authorities in Mexico classify a patient as a COVID‐19 case if he/she falls in one of the following three categories:

  • Confirmed by epidemiological clinical association. This instance applies when the case had contact with a COVID‐19 case, and the latter is registered in SISVER platform. The actual case was not tested or the test was invalid.

  • Confirmed by an assessment committee. This category only applies to deaths when the case was not tested or a test was taken, but it was invalid.

  • Confirmed by SARS‐CoV‐2 test. The case has a laboratory test or antigenic test and is positive for SARS‐CoV‐2, regardless of whether the case has a clinical epidemiological association.

2.4. Open access data

The Secretariat of Health via the General Directorate of Epidemiology (Spanish: Dirección General de Epidemiología) updates daily the data base with the suspected cases and 48 variables, these data can be accessed using the following link https://www.gob.mx/salud/documentos/datos‐abiertos‐152127. Additional variables are available upon request via the platform http://covid‐19.iimas.unam.mx/, as described in Loza et al. (2020).

2.5. Missing data

The complete data base has 12,693,821 records. Focusing only in COVID‐19 cases, there are 4,113,789 patients. At this instance, there are no missing values in the variables with information about deaths, hospitalisations, sex and age. However, if the 19 symptoms and nine comorbidities are included, there are 0.27% of cells, in the 4,113,789×28 database, with missing values. The percentage of missing values over the comorbidities ranges from 0.22% in the variable obesity to 0.25% in the variable diabetes, while for the symptoms ranges from 0.22% in the variable breathing difficulty to 0.46% in sudden onset of symptoms. Assuming a missing completely at random mechanism, we followed a case deletion strategy to obtain the 4,064,259 registers that we work in this analysis.

2.6. Uncertainty and bias

As an additional source of uncertainty we have that the information about the symptoms and comorbidities is mainly self declared by patients and the Mexican health authorities know there must be many patients not fully aware if they suffer from certain comorbidities.

The number of SARS‐CoV‐2 positive tests has turned into an important indicator, it has been used to decide whether or not nations or regions around the world can open their economies. This is assessed using what has been called the percent positive which is simply the percentage of all coronavirus tests performed that are actually positive. The WHO recommended that the percent positive remain below 5% for at least 2 weeks before governments consider reopening after a lock down period (WHO, 2021). In Mexico, the percent positive has attained 30% and there even have been periods where it almost reached 50%. These very high percentages are easy to explain, the Mexican health authorities operate with limited resources, which forbids a widespread testing. Thus mainly patients with COVID‐19 symptoms have been tested. Hence, it is clear that there is bias in the data base of 12,693,821 suspected cases, and is far from a random sample.

All this said, the 4,064,259 positive cases are expected to provide us with important information for inference.

2.7. Onset date of symptoms

We use the date on which the patient's symptoms began to perform a monthly analysis. Information for a 23‐month period from March 2020 to the first days of January 2022 is then used to track the evolution of the COVID‐19 pandemic in Mexico. The information of the 4,064,259 COVID‐19 positive cases is divided into monthly cases using the onset date of symptoms.

As the number of tests varies over the 23‐month period, the infection mortality rate changes, due to improved hospital care, treatments, etc., and other factors also change over time. As it will become evident, the monthly analysis will reduce the bias and thus more reliable inferences will be at hand. In Figure 1, the number monthly COVID‐19 cases in Mexico, using as a reference the onset date of symptoms, is displayed.

FIGURE 1.

RSSA-12947-FIG-0001-b

Monthly COVID‐19 positive cases (continuous line) and active footprints (dotted line) in Mexico using as a reference the onset date of symptoms

It is easy to identify the so far three waves of the pandemic in Mexico: the first one attaining its peak in July 2020, the second during January 2021 and the last wave (at the time of writing this manuscript) in August 2021. The number of monthly COVID‐19 cases ranges from 2,462 in March 2020 when the pandemic started in Mexico to 495,079 cases in August 2021. On average there have been 176,707 monthly cases while the median is of 138,812 positive cases.

3. THE MODEL

Let Y=(Y1,Y2,…,Yk) be a k‐dimensional random vector of possibly correlated Bernoulli random variables and y=(y1,y2,…,yk) a realisation of it. The multivariate Bernoulli distribution can be described via its mass probability function

p(y|w)=w(0,0,0,…,0){∏j=1k(1−yj)}×w(1,0,0,…,0){y1∏j≠1(1−yj)}×w(0,1,0,…,0){y2∏j≠2(1−yj)}×………×w(1,1,0,…,0){y1y2∏j≠1,2(1−yj)}×………×w(1,1,1,…,1){∏j=1kyj}.

where

w=(w(0,0,0,…,0),w(1,0,0,…,0),w(0,1,0,…,0),…,w(1,1,1,…,1)), (2)

is the vector of probabilities associated to each possible outcome, and there are 𝕊:=2k possible outcomes. Observe the probability vector (2) sums up to 1.

Taking ρ={{ρl,j}l=1𝕊}j=1k as the matrix where the rows are the 𝕊 possible outcomes of the random vector Y and ρl,· as the k‐dimensional vector of the l possible outcome. It is possible to write the above mass probability function in shorter forms, that is

p(y|w)=∑l=1𝕊w(ρl,·)γl(y), (3)
=∏l=1𝕊w(ρl,·)γl(y), (4)

where γl(y)=1(ρl,.=y). Thus γl(y) indicates whether y is the lth outcome or not of the 𝕊 possible outcomes. Notice that expression (4) defines a function to map the outcome y to its corresponding success probability.

3.1. Properties

A multivariate Bernoulli model will be assumed to describe the footprint of each patient that has been identified as COVID‐19 positive, see (1). Thus, in our case 𝕊=235, namely all possible footprints. However, in the analysis section below we focus our attention on describing marginal relationships; for example, the impact of sex, age group and each comorbidity or symptom on death and hospitalisation outcomes. Also, under a prediction setting the aim is to find the smallest subset of variables with good predictive power. This clearly implies a dimension reduction of our multivariate Bernoulli random variable, for example, s<k, which consequently reduces the cardinality of the support 𝕊, say to 𝕊′. Considering these and further scenarios, it is important to know that marginal distributions of any order of a multivariate Bernoulli distribution are still in the same family.

To ease notation, we will denote by Y′ the random variable with reduced dimension, s<k, and correspondingly its values, y′, parameters w′ and support values ρ·,·′.

Thus,

p(y′|w′)=∑ys+1=01⋯∑yk=01p(y|w),=∏r=1𝕊′w′(ρr,.′)γl(y′), (5)

is a multivariate Bernoulli distribution where

w′(ρr,.′)=∑l=1𝕊1(ρl,1:s=ρr,.′)w(ρl,.),forr=1,…,𝕊′,

with ρl,1:s as the first s observations of the l outcome of the random variable Y, and ρr,.′ as the s dimensional vector of the r possible outcome of the marginalised random variable Y′.

As a straightforward consequence, for j∈{1,…,k}, we have

p(Yj=yj|w)=θjyj(1−θj)1−yj, (6)

where

θj=∑l=1𝕊1(ρl,j=1)w(ρl,.). (7)

Thus each Yj follows a Bernoulli distribution as expected, and to obtain the probability of success we need to add up the probabilities of all the footprints where Yj=1.

Finally, in this brief outline, the covariance between any two random variables Yj and Ys of the random vector Y, is given by

Cov(Yj,Ys)=p(Yj=1,Ys=1|w)−θjθs,=θj,s−θjθs,

where

θj,s=∑l=1𝕊1(ρl,j=1)1(ρl,s=1)w(ρl,.). (8)

Then, the correlation is given by

Corr(Yj,Ys)=θj,s−θjθsθj(1−θj)θs(1−θs), (9)

where the numerator can take negative or positive values. Indeed, Corr(Yj,Ys) can potentially take any values in [−1,1].

3.2. Bayesian inference

Let Y(n):=(Y1,Y2,…,Yn) be a random sample of size n from the multivariate Bernoulli distribution (4). Then, the likelihood is given by

∏i=1np(yi|w)=∏i=1n∏l=1𝕊w(ρl,.)γl(yi),=∏l=1𝕊w(ρl,.)rl,

where

rl=∑i=1nγl(yi)=∑i=1n1(ρl,.=yi),forl=1,…,𝕊. (10)

Hence, rl counts the number of occurrences of the lth possible footprint in the data.

If a Dirichlet distribution is chosen as a prior distribution over w, that is,

p(w|δ1,…,δ𝕊)=Dir(w|δ1,…,δ𝕊),∝∏l=1𝕊w(ρl,.)δl−1, (11)

Thus δl can be thought as the prior pseudocount assigned to the lth footprint. Now is trivial to obtain the posterior distribution, which is given by

p(w|y(n))∝p(w|δ1,…,δ𝕊)∏i=1np(yi|w),∝Dir(w|α1,…,α𝕊). (12)

where αl=rl+δl, for l=1,…,𝕊. In other words, we have a conjugate model and αl is an update to the pseudocount of footprint lth once the data have been observed.

3.3. Posterior probabilities

Due to the marginalisation properties of the multivariate Bernoulli and also of the Dirichlet distribution, it is easy to obtain, for example, the posterior probability of death and hospitalisation, or that a patient suffers certain comorbidities within the COVID‐19 positive cases. This, is done by computing

p(Yj=1|y(n))=d{Θj|y(n)}∼Beta(θj|ηj,α0−ηj), (13)

where

α0=∑l=1𝕊αl,andηj=∑l=1𝕊1(ρl,j=1)αl,

with Θj is the random variable corresponding to statistic (7). If only a point estimate is needed, the posterior expectation is easily obtained as

𝔼(Θj|y(n))=ηjα0. (14)

Bivariate joint and conditional probabilities between any two dichotomous variables are straightforward as well, that is,

p(Yj=1,Ys=1|y(n))=d{Θj,s|y(n)}∼Beta(θj,s|ηj,s,α0−ηj,s), (15)

where, analogously, Θj,s denotes the random variable corresponding to statistic (8), and

ηj,s=∑l=1𝕊1(ρl,j=1)1(ρl,s=1)αl.

In Appendix A it is shown that

p(Ys=1|Yj=1,y(n))=dΘj,sΘj|y(n)∼Betaθj,sθj|ηj,s,ηj−ηj,s. (16)

and then

𝔼Θj,sΘj|y(n)=ηj,sηj. (17)

These results are easily extended to

p(Yj1=1,…,Yjr=1,Ys1=1,…,Ysu=1|y(n)),

and p(Yj1=1,…,Yjr=1|Ys1=1,…,Ysu=1,y(n)). Obtaining beta distributions as well.

4. COVID‐19 FOOTPRINT AND MORTALITY

In this section our purpose is to study the relationship between comorbidities, symptoms, sex and age, with death and hospitalisation outcomes for all those patients that resulted COVID‐19 positive in Mexico. We will assume that the monthly case information is a random sample from a multivariate Bernoulli distribution. In the 23 months from March 2020 to the first days of January 2022, the monthly number of COVID‐19 cases ranged from a minimum of 2,462 cases to a maximum 495,079 cases, see Figure 1. By considering the order of any relevant variables, described in the paragraph after expression (1), all the posterior distributions described in the previous section can be obtained. We will repeat our analysis monthly, so given a footprint sample, y(n), in a particular month, for any COVID‐19 positive patient the posterior distribution of, for example, a death outcome, given the patient suffers from diabetes, is obtained computing p(Y29=1|Y1=1,y(n)). Similarly, if interest lies in the posterior probability of hospitalisation given the patient is a 37‐year‐old male that suffers from obesity we compute p(Y30=1|Y7=1,Y31=1,Y33=1,y(n)).

4.1. Computational shortcut

Our theoretical sample space is of 𝕊:=235 possible footprints2. The key to handle this huge support is simply to identify the active footprints in (10), that is, the unique different footprints that have been observed in the data. Denoting by βl,. for l=1,…,m, the active footprints, we can order the rows of the matrix with all the possible footprints such that in the first m rows we have the active footprints, thus ρl,.=βl,. for l=1,…,m. With this we can write (10) as

rl=∑i=1n1(ρl,.=yi)=∑i=1n1(βl,.=yi),forl=1…,m, (18)

and we known that rl=0, for l>m. Clearly, αl=rl+δl, for l=1…,m, and αl=δl for l=m+1,…,𝕊.

Notice that the number of occurrences for every outcome in the matrix β can be calculated efficiently. First, the footprint of each patient is concatenated into a single variable. Second, obtain the number of counts for each category in this new variable. This, gives us the active footprints with their respective number of occurrences. Third, the concatenated variable is separated into dichotomous variables. In particular, with the programming language R (R Core Team, 2021), using the function unite, from the library tidyr (see Wickham, 2021) and the functions table and merge from the base library this is done efficiently. From the 4,064,259 cases, we have observed m=941,943 active footprints. However, remember that to track the evolution of the COVID‐19 pandemic we perform a monthly analysis. In Figure 1 the monthly number of active footprints are displayed (dotted line). These are clearly correlated to the number of monthly observed cases (continuous line).

4.2. Model specification

We will assume δl=δ, for l=1,…,𝕊, in the Dirichlet prior distribution for the weights in (11). Thus giving a symmetric prior distribution over all possible footprints. Under the active footprint setting, see (18), the update for the pseudo‐counts is given by αl=rl+δ, for l=1…,m, and αl=δ, for l=m+1,…,𝕊.

The study of the symmetric Dirichlet prior distribution dates back to Good (1965), where it was used as a prior distribution over the probabilities in the Multinomial model. Good observed that when setting δ=0, the posterior expectation corresponds to the MLE estimator. Interest lied in the cases δ=1/2,1 and 1/H, with H the number of categories, and also placing a prior distribution over δ. In the context of finite mixture models, the symmetric Dirichlet distribution is often used as a prior distribution over the mixture weights. Under this latter setting, usually latent allocation variables indicating to which component each observation belongs are introduced. These latent allocations follow a Multinomial distribution with the mixture weights as the vector of probabilities. See Frühwirth‐Schnatter et al. (2019) for a recent review of mixture models. Thus, we are again in Good's framework. For finite mixture‐based clustering, Ishwaran and Zarepour (2020) observed that if δ=1 is used, then the tendency of the model is to allocate observations in many different components. Instead if δ=vH is chosen, where now H is the number of mixture components, the allocation of observations favours a few dominant clusters. Finally, they recommend v=1, namely δ=1H, as a reasonable minimally informative default. More recent work in mixture models, for an unknown number of components, first sets an unusually high value for H and then proposes a gamma prior distribution over δ, where the mean of the gamma distribution is fixed at a value close to zero. These are called sparse finite mixture models (see Frühwirth‐Schnatter and Malsiner‐Walli, 2019).

In our case, with monthly sample sizes ranging from 2,462 to 495,079 patients, observed active footprints ranged between 2,350 and 165,356 out of all the 𝕊=235 possibilities; as depicted in Figure 1. Considering the mixture modelling ideas outlined above, it is reasonable to assume δ=v/𝕊. To set v, our benchmark will be the posterior distributions (13) and (15). First, it is easy to see that

α0=∑l=1mrl+δ(2𝕊)=n+v.

Second, computing

ηj=∑l=1m1(βl,j=1)rl+δ∑l=1𝕊1(ρl,j=1),=∑l=1m1(βl,j=1)∑i=1n1(βl,.=yi)+(δ)(235−1),=∑i=1n1(yi,j=1)+(δ)(235−1),=∑i=1n1(yi,j=1)+v/2,

and

ηj,s=∑l=1𝕊1(ρl,j=1)1(ρl,s=1)(rl+δ),=∑i=1n1(yi,j=1)1(yi,s=1)+δ∑l=1𝕊1(ρl,j=1)1(ρl,s35=1),=∑i=1n1(yi,j=1)1(yi,s=1)+(δ)(235−2),=∑i=1n1(yi,j=1)1(yi,s=1)+v/4,

we obtain

𝔼(Θj|y(n))=∑i=1n1(yi,j=1)+v/2n+v, (19)

and

𝔼Θj,sΘj|y(n)=∑i=1n1(yi,j=1)1(yi,s=1)+v/4∑i=1n1(yi,j=1)+v/2. (20)

Hence, if v=1, that is δ=1𝕊, our inference would be exclusively based on the information available. However, to give weight to the unobserved footprints we have set v=100, and our inference will be heavily based on the information available but giving a small weight to the unobserved footprints.

5. PREDICTION

If a new patient has been diagnosed as COVID‐19 positive, a natural question that arises is that of quantifying his/her death probability given a realisation of his/her ‘clinical footprint’, y∗, namely where all but death outcomes are recorded. Remember that in the variable ordering described in the introduction, Y29 corresponds to the death outcome. Then, to obtain the predictive probability of death, we compute

p(Y29=1|Y=y∗,y(n))=p(Y=y∗,1|y(n))∑r=01p(Y=y∗,r|y(n)),

where

y∗,0=(y1∗,…,y28∗,0,y30∗,…,y35∗),y∗,1=(y1∗,…,y28∗,1,y30∗,…,y35∗).

As before, Y denotes the 35‐dimensional random vector.

On the other hand, if one is looking for the full predictive footprint, that is, not only his/her death outcome, this can be computed as

p(Y=y∗|y(n))=∫p(Y=y∗|w)p(w|y(n))dW,∝∫w(y∗)∏l=1𝕊w(ρl,.)αl−1dW,=∫∏l=1𝕊w(ρl,.)αl+1(ρl,.=y∗)−1dW,∝αl∗+1α0, (21)

where W refers to the 𝕊−1‐dimensional simplex, and with l∗ denoting the row of the matrix consisting of the 𝕊 possible outcomes such that 1(ρl∗,.=y∗)=1.

Then,

p(Y29=1|Y=y∗,y(n))=αl1∗+1αl1∗+αl2∗+2, (22)

where l1∗ is the row of the matrix with the 𝕊 possible outcomes such that 1(ρl1∗,.=y∗,1)=1, and l2∗ is such that 1(ρl2∗,.=y∗,0)=1.

Going back to expression (21) and considering the active footprint setting, expression (18). We can obtain αl∗ in an easier manner, namely

αl∗=rl∗+δ,ify∗is in the active footprints and1(βl∗,.=y∗)=1.δ,otherwise.

For predicting death or hospitalisation outcomes, the purpose will be to find the subset of variables that are most closely related to these outcomes. With a model with a few variables we are ignoring irrelevant variables that decrease the precision and increase the complexity of the model. Thus, we will apply the exact same ideas as before with the obvious modifications.

6. ANALYSIS

Focusing the analysis on the monthly positive cases, here we compute mortality risk given a particular footprint configuration. Also the expected mortality, correlation between variables among other posterior summaries are obtained. The section is closed with a prediction of death outcomes.

6.1. Mortality risk

To identify the comorbidities and symptoms that lead to a greater mortality risk, we need to obtain the posterior expectations 𝔼Θj,29Θj|y(n), for j=1,…,28 by month. See expression (20). In Figure 2, we display the time series of the twenty variables with higher expected mortality risk.

FIGURE 2.

RSSA-12947-FIG-0002-c

Monthly expected mortality risk for the 20 variables with highest mortality risk, that is, posterior expectation 𝔼Θj,29Θj|y(n) for j=1,…,28. We are only displaying the 20 variables with the higher risk. The coloured labels follow a decreasing order, considering the average expected mortality risk over the 23 months. [Colour figure can be viewed at wileyonlinelibrary.com]

First, it is important to note that the coloured labels in Figure 2 follow a decreasing order, considering the average expected mortality risk over the 23 months. Thus, for example, chronic kidney failure, hospitalisation, COPD, bluish colouration due to lack of oxygen, etc., are the comorbidities or symptoms that lead to higher mortality risk. Second, in these labels we have included a “‐c” for comorbidity and a “‐s” for symptom to differentiate each condition. The symptoms in the group with higher mortality risk are all related to lungs becoming inflamed, while the comorbidities range from chronic kidney failure, COPD and heart disease.

Furthermore, considering the strength of the pandemic waves, see Figure 1, it is also possible to observe the three waves through Figure 2. However, even during the third wave (the highest) there is a decreasing trend of the mortality risk.

It is straightforward to generate this information desegregated by sex and age group. In this case we need to calculate,

𝔼PY29=1|Yj=1,Y31=s,(Y32,Y33,Y34,Y35)=g,y(n),forj=1…,28, (23)

where s∈{0,1} and g∈{(1,0,0,0),(0,1,0,0),(0,0,1,0),(0,0,0,1)}. This is displayed in Figure 3, where we only show the ten comorbidities or symptoms with higher mortality risk across the 23 months by sex and age group.

FIGURE 3.

RSSA-12947-FIG-0003-c

Expected mortality risk given comorbidities/symptoms, sex and age. The coloured labels for each graphic follow a decreasing order, considering the average expected mortality risk over the 23 months. [Colour figure can be viewed at wileyonlinelibrary.com]

As described in the Section 4.2, we assume v=10 (δ=10/𝕊) for the analysis. However, it is important to mention that for the age groups [0,20) and [20,40) inference changes drastically if we take, for example, v=1 (δ=1/𝕊) for the symmetric Dirichlet prior distribution. This happens because the number of monthly COVID‐19 cases that fall into these groups intersected with most of the comorbidities is very small. Thus, inference for these two groups exhibits great variability. Instead, inference for the age groups [40,60) and 60 and more, is more reliable as there are large sample sizes. This can be also seen in Figure 3.

Considering the monthly estimates for each age group the trend of the mortality risk for age groups [0,20) and [20,40) changes drastically. However, it clearly decreases on age groups [40,60) and 60 and more. This is for all given comorbidities or symptoms. Sex is also a key variable, and it can be observed from its clear impact on ages [40,60) and 60 and more. Female patients always show lower mortality risks, which is easily observed in the range of the graphics. Other interesting findings from Figure 3, and not considering hospitalisations, are the following:

  • Cases between 40 and 60 years old with chronic kidney failure (comorbidity) are associated with the highest mortality risk for males and females, then these associate with a bluish colouration due to lack of oxygen (symptom) and an increased respiratory rate and depth (symptom), in second and third places, respectively.

  • For cases above 60 years old, bluish colouration due to lack of oxygen (symptom) is associated with the highest mortality risk for males and females, then for males and females follow increased respiratory rate and depth (symptom), and the third is chronic kidney failure (comorbidity).

6.2. COVID‐19 mortality

Let us assume that v=100,000 people in Mexico were diagnosed as COVID‐19 case. To appreciate which comorbidities and/or symptoms have greater impact over COVID‐19 mortality, from these v cases, we can approximate the number of people who suffer from comorbidity (or symptom) j, and this is given by vP(Yj=1|y(n)). Then to approximate the mortality within those with comorbidity j would be vP(Yj=1|y(n))P(Y29=1|Yj=1,y(n))=vP(Y29=1,Yj=1|y(n)). Instead of working with with vP(Y29=1,Yj=1|y(n)) we obtain its expectation and this is shown in Figure 4.

FIGURE 4.

RSSA-12947-FIG-0004-c

Expected mortality related to each comorbidity or symptom out of 100,000 cases. The coloured labels follow a decreasing order, considering the average expected mortality over the 23 months. [Colour figure can be viewed at wileyonlinelibrary.com]

The expected mortality is decreasing on all cases. Hospitalisation is clearly associated with the highest expected mortality, however it is neither a comorbidity nor a symptom. Following hospitalisation, there are five symptoms, and the one that leads to the a greater mortality is breathing difficulty. The comorbidities that have greater impact over the mortality are hypertension and diabetes. This is of great concern to health authorities due to the enormous problem of diabetes and hypertension in Mexico. Now we can do the complete exercise to estimate the mortality related to each comorbidity (or symptom) by sex and age group. In this case we compute,

v𝔼(P(Y29=1,Yj=1,Y31=s,(Y32,Y33,Y34,Y35)=g|y(n))),

where all the indexes are as in expression (23). This is displayed in Figure 5, where we only show the 10 comorbidities or symptoms with higher mortality across the 23 months by sex and age group.

FIGURE 5.

RSSA-12947-FIG-0005-c

Expected mortality related to each comorbidity (or symptom) by sex and age group out of 100,000 cases. The coloured labels of each graphic follow a decreasing order, considering the average expected mortality over the 23 months. [Colour figure can be viewed at wileyonlinelibrary.com]

Figure 3 shows that the mortality risk exhibited great variability for younger age groups; however the expected mortality out of 100,000 cases shows a steep decrease trend for both male and female patients and in every age group. This is given for all comorbidities or symptoms. Again, as in the case of the mortality risk, female patients show lower mortality than males. Indeed, the mortality of male patients is twice (or more) than that of female patients.

Finally, it is important to observe that symptoms largely determine mortality, while comorbidities start to gain relevance for older age groups. However, it would be important to understand how the presence of certain comorbidities exacerbates some symptoms, in particular breathing difficulty. This is done in the correlation section.

6.3. Impact of sex and age of the patients over symptoms

In this section patterns of symptoms determined by sex and age group are identified. This is done only for the COVID‐19 cases in August 2021, which is the highest registered number of cases among the three waves of the pandemic that Mexico has suffered to date, see Figure 1. Thus, Figure 6 shows the expected probability of each symptom given sex and age group and a heat map along with a hierarchical clustering is also included.

FIGURE 6.

RSSA-12947-FIG-0006-c

Expected probability of suffering each one of 19 symptoms by sex and age group, for all those were diagnosed as COVID‐19 positive case during August 2021. A heat map along with a hierarchical clustering is also included. [Colour figure can be viewed at wileyonlinelibrary.com]

We have seen that shortness of breath (or breathing difficulty) is the symptom leading to the highest mortality, see Figure 4. The hierarchical clustering indicates the symptoms diarrhoea, irritability, chest pain and breathing difficulty often appear together, and increases with age and have greater impact over male patients. Cough, fever and headache are the most common symptoms, but the probability of having the first two increases marginally with age. Also, the expected probability of the symptoms such as chest pain and increased respiratory frequency and depth increases with age, which is for both male and female patients. On the other hand, the probability of having nasal discharge decreases with age.

6.4. Correlation between comorbidities, symptoms, hospitalisation and deaths

The multivariate Bernoulli model give us the possibility to obtain the correlation between the comorbidities, deaths and hospitalisations. This is done using Equation (9), but here we need to approximate the posterior mean

𝔼Corr(Yj,Ys)|y(n)=𝔼Θj,s−ΘjΘsΘj(1−Θj)Θs(1−Θs)|y(n),

via classic Monte Carlo, and the idea is described in Appendix B.

With the matrix of pairwise correlations a hierarchical clustering is used to obtain groups of variables closely associated to each other. In Figure 7 the correlation plot and the groups are displayed. This is done only for the COVID‐19 cases of August 2021, however the correlation matrices for the 23 months can be obtained using the code given as Data S1.

FIGURE 7.

RSSA-12947-FIG-0007-c

Correlation plot of comorbidities, symptoms, sex, age groups, hospitalisation and death. This plot is drawn from all those who were diagnosed as COVID‐19 positive case during August 2021. [Colour figure can be viewed at wileyonlinelibrary.com]

The correlation plot indicates that there are groups of variables closely related to each other. The group containing the outcomes hospitalisations and deaths includes the comorbidities COPD, heart disease, diabetes and hypertension. The only symptom that is included in this group is breathing difficulty. Finally, the age group of all those older than 60 years is also included. Thus, the presence of any of these comorbidities or being an elderly exacerbates significantly the symptom that leads to higher mortality. Instead the symptoms ears pain, nasal discharge and belonging to the age groups [0,20) or [20,40) have a negative correlation to breathing difficulty.

6.5. Prediction of death outcomes

In this section, our purpose is to use the footprints from August 2021 to predict the deaths in September 2021 and then to use September 2021 footprints to predict the mortality in October 2021. We compare our prediction with the one obtained via the classic logistic regression model where instead of using the age group variables, the actual age of each patient is used as a continuous variable.

To predict COVID‐19 death outcomes using the ideas outlined in Section 5, only seven variables are used: COPD, heart disease, diabetes, hypertension, breathing difficulty, sex and the age group [60,). These variables have been included as the correlation plot in Figure 7 indicates that these are the variables with higher correlation with the death outcomes during August 2021. Hospitalisation is not included because for a newly detected COVID‐19 case hospitalisation and death outcomes would be unknown. The correlation plot of September 2021 shows that the same variables are correlated with death outcomes as in August 2021. The same model is fitted via logistic regression, and as mentioned before, the actual age of each patient is used as a continuous variable instead of the age group [60,). It could seem that relationships of higher order are not been considered, however we ran this parsimonious model against the complete model with 34 variables and obtained similar results (not shown).

6.5.1. Optimal cut‐point

To determine the cut‐point c and make a decision via the estimated mortality risk (obtained via the multivariate Bernoulli and logistic regression) we maximise the proportion of death outputs that are correctly identified (true positive rate or TPR) plus the proportion of alive outcomes that are correctly identified (true negative rate or TNR). Thus, the optimal cut‐point maximises the quantity TPR + TNR. The library of R cutpointr (see Thiele, 2020) is used to obtained the optimal cut‐point. This optimisation exercise is performed using the information from August 2021 to predict the deaths of the same month. The optimal cut‐point for the multivariate Bernoulli and logistic models were c^=0.043 and c^=0.035 respectively. With these optimal cut‐points we use the footprints from August 2021 to predict the deaths of September 2021. The resulting confusion matrices are displayed in Tables 1 and 2.

TABLE 1.

Multivariate Bernoulli: prediction of death outcomes related to the COVID‐19 disease of September 2021 via the footprints of August 2021. Confusion matrix (left) and column percentages

Actual Actual
Outcomes Alive Death Outcomes Alive Death
Predicted Alive 191,822    720 Predicted Alive 85.3%  6.7%
Death  33,084 10,018 Death 14.7% 93.3%
TABLE 2.

Logistic regression: prediction of death outcomes related to the COVID‐19 disease of September 2021 via the footprints of August 2021. Confusion matrix (left) and column percentages

Actual Actual
Outcomes Alive Death Outcomes Alive Death
Predicted Alive 194,541    718 Predicted Alive 86.5%  6.7%
Death  30,365 10,020 Death 13.5% 93.3%

Via the multivariate Bernoulli we obtain (TPR, TNR)= (85.3%,93.3%), while using the logistic regression (TPR, TNR)= (86.5%,93.3%) is achieved. An alternative measure of comparison is the area under the ROC curve (AUC). For the multivariate Bernoulli, it was found to be equal to 0.942, while for the logistic regression was equal to 0.95. In general terms classifiers with larger AUC are considered better to discriminate between groups, hence according to this criterion there is virtually no difference between the discrimination ability of both models. Repeating the exercise but now predicting the death outcomes of October 2021 using the information of September 2021 the confusion matrices shown in Tables 3 and 4 are obtained. Results are very similar to those described above.

TABLE 3.

Multivariate Bernoulli: prediction of death outcomes related to the COVID‐19 disease of October 2021 via the footprints of September 2021. Confusion matrix (left) and column percentages

Actual Actual
Outcomes Alive Death Outcomes Alive Death
Predicted Alive 88,474  314 Predicted Alive 86%  7.5%
Death 14,429 3874 Death 14% 92.5%
TABLE 4.

Logistic regression: prediction of death outcomes related to the COVID‐19 disease of October 2021 via the footprints of September 2021. Confusion matrix (left) and column percentages

Actual Actual
Outcomes Alive Death Outcomes Alive Death
Predicted Alive 90,686  385 Predicted Alive 88.1%  9.2%
Death 12,217 3803 Death 11.9% 90.8%

Thus, classification‐wise the results are comparable, and it is worth noting that there is no difference in performance between a model that uses only the the dichotomous variable [60,) with a model that instead uses the actual age of the patients as a continuous variable.

7. DISCUSSION

We have used a multivariate Bernoulli distribution to analyse monthly information about the COVID‐19 pandemic in Mexico. In particular we have used the data of patients identified as COVID‐19 positive and determined, among other interesting findings, that: (1) the mortality risk on age groups [40,60) and [60,) exhibits a decreasing trend; (2) the expected mortality trend decreases on all age groups; (3) the symptom breathing difficulty is the one associated with the highest mortality and it is exacerbated by the comorbidities COPD, heart disease, diabetes, hypertension and also in patients of 60 years old and above; (4) the symptom breathing difficulty has a negative correlation with the symptoms ears pain and nasal discharge. Belonging to the age groups [0,20) or [20,40) also shows a negative correlation to breathing difficulty; (5) the symptoms diarrhoea, irritability, chest pain and breathing difficulty often appear together; (6) using only four comorbidities (COPD, heart disease, diabetes and hypertension), one symptom (breathing difficulty), the sex of the patient and information about whether or not the patient belongs to the group of 60 and older, it is possible to predict the mortality of the COVID‐19 disease with the following accuracy: 93.3% of death outputs have been correctly classified and 85.3% of alive outputs have been correctly identified. Finally, when comparing with a logistic regression, it can be seen that with our proposal one could obtain similar predictive performance with fewer variables which are closely correlated to the death outcomes.

The Mexican government's vaccination strategy began in December 2020. Health personnel were the first to be vaccinated. Population aged 60 years and over began to be vaccinated during February 2021. This explains the steep slope during March (Figures 3 and 5). Indeed we believe the decreasing trends are due to the increasing knowledge about the COVID‐19 disease, which clearly has translated into improved treatments as well as vaccines.

Finally, the multivariate Bernoulli has 2k parameters, that is one parameter value per each possible footprint. Indeed, much in the same spirit as for the univariate Bernoulli distribution, the multivariate version constitutes a dense model in its support. Namely all possible combinations are considered. The finite mixture representation (3) suggests the possibility of using a discrete random probability measure as a potential model, namely a Bayesian nonparametric distribution. Such an approach, for example, via the Dirichlet processes, would work under the assumption of an infinite number of footprints and a diffuse baseline distribution to ease its implementation. While potentially possible, some adaptations and interpretations would be needed, so we prefer to keep it simple here.

Supporting information

Data S1: The supplementary material include the code in R used for this article and the database with information of 4,064,259 COVID‐19 cases.

ACKNOWLEDGEMENTS

The authors are grateful for the detailed comments and suggestions from two reviewers and the associate editor which helped to improve the quality of the manuscript. This work was supported by UNAM‐PAPIIT projects IA103220, IV100220 and IG100221.

APPENDIX A. DISTRIBUTIONAL RESULTS

A.1.

Let

θj,−s=∑l=1𝕊1(ρl,j=1)1(ρl,s≠1)w(ρl,.),ηj,−s=∑l=1𝕊1(ρl,j=1)1(ρl,s≠1)(rl+δl),

with equivalent definitions for θs,−j and ηs,−j. First, it is easy to see that

θj,s+θj,−s=∑l=1𝕊(1(ρl,j=1)1(ρl,s=1)+1(ρl,j=1)1(ρl,s≠1))w(ρl,.),=∑l=1𝕊1(ρl,s=1)+1(ρl,s≠1)1(ρl,j=1)w(ρl,.),=∑l=1𝕊1(ρl,j=1)w(ρl,.)=θj,

and in the same manner ηj,s+ηj,−s=ηj.

A.1. Distribution of Θj,s/Θj

We have

p(Θj,s,Θj,−s|ηj,s,ηj,−s,α0)=Dir(θj,s,θj,−s|ηj,s,ηj,−s,α0−ηj,s−ηj,−s).

Performing the transformation U=Θj,s and V=Θj,s+Θj,−s (observe that V=Θj) the Jacobian is equal to 1 and the density is given by

p(u,v)=pΘj,s,Θj,−s(u,v−u|ηj,s,ηj,−s,α0),∝uηj,s−1(v−u)ηj,−s−1(1−v)α0−ηj,s−ηj,−s.

Here u>0, v>u and 1>v, thus this is a valid probability distribution function.

Now transforming X=V and Y=UV, then the Jacobian is equal to x and the density is given by

p(x,y)=xpU,V(xy,x|ηj,s,ηj,−s,α0),∝x(xy)ηj,s−1(x−xy)ηj,−s−1(1−x)α0−ηj,s−ηj,−s∝xηj,s+ηj,−s−1(1−x)α0−ηj,s−ηj,−syηj,s−1(1−y)ηj,−s−1.

Then X⊥Y, where X∼Beta(x|ηj,α0−ηj) and Y∼Beta(y|ηj,s,ηj−ηj,s). Note that ηj=ηj,−s+ηj,s.

Since Y=Θj,sΘj, then

Θj,sΘj∼Betaθj,sθj|ηj,s,ηj−ηj,s,⇒𝔼Θj,sΘj=ηj,sηj.

APPENDIX B. POSTERIOR EXPECTATION OF THE CORRELATION

B.1.

We want to approximate

𝔼Corr(Yj,Ys)|y(n)=𝔼Θj,s−ΘjΘsΘj(1−Θj)Θs(1−Θs)|y(n).

First, note that it is straightforward to generate samples from

(Θj,s,Θj,−s,Θs,−j)∼Dir(θj,s,θj,−s,θs,−j|ηj,s,ηj,−s,ηs,−j,α0−ηj,s−ηj,−s−ηs,−j),∼Dir(θj,s,θj,−s,θs,−j|ηj,s,ηj−ηj,s,ηs−ηj,s,α0+ηj,s−ηj−ηs),

and with each sample we can compute θj=θj,s+θj,−s, θs=θj,s+θs,−j and then

ξ=g(θj,s,θj,θs)=θj,s−θjθsθj(1−θj)θs(1−θs).

Thus, generating N samples and computing ξ1,…,ξN we can approximate

𝔼Corr(Yj,Ys)|y(n)≈1N∑l=1Nξl,

and this is a usual Monte Carlo approximation.

Rodríguez, C.E. & Mena, R.H. (2022) COVID‐19 clinical footprint to infer about mortality. Journal of the Royal Statistical Society: Series A (Statistics in Society), 185(Suppl. 2), S547–S572. Available from: 10.1111/rssa.12947

Funding information PAPIIT‐UNAM, Grant/Award Numbers: IA103220; IG100221; IV100220

Footnotes

2

It is worth noting that for the four variables of age group there are only four possible results, namely the same person cannot belong to two different age groups at the same time. Hence, the true sample space of our model is reduced to 232 outcomes.

DATA AVAILABILITY STATEMENT

The data that supports the findings of this study are available in Data S1.

REFERENCES

  1. Arons, M.M. , Hatfield, K.M. , Reddy, S.C. , Kimball, A. , James, A. , Jacobs, J.R. et al. (2020) Presymptomatic SARS‐CoV‐2 infections and transmission in a skilled nursing facility. New England Journal of Medicine, 382(22), 2081–2090. [DOI] [PMC free article] [PubMed] [Google Scholar]
  2. Bonanad, C. , García‐Blas, S. , Tarazona‐Santabalbina, F. , Sanchis, J. , Bertomeu‐González, V. , Fácila, L. et al. (2020) The effect of age on mortality in patients with COVID‐19: a meta‐analysis with 611,583 subjects. Journal of the American Medical Directors Association, 21(7), 915–918. [DOI] [PMC free article] [PubMed] [Google Scholar]
  3. Campos, I. , Hernández, L. , Flores, A. , Gómez, E. & Barquera, S. (2019) Prevalencia, diagnóstico y control de hipertensión arterial en adultos mexicanos en condición de vulnerabilidad. Resultados de la ENSANUT 100k. Salud Pública de México, 61(6), 888–897. [DOI] [PubMed] [Google Scholar]
  4. Dai, B. , Ding, S. & Wahba, G. (2013) Multivariate Bernoulli distribution. Bernoulli, 19(4), 1465–1483. [Google Scholar]
  5. Frühwirth‐Schnatter, S. , Celeux, G. & Robert, C.P. (Eds.). (2019) Handbook of mixture analysis. Handbooks of Modern Statistical Methods. Boca Raton: Chapman & Hall/CRC Press. [Google Scholar]
  6. Frühwirth‐Schnatter, S. & Malsiner‐Walli, G. (2019) From here to infinity: sparse finite versus Dirichlet process mixtures in model‐based clustering. Advances in Data Analysis and Classification, 13, 33–64. [DOI] [PMC free article] [PubMed] [Google Scholar]
  7. Gebhard, C. , Regitz‐Zagrosek, V. , Neuhauser, H.K. , R.M. & L.K.S. (2020) Impact of sex and gender on COVID‐19 outcomes in Europe. Biology of Sex Differences, 11(1), 11–29. [DOI] [PMC free article] [PubMed] [Google Scholar]
  8. Good, I.J. (1965) The estimation of probabilities: an essay on modern Bayesian methods. MIT: Press . [Google Scholar]
  9. Ishwaran, H. & Zarepour, M. (2020) Dirichlet prior sieves in finite normal mixtures. Statistica Sinica, 12(3), 941–963. [Google Scholar]
  10. Lauer, S.A. , Grantz, K.H. , Bi, Q. , Jones, F.K. , Zheng, Q. , Meredith, H.R. et al. (2020) The incubation period of coronavirus disease 2019 (COVID‐19) from publicly reported confirmed cases: estimation and application. Annals of Internal Medicine, 172(9), 577–582. [DOI] [PMC free article] [PubMed] [Google Scholar]
  11. Loza, A. , Pineda, L. , Dyer, D. , Benítez, H. , Ciria, R. , Cruz, R. et al. (2020) Sistema de información nacional depurado sobre la evolución de la pandemia COVID‐19. Biotecnología en Movimiento, 5(23), 8–11. [Google Scholar]
  12. Oliveira, B.A. , Oliveira, L.C.d. , Sabino, E.C. & Okay, T.S. (2020) SARS‐CoV‐2 and the COVID‐19 disease: a mini review on diagnostic methods. Revista do Instituto de Medicina Tropical de Sao Paulo, 62, 1–8. [DOI] [PMC free article] [PubMed] [Google Scholar]
  13. R Core Team (2021) R: a language and environment for statistical computing. Vienna, Austria: R Foundation for Statistical Computing. Available from: https://www.R‐project.org/ [Google Scholar]
  14. Sanyaolu, A. , Okorie, C. , Marinkovic, A. , Patidar, R. , Younis, K. , Desai, P. et al. (2020) Comorbidity and its impact on patients with COVID‐19. SN Comprehensive Clinical Medicine, 2(8), 1069–1076. [DOI] [PMC free article] [PubMed] [Google Scholar]
  15. Singh, A.K. , Gupta, R. , Ghosh, A. & Misra, A. (2020) Diabetes in COVID‐19: prevalence, pathophysiology, prognosis and practical considerations. Diabetes & Metabolic Syndrome: Clinical Research & Reviews, 14(4), 303–310. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Struyf, T. , Deeks, J.J. , Dinnes, J. , Takwoingi, Y. , Davenport, C. , Leeflang, M.M.G. et al. (2020) Signs and symptoms to determine if a patient presenting in primary care or hospital outpatient settings has COVID‐19 disease. Cochrane Database of Systematic Reviews, 7(7), 1–342. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Thiele, C. (2020) cutpointr: determine and evaluate optimal cutpoints in binary classification tasks. R package version 1.0.32 . Available from: https://CRAN.R‐project.org/package=cutpointr
  18. WHO . (2021) Coronavirus disease (COVID‐19) pandemic . Available from: https://covid19.who.int/ [Accessed 15th November 2021].
  19. Wickham, H. (2021) tidyr: tidy messy data. R package version 1.1.3. Available from: https://CRAN.R‐project.org/package=tidyr
  20. Zhao, Q. , Meng, M. , Kumar, R. , Wu, Y. , Huang, J. , Lian, N. et al. (2020) The impact of COPD and smoking history on the severity of COVID‐19: a systemic review and meta‐analysis. Journal of Medical Virology, 92(10), 1915–1921. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Data S1: The supplementary material include the code in R used for this article and the database with information of 4,064,259 COVID‐19 cases.

Data Availability Statement

The data that supports the findings of this study are available in Data S1.


Articles from Journal of the Royal Statistical Society. Series A, (Statistics in Society) are provided here courtesy of Wiley

RESOURCES