Skip to main content

Application of information from external data to correct for collider bias in a Covid-19 hospitalised cohort

Abstract

Background

Throughout the Covid-19 pandemic, researchers have made use of electronic health records to research this disease in a rapidly evolving environment of questions and discoveries. These studies are prone to collider bias as they restrict the population of Covid-19 patients to only those with severe disease. Inverse probability weighting is typically used to correct for this bias but requires information from the unrestricted population. Using electronic health records from a South London NHS trust, this work demonstrates a method to correct for collider bias using externally sourced data while examining the relationship between minority ethnicities and poor Covid-19 outcomes.

Methods

The probability of inclusion within the observed hospitalised cohort was modelled based on estimates from published national data. The model described the relationship between patient ethnicity, hospitalisation, and death due to Covid-19 – a relationship suggested to be susceptible to collider bias. The obtained probabilities (as applied to the observed patient cohort) were used as inverse probability weights in survival analysis examining ethnicity (and covariates) as a risk factor for death due to Covid-19.

Results

Within the observed cohort, unweighted analysis of survival suggested a reduced risk of death in those of Black ethnicity – differing from the published literature. Applying inverse probability weights to this analysis amended this aberrant result to one more compatible with the literature. This effect was consistent when the analysis was applied to patients within only the first wave of Covid-19 and across two waves of Covid-19 and was robust against adjustments to the modelled relationship between hospitalisation, patient ethnicity, and death due to Covid-19 made as part of a sensitivity analysis.

Conclusions

In conclusion, this analysis demonstrates the feasibility of using external publications to correct for collider bias (or other forms of selection bias) induced by the restriction of a population to a hospitalised cohort using an example from the recent Covid-19 pandemic.

Peer Review reports

Background

With the start of the Covid-19 pandemic came an initial rush to research and publish findings about this novel disease. But a year into the pandemic reflective publications started to highlight the high risk of bias in these early studies [1,2,3,4]. Many Covid-19 studies are observational studies utilising electronic health records and/or hospitalised cohorts of patients with the aim of investigating the average causal effect of various demographic and clinical variables on Covid-19 outcomes such as death. These avenues for patient recruitment/data collection are prone to selection bias - bias that has been demonstrated to induce a relationship between allergy medications and increased Covid-19 testing [5] and suggested to induce relationships between smoking and a reduced risk of Covid-19 infection [6], or between ACE inhibitor use and Covid-19 severity [2].

Collider bias, as a form of selection bias, has garnered much attention [2]. This is induced when both the exposure and outcome of interest impact a third variable which is conditioned upon – such as a variable determining sample selection. Within the common observational studies of hospitalised cohorts [7,8,9,10,11,12,13,14] these associations are likely. Covid-19 severity (typically measured by ICU admission or mortality) is associated with hospitalisation – only the ~ 15% most severe cases will require hospitalisation and advanced medical care [15]. Therefore, one of the two required associations for collider bias (outcome to third variable: hospitalisation) is implicitly met in many Covid-19 studies. Only an association between the exposure and hospitalisation is required to create biased results.

Studies of hospitalised patients could provide valuable insight into novel diseases such as Covid-19 as long as bias can be minimised. Classic corrections for collider bias involve using inverse probability weighting (IPW) based on the probability of inclusion into the study [2, 16]. IPW allows the characteristics of the sample to be adjusted to become more representative of the target population, breaking the conditioning on the sample selection variable. However, these methods can only be easily applied to nested studies where key variables are only examined in a subset of individuals and the probability of selection into this subset is known or can be accurately modelled based on measured covariates. As Covid-19 studies are typically opportunistic, non-nested studies, acquiring such knowledge is difficult – but maybe not impossible. A wealth of electronic health data is available related to Covid-19. In the UK this includes larger national cohorts established prior to the Covid-19 pandemic that continued to collect and analyse health records during this time [17,18,19,20] as accessible data from the NHS and UK government on numbers of Covid-19 cases, hospitalisations, and death by NHS trusts/local regions [21,22,23,24]. While these data does not provide an exact replacement for the missing information on the probability of Covid-19 hospitalisation from the local community, it could be used to estimate likely probabilities.

Thompson and Arah [25] have described a method of applying external data to model the probability of inclusion in a study where data from unobserved individuals is unknown. This method models the probability of inclusion based on the exposure and the outcome using an external dataset (and allows for additional adjustment by relevant covariates). Simulations showed that IPW developed using this model could accurately obtain the ‘true’ adjusted odds ratios for a dataset and were shown to be robust against misspecification of model parameters. We propose that the wealth of national data on Covid-19 measures allows the application of this method to data from hospitalised cohorts, allowing correction for collider bias in these susceptible studies.

To this end, this article demonstrates the use of UK national data on Covid-19 cases and deaths to model the probability of hospitalisation which can be applied as IPW to a regional hospitalised cohort to correct for selection biases including collider bias. We also demonstrate that the obtained results are mostly robust to misspecification in the developed model – allowing for differences in the probability of Covid-19 associated hospitalisation between national and local populations which may be unaccounted for.

A relationship with likely collider bias

Demonstrating the application of Thompson and Arah’s method requires the selection of an exposure and outcome to explore. Minority ethnicities during the early pandemic were described as being at increased risk of death due to Covid-19 [11, 17, 20, 26, 27]. Cultural factors, occupation preferences, and social inequalities such as poor housing and reduced access to healthcare mean that these ethnic groups are more likely to be infected with Covid-19 and as a result are more likely to be hospitalised with Covid-19 [11, 19, 20, 28]. Ethnicity therefore provides an ideal exposure that is likely to induce some form of collider bias when examined within a hospitalised cohort (Fig. 1). An outcome of mortality during hospitalisation will be used – matching the outcome commonly seen in Covid-19 studies.

Fig. 1
figure 1

Brief Directed Acyclic Graph demonstrating the possible relationship between ethnicity exposure) and death (outcome) with the presence of the collider hospitalisation. This figure is a condensed version of the Directed Acyclic Graphs provided in Learoyd et al. [29] and in Appendix Fig. 1

Methods

Patient population

To explore the correction for collider bias utilising external data, data from Covid-19 positive patients admitted to Guy’s and St. Thomas’ NHS Foundation Trust (GSTT) between 20th February 2020 and 24th May 2021 was used. Patients were restricted to adults (18+) admitted from the community after 28th January 2020 (the date of the first known Covid-19 case in the UK) with a positive Covid-19 test within 28 days of admission who had known age, sex, Index of Multiple Deprivation (IMD). IMD is a relative measure of deprivation for small regional areas in the UK based on 7 domains of deprivation identified by the patient’s current address [30]. Medical history for these patients was collated from 6 linked databased and categorised as presence/absence of cardiovascular disease (stroke, transient ischaemic attack, atrial fibrillation, congestive heart failure, ischaemic heart disease, valve disease, peripheral artery disease or atherosclerotic disease), diabetes mellitus, chronic kidney disease, chronic liver disease, and chronic obstructive pulmonary disease/emphysema. The application of “do not attempt resuscitation” (DNR) orders was also extracted along with the date of application. These covariates were chosen for inclusion in this analysis based on known association with Covid-19 outcomes and known links to ethnicity. Ethnicity was categorized as White (British, European, Other), Black (African, Caribbean), Asian (South, South-East, and East Asian), Mixed/Other (Middle Eastern, South American, and Mixed) and Unknown (or not reported). The cohort characteristics are shown in the appendix (Appendix Page 8, Appendix Table 1 & Appendix Fig. 2).

Patients were categorised into two Covid-19 waves based on admission date for analysis purposes. Admission was designated as belonging to the first (until 31st August 2020) or second (from 1st September 2020) wave of Covid-19 matching timepoints used to analyse the OPENSAFELY cohort. This categorisation, along with ethnicity and survival status, informed the IPW (described below) given to each patient.

Statistical modelling

Time to death was analysed using Cox proportional hazards models with discharge as a competing event and robust standard errors. The association of ethnicity with death was assessed using three model iterations: (1) unadjusted (with no additional covariates), (2) adjusted for all described covariates, (3) adjusted for covariates and using IPW based on the probabilities derived below.

Part 1: Estimating the probability of Covid-19 associated hospitalisation in the first wave from national data

Estimating the necessary probabilities for IPW (following the principles laid out by Thompson and Arah [25]) requires an estimation of the risk of hospitalisation overall and estimation of the risk ratios (RRs) describing the relationship between hospitalisation and different ethnic groups stratified by survival status. These can be derived from a generalised linear model (GLM) for the probability of hospitalisation (Eq. 1).

(1)

Importantly the relationship between ethnicity and Covid-19 outcomes – including hospitalisation and death – has been reported for a national cohort in the UK. Mathur et al. [20] completed an analysis of the OPENSAFELY platform which holds electronic health record data from individuals registered with English primary care practices allowing an ideal reference point for estimating the probability of hospitalisation in different ethnic groups. Summary-level data from this publication included the number of adults from 16 different ethnic categories who were hospitalised with Covid-19 or experienced death associated with Covid-19 across the first (1st February to 3rd August 2020) and partial-second (1st September to 31st December 2020) wave of Covid-19.

Cross-tabulation of hospitalisation and survival status was not provided by Mathur et al. and so it was assumed initially that 90% of individuals who died were hospitalised prior to death (regardless of ethnicity). This assumption is based on the understanding that those who died had more severe disease and were more likely to be hospitalised along with an expectation not all deaths would occur in hospital. Based on this assumption and the summarised data estimates for the parameters in Eq. 1 could be obtained (Table 1) allowing the probability of hospitalisation with Covid-19 to be modelled for each ethnic group stratified by survival status. The inverse of these probabilities formed the sampling weights used as IPW allowing the conditional causal effect effect of ethnicity to be estimated as applied to a pseudo-population more representative of that in the community.

Table 1 The risk of hospitalisation with Covid-19 for each ethnic group in the first wave of Covid-19 as obtained from published analysis of the OPENSAFELY platform [20] and fitted parameters for the model in Eq. 1 that can be estimated from the OPENSAFELY data. OIM std error = standard errors derived from the observed information matrix variance estimators

Part 2: Sensitivity analysis examining the effect of changes in estimated probabilities to match the local population

As the IPW used in this analysis is externally obtained data, it is important to validate it’s use by examining whether misspecification of the model parameters describing the association between ethnicity/death and hospitalisation would alter the obtained results.

Additional sources of data describing the risk of hospitalisation for specific ethnicities and survival status can be obtained from a combination of NHS and Office of National Statistics (ONS) sources [21,22,23,24]. Examination of these data may identify the extent to which the probability of hospitalisation as calculated for the national cohort examined by OPENSAFELY [20] differed for a local London-based (GSTT) cohort and so the likely degree of misspecification that is present for the model parameters in Eq. 1. Two comparisons were made: one utilizing data specific to the GSTT catchment area (i.e. NHS reported cases for GSTT; ONS estimates for Lambeth, Lewisham and Southwark) (Table 2) and one using data relevant to the Greater London area (Appendix Table 2).

Table 2 Risk of Covid-19 associated hospitalisation for those with different ethnicities and survival status as calculated for the OPENSAFELY cohort [20] and the GSTT catchment area. Data informing the risk for the GSTT catchment area indicated in italics. Risk Ratios (RR) compare risks to applicable reference groups: No Death or White ethnicity. Differences in ln(Risk) or ln(RR) informed the level of misspecification applied to each indicated parameter (Informs column) during sensitivity analysis

These comparisons found comparable risks of hospitalisation overall in the OPENSAFELY cohort compared to that expected for London (informing misspecification of \({\widehat{\gamma }}_{0}\)). the assumption that 90% of patients who died from Covid-19 were hospitalised (informing \({\widehat{\gamma }}_{1}\), RR comparing those who died vs., those who survived) was shown to be incorrect. ONS provided data on the place of Covid-19 associated death estimated that only 72–82% of individuals in London died in hospital.

Rates of hospitalisation were not stratified by ethnicity. To allow the degree of misspecification to be explored for \({\widehat{\varvec{\lambda }}}_{\varvec{a}}\) (RRs comparing ethnic groups in those who didn’t die) to be determined, the risk of hospitalisation for each ethnicity was estimated from the GSTT cohort residing in the catchment area divided by the ONS population estimates for the same area. The relative risk of hospitalisation in minority ethnicities compared to White ethnicity was larger for the GSTT cohort than that calculated using the OPENSAFELY data. These risks were comparable to that found for an independent East London cohort (ETHICAL [13]) and is likely due to the high prevalence of these ethnicities in London compared to the national population and the increased risk of infection these groups face due to societal, cultural, and occupational pressures [31,32,33].

Ethnicity-specific data was not available for the place of Covid-19 associated death. As such, applying degrees of misspecification to \({\widehat{\varvec{\lambda }}}_{\varvec{b}}\) (parameter describing the effect of interaction between ethnicity and death on hospitalisation) was based on conjecture. News articles suggested hesitancy towards hospital care by some ethnic groups in the first wave of the pandemic [34]. Therefore \({\widehat{\varvec{\lambda }}}_{\varvec{b}}\) was adjusted to reduce the probability of hospitalisation in those from minority ethnicities who died.

The differences in log risk/RRs between the OPENSAFELY analysis and GSTT specific data (Table 2) provided guides for the level of misspecification which should be applied to each fitted parameter in Eq. 1. Comparison between the OPENSAFELY analysis and data for the Greater London area (Appendix Table 2) often suggested more extreme differences than that suggested when comparing the OPENSAFELY analysis to GSTT specific data (usually in the same direction). As a result, three levels of misspecification were applied to each parameter (Table 3) allowing for differing degrees of misspecification. These were: approximation of the log risk/RRs calculated in Table 2 (called 100%), a milder degree of misspecification (called 50%), and a more extreme degree of misspecification akin to that seen for the Greater London area demonstrated in Appendix Table 2 (called 200%). Each set of probabilities obtained were checked for appropriate expected changes which remained within the range of {0–1} prior to use. This resulted in some adjustments to the approximate values described here.

Table 3 The chosen values of misspecification applied to the GLM described in Eqs. 1 and 2 modelling the risk of Covid-19 associated hospitalisation based on ethnic group and the primary outcome death during hospitalisation (Eq. 1) or based on ethnic group, death during hospitalisation and Covid-19 wave as a covariate (Eq. 2). Values relating to 50%, 100% and 200% of predicted misspecification were applied to these estimates as part of the sensitivity analysis. amisspecification was applied alongside a 100% misspecification of \({\widehat{\gamma }}_{1}\) to allow the probability of hospitalisation in those who died to be increased

The aim was to examine the misspecification of each parameter separately. However, adjustment of \({\widehat{\varvec{\lambda }}}_{\varvec{a}}\) would have resulted in the probability of hospitalisation in those who died to be above 1. To allow the suggested misspecification of \({\widehat{\varvec{\lambda }}}_{\varvec{a}}\) a 100% misspecification of \({\widehat{\gamma }}_{1}\) (value of -0.15) was also applied. This meant that the linear predictor (originally from Eq. 1) to which misspecification was applied became:

$${\eta }_{i}={\widehat{\gamma }}_{0}+({\widehat{\gamma }}_{1}-0.15){ death}_{\varvec{i}}+{\widehat{\varvec{\lambda }}}_{\varvec{a}}{\varvec{e}}_{\varvec{i}}+{{\widehat{\varvec{\lambda }}}_{\varvec{b}}{\varvec{e}}_{\varvec{i}}death}_{\varvec{i}}$$

After each level of misspecification was applied to the fitted model, the probability of hospitalisation for each ethnicity/survival status combination was recalculated, applied to the GSTT cohort and used as weights in the weighted analyses as per the original IPW analysis.

Part 3: Addition of covariates into the model equation

The methodology suggested by Thompson and Arah [25] allows the inclusion of covariates in the model determining probability of inclusion within a dataset. For a Covid-19 based analysis, one factor to consider is the wave of Covid-19. Research – including the OPENSAFELY analysis – indicates a time dependence for the risk of hospitalisation and mortality within different ethnic subgroups [11, 20, 27]. Therefore, accounting for this chance in risk when including data from multiple Covid-19 waves in a single IPW weighted analysis is vital.

As Mathur et al.’s analysis of the OPENSAFELY cohort includes separate data from the first (1st February to 3rd August 2020) and partial-second (1st September to 31st December 2020) wave of Covid-19 this same external data set can be used to develop IPWs from a model estimating the risk of hospitalisation based on patient ethnicity, survival status, and Covid-19 wave at admission. Adapting the initial model (Eq. 1), the risk can be calculated from a new GLM with the added elements indicated in blue (Eq. 2).

(2)

Following the same principles as described in the above sections, summarised data from the OPENSAFELY analysis across the first two waves of Covid-19 was applied to the model in Eq. 2 (Table 4). The calculated risks of hospitalisation for each ethnicity/wave/survival status group were inverted to create IPWs to apply to a weighted version of a Cox proportional hazards model with discharge as a competing risk. Degrees of misspecification likely to apply to the new model parameters in Eq. 2 were determined by comparing the OPENSAFELY data to other external sources (Appendix Tables 2 and 3). These model parameters were adjusted based on these comparisons (Table 3) and applied as part of a sensitivity analysis examining the effect of misspecification on the obtained results.

Table 4 The risk of hospitalisation with Covid-19 for each ethnic group in the first and second wave of Covid-19 as obtained from published analysis of the OPENSAFELY platform [20] and fitted parameters for the model in Eq. 2 that can be estimated from the OPENSAFELY data. OIM std error = standard errors derived from the observed information matrix variance estimators

Results

Part 1: Estimating the probability of Covid-19 associated hospitalisation in the first wave from national data

Within a South-London cohort admitted to hospital during the first wave of Covid-19 (Fig. 2), examination of the relationship between ethnicity and Covid-19 associated mortality suggests a 42% (13%, 61%) reduction in risk of death in those of Black ethnicity (p = 0.008). This finding greatly differs from other studies examining a similar timeframe using less restricted cohorts suggesting likely bias within this analysis [17, 20, 26]. Accounting for covariates including medical history, age, sex and IMD does not account for the unexpected finding (hazard ratio (HR) = 0.63 (0.39, 1.00), p = 0.049).

Instead, use of IPW derived from external sources allowed the comparison of Black vs. White ethnicity to be revaluated resulting in a small increase in risk of death in those who were Black (HR = 1.06 (0.56, 2.00), p = 0.851). This hazard ratio now follows a similar trend to that seen in other studies [17, 20, 26] suggesting the use of IPW has corrected for potential sources of selection bias in this cohort.

Fig. 2
figure 2

Summarised estimates for the effect of ethnic group (in comparison to White) on death during hospitalisation during the first wave of Covid-19. Estimates are obtained from an unadjusted analysis not accounting for covariates (green circles), an adjusted analysis containing 9 covariates (red squares), and a weighted analysis containing the 9 covariates and IPW based on calculated probabilities of hospitalisation (black triangles). The 9 covariates accounted for are: age, sex, IMD quintile, the presence of a DNR order, cardiovascular disease, COPD/emphysema, diabetes, chronic liver conditions and chronic kidney disease

Like the relationship between Black ethnicity and Covid-19 associated death, relationships of other ethnicities and survival were modified by the use of IPW to adjust for collider bias.

The effect of Asian ethnicity compared to White ethnicity on survival demonstrated some effect of confounding when comparing the unadjusted and adjusted models (green circle and red square, Fig. 2) with the estimated effects moving towards a more extreme hazard ratio after accounting for covariates (adjusted model: HR = 1.73 (0.99, 3.01), p = 0.052 vs. unadjusted model: HR = 1.36 (0.85, 2.15), p = 0.197). The use of IPW to account for selection biases, however, strengthens the estimated effect of Asian ethnicity (vs. White) on survival even further (HR = 2.43 (1.05–5.62), p = 0.038) allowing the findings to match the existing literature more closely [13, 17, 20, 26, 27].

The effect of Mixed/Other and Unknown ethnicities demonstrated less extreme changes in hazard ratios after adjusting for covariates followed by IPW to correct for collider bias (Fig. 2). However, this also matches existing studies which focus on an effect of Black and Asian ethnicity on Covid-19 outcomes in the first UK wave of the pandemic [12, 17, 20, 26].

Part 2: Sensitivity analysis examining the effect of changes in estimated probabilities to match the local population

Applying these adjusted IPWs as part of the weighted survival analysis to examine the effect of misspecification in the relationship between Covid-19 associated hospitalisation and ethnicity/Covid-19 associated mortality found that adjustments to \({\widehat{\gamma }}_{0}\) (Fig. 3A), \({\widehat{\gamma }}_{1}\) (Fig. 3B), and \({\widehat{\varvec{\lambda }}}_{\varvec{a}}\) (Fig. 3C) had minimal effect on the estimates obtained from the analysis using IPW demonstrated in Fig. 2.

Reducing the probability of hospitalisation in those who died specifically in Black, Asian and Mixed/Other ethnicities (\({\widehat{\varvec{\lambda }}}_{\varvec{b}}\)) had a more dramatic effect on the estimates for the effect of each ethnic group on mortality (Fig. 3D). The estimated hazard ratios for all three ethnicities increased and there was more uncertainty about these estimates. The extent of the heightened hazard and the increased uncertainty was systematically enhanced as the degree of misspecification increased from 50 to 200%. Adjustments made to \({\widehat{\varvec{\lambda }}}_{\varvec{b}}\) had little effect on the estimated effect of Unknown ethnicity on death (Fig. 3D) – as expected because the probability of hospitalisation in those who died in this group was not adjusted.

Interestingly, the adjustment for misspecification in \({\widehat{\varvec{\lambda }}}_{\varvec{b}}\) allowed the estimated effect of Black ethnicity on mortality to reflect the situation reported in other studies [17, 20, 27] and the media during wave 1 of Covid-19 –an increased risk of death compared to those who are White. This differs from the results for the cohort from before applying IPWs to account for selection bias (Fig. 2) and highlights that in hospitalised cohorts, such as this one, there is a clear risk of inducing bias in the form of collider bias and other selection biases.

Fig. 3
figure 3

Changes seen to the estimated effect of ethnicity on death (recorded during hospitalisation) when completing sensitivity analysis to account for misspecification in parameters of the GLM modelling risk of Covid-19 associated hospitalisation based on ethnic group and survival status. Each parameter was adjusted based on three levels of misspecification: 50% (mild), 100% (expected) and 200% (extreme)

Part 3: Addition of covariates into the model equation

The addition of data from the second wave of Covid-19 altered the results obtained from the initial analysis (Fig. 2) demonstrating how IPW in addition to adjusting for covariates improves estimation. All estimates now have more precision reflecting the larger cohort analysed (Fig. 4). Most point estimates have shifted to indicate a smaller/neutral effect of ethnicity on mortality with some exceptions. All point estimates fell within the 95% confidence intervals estimated from the wave 1 only cohort (Fig. 2).

This analysis continued to suggest a reduced risk of death in those of Black ethnicity (compared to White) in the unadjusted analysis (HR = 0.70 (0.53, 0.92), p = 0.012). This was corrected by adjustment for covariates (HR = 0.91 (0.65, 1.27), p = 0.575) and tended towards a small increase in mortality (HR = 1.29 (0.87, 1.93), p = 0.211) after the use of IPW to account for selection bias.

Asian ethnicity had a clear increased risk of mortality after adjustment for covariates (HR = 1.94 (1.28, 2.93), p = 0.002). Use of IPW did little to alter this finding demonstrating continued increased risk of mortality in those of Asian ethnicity (HR = 2.06 (1.15, 3.67), p = 0.014) as shown by other studies [13, 20, 27].

Inclusion of wave 2 in this analysis suggested a reduced risk of mortality in those with Mixed/Other ethnicity that was less evident in the initial analysis (HR = 0.45 (0.27, 0.75), p = 0.002). This reduction in risk was attenuated by adjustment for covariates and using IPW to correct for collider bias (HR = 0.79 (0.39, 1.64), p = 0.533). Meanwhile inclusion of wave 2 in this analysis suggested a lack of difference in mortality between those with Unknown ethnicity and those with known White ethnicity (unadjusted: HR = 0.82 (0.61, 1.11), p = 0.198; adjusted for covariates and IPW: HR = 0.96 (0.64, 1.44), p = 0.838) matching results seen in other studies [20].

Fig. 4
figure 4

Summarised estimates for the effect of ethnic group (in comparison to White) on death during hospitalisation across the first two waves of Covid-19. Estimates are obtained from an unadjusted analysis not accounting for covariates (green circles), an adjusted analysis containing 9 covariates (red squares), and a weighted analysis containing the 9 covariates and IPW based on calculated probabilities of hospitalisation in each wave of Covid-19 (black triangles). The 9 covariates accounted for are: age, sex, IMD quintile, the presence of a DNR order, cardiovascular disease, COPD/emphysema, diabetes, chronic liver conditions and chronic kidney disease

Sensitivity analysis of the extended analysis

The sensitivity analysis examining misspecification in the model parameters for the GLM describing probability of hospitalisation while including wave as a covariate (Eq. 2) showed a similar pattern as the sensitivity analysis of the initial model.

Adjustments to \({\widehat{\gamma }}_{0}\) (Fig. 5A), \({\widehat{\gamma }}_{1}\) (Fig. 5B), \({\widehat{\gamma }}_{2}\) (Fig. 5E), and \({\widehat{\gamma }}_{3}\) (Fig. 5F) had minimal effect on the obtained estimates for the effect of ethnicity on mortality. Adjustments to \({\widehat{\varvec{\lambda }}}_{\varvec{a}}\) (Fig. 5C), \({\widehat{\varvec{\lambda }}}_{\varvec{c}}\) (Fig. 5G), and \({\widehat{\varvec{\lambda }}}_{\varvec{d}}\) (Fig. 5H) had small but notable effects on these estimates. Accounting for a large (200%) misspecification of \({\widehat{\varvec{\lambda }}}_{\varvec{a}}\) (related to the probability of hospitalisation in surviving individuals of minority ethnicities) was sufficient to increase the estimated risk of mortality in Black individuals compared to White, while adjustments to \({\widehat{\varvec{\lambda }}}_{\varvec{c}}\) and \({\widehat{\varvec{\lambda }}}_{\varvec{d}}\) (which related to ethnicity-specific effects on the risk of hospitalisation in wave 2) caused a reduction in the estimated hazard ratio comparing Asian and White ethnicity.

As before the only model parameter which had a substantial effect on the obtained results once misspecification was applied is \({\widehat{\varvec{\lambda }}}_{\varvec{b}}\) (Fig. 5D) which matches the pattern described above (Fig. 3D). Namely reducing the probability of hospitalisation in those who died specifically in Black, Asian and Mixed/Other ethnicities resulted in increases in the estimated hazard ratios for the relationship between mortality and these ethnic groups (compared to White ethnicity).

Fig. 5
figure 5

Changes seen to the estimated effect of ethnicity on death (recorded during hospitalisation) when completing sensitivity analysis to account for misspecification in parameters of the GLM modelling risk of Covid-19 associated hospitalisation based on ethnic group, Covid-19 wave and survival status. Each parameter was adjusted based on three levels of misspecification: 50% (mild), 100% (expected) and 200% (extreme)

Discussion

This study demonstrates that externally derived data can be used to develop IPW in order to create a weighted statistical analysis accounting for selection bias which is typical of studies during the Covid-19 pandemic. Within the example cohort, non-weighted analyses typically provided results that did not match findings from other UK-based studies [12, 13, 17, 20, 26]. The fact that this is a hospitalised cohort could be the key to this, creating a study prone to collider bias (Fig. 1). Weighted analysis using IPW instead allowed the results obtained from this cohort to be more representative of a non-hospitalised cohort as well as more comparable to the existing literature.

A key consideration in creating the IPWs used in this analysis was the choice of external data to use when modelling the probability of hospitalisation. The published analysis by Mathur et al. [20] of the OPENSAFELY platform data was deemed an appropriate choice as this assessed the risk of hospitalisation and death in an English community-based population of adults (18+) at risk of hospitalisation with Covid-19 in 2020 – a similar population and time period that individuals in this analysis were selected from. But the OPENSAFELY platform is a national cohort, while this is a London-based one with unique characteristics, including increased ethnic diversity [22] and an increased risk of Covid-19 infection [35]. This made the inclusion of a sensitivity analysis accounting for misspecification in the modelled relationship between ethnicity/wave/death and hospitalisation vital. Misspecification applied as part of this analysis was determined through comparisons of the OPENSAFELY data and other data sources. Most comparisons did not differentiate between ethnic groups or survival status due to lack of stratum specific data meaning that a certain degree of conjecture was required. To account for possible error in the comparisons and speculations made, multiple levels of misspecification were applied to each parameter. The sensitivities analyses demonstrated that large degrees of misspecification (200% of that predicted) would be required before the conclusions made differed from that described. In fact, misspecification in several model parameters demonstrated very little effect on the consistency of the obtained results, even when an initial model parameter (\({\widehat{\gamma }}_{1}\)) was based on an assumption later proved to be incorrect.

Only sequential levels of misspecification were chosen because it was found that broadly the rankings between ethnic groups for the probability of hospitalisation were consistent between the OPENSAFELY data and other data sources (Table 2, Appendix Tables 2 and 3). For the one exception to this finding (Appendix Table 3: in wave 2 those of Asian ethnicity local to GSTT were less likely to be hospitalised than those of Black ethnicity), the misspecification applied to \({\widehat{\varvec{\lambda }}}_{\varvec{c}}\) purposely reversed the rankings to fit the local data. Notably this change in rankings did not has a substantial effect on the obtained results (Fig. 5G). As a result, we are confident that the model based on OPENSAFELY platform data is likely to be appropriate for developing IPWs for this dataset.

One limitation of the misspecification methodology applied here is that misspecification was applied to each parameter independently. This was to determine if certain parameters were more susceptible to misspecification than other parameters as was found to be the case with only misspecification of \({\widehat{\varvec{\lambda }}}_{\varvec{b}}\) (probability of hospitalisation in those who died from minority ethnicities) have a substantial impact on the obtained results. An additional benefit is that it allowed for more control over how the probability of hospitalisation changed such that the probabilities could be kept within the required range of {0–1}. The exact method for creating externally derived IPWs should be examined in further studies. Firstly, this analysis was unable to incorporate additional covariates such as age or sex into the model determining the probability of hospitalisation which can be seen as a limitation. This was due to external datasets only being available as summary statistics without sufficient cross-tabulation. Simpler and so more obtainable methods for deriving IPWs exist based on the demographic differences between a sample and the target population which could account for such covariates. However, these have achieved mixed results [36]. Additionally, stabilisation methods [37] may be beneficial to analyses such as this one. The results of this analysis accepted large confidence intervals as a consequence of the large weights applied (due to low probabilities of hospitalisation) and the use of robust standard errors to maintain the type 1 error rate. These issues may be corrected by weight stabilisation [38].

Another factor that may have contributed to the large confidence intervals obtained is the categories of ethnicity used. Due to the small sample size, ethnicity was defined based on the broad categories employed by ONS. However, the Asian ethnic group, in particular, is a diverse population made up of multiple subgroups who have been shown to be impacted differently by Covid-19 [20, 27]. Notably South Asians make up 52.2% (140/268) of this cohort and this population have been demonstrated to have increased susceptibility to Covid-19.Despite the desire for additional considerations in the choice and methodology when applying weights, the need to use techniques such as these cannot be overstated in fields such as Covid-19. The relationship between Covid-19 severity and hospitalisation means that hospitalised cohorts can naturally only represent the most severe cases of Covid-19 [15] limiting the inferences can be drawn from these patient populations. Adding other selection pressures such as the provided example of increased Covid-19 infection and hospitalisation in minority ethnicities means that these cohorts are not representative of the wider UK population. Limiting selection biases such as collider bias [2, 6] and where possible correcting for these biases should be a vital part in Covid-19 methodology to ensure valid inferences are made and consistency within the published literature.

Conclusion

In conclusion, this analysis demonstrates the use of inverse probability weighting derived from an external dataset to correct for collider bias present within cohorts of patients hospitalised with Covid-19. This correction allows an example data set exploring the relationship between ethnicity and Covid-19 associated mortality in a South London hospitalised cohort to be more consistent with the published literature.

Availability of data and materials

The datasets generated and/or analysed during the current study are not publicly available due to the closure of the relevant databases and cloud-based services in line with the agreed ethical approvals. Further summary data is avaliable from the corresponding author on reasonable request.

References

  1. Learoyd AE, Douiri A, Hart N. COVID-19 and ethnicity: has history repeated itself? Thorax. 2021;76:537–8.

    Article  PubMed  Google Scholar 

  2. Griffith GJ, et al. Collider bias undermines our understanding of COVID-19 disease risk and severity. Nat Commun. 2020;111(11):1–12.

    Google Scholar 

  3. Raynaud M, et al. COVID-19-related medical research: a meta-research and critical appraisal. BMC Med Res Methodol. 2021;21:1–11.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  4. Accorsi EK, et al. How to detect and reduce potential sources of biases in studies of SARS-CoV-2 and COVID-19. Eur J Epidemiol. 2021;36:179–96.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  5. Thompson LA, et al. The influence of selection bias on identifying an association between allergy medication use and SARS-CoV-2 Infection. eClinicalMedicine. 2021;37: 100936.

    Article  PubMed  PubMed Central  Google Scholar 

  6. Herbert A, Griffith G, Hemani G, Zuccolo L. The spectre of Berkson’s paradox: Collider bias in Covid-19 research. Significance. 2020;17:6–7.

    Article  PubMed  Google Scholar 

  7. Gupta S, et al. Factors Associated with Death in critically Ill patients with Coronavirus Disease 2019 in the US. JAMA Intern Med. 2020;180:1436–47.

    Article  CAS  PubMed  Google Scholar 

  8. Petrilli CM, et al. Factors associated with hospital admission and critical illness among 5279 people with coronavirus disease 2019 in New York City: prospective cohort study. BMJ. 2020;369: m1966.

    Article  PubMed  PubMed Central  Google Scholar 

  9. Ferrando-Vivas P, et al. Prognostic factors for 30-Day mortality in critically Ill patients with Coronavirus Disease 2019. Crit Care Med. 2020;49:102–11.

    Article  PubMed Central  Google Scholar 

  10. Docherty AB, et al. Features of 20 133 UK patients in hospital with covid-19 using the ISARIC WHO Clinical Characterisation Protocol: prospective observational cohort study. BMJ. 2020;369:m1985.

    Article  PubMed  PubMed Central  Google Scholar 

  11. Singh BM, et al. Risk of COVID-19 hospital admission and COVID-19 mortality during the first COVID-19 wave with a special emphasis on ethnic minorities: an observational study of a single, deprived, multiethnic UK health economy. BMJ Open. 2021;11: e046556.

    Article  PubMed  Google Scholar 

  12. Sapey E, et al. Ethnicity and risk of death in patients hospitalised for COVID-19 Infection in the UK: an observational cohort study in an urban catchment area. BMJ Open Resp Res. 2020;7:644.

    Article  Google Scholar 

  13. Wan YI, et al. Ethnic disparities in hospitalisation and hospital-outcomes during the second wave of COVID-19 Infection in East London. Sci Rep. 2022;12:3721.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  14. Baqui P, Bica I, Marra V, Ercole A, van der Schaar M. Ethnic and regional variations in hospital mortality from COVID-19 in Brazil: a cross-sectional observational study. Lancet Glob Heal. 2020;8:e1018-1026.

    Article  Google Scholar 

  15. Merchant HA, Kow CS, Hasan SS. COVID-19 first anniversary review of cases, hospitalization, and mortality in the UK. Expert Rev Respir Med. 2021;15:973–8.

    Article  CAS  PubMed  Google Scholar 

  16. Breen R, Ermisch J. Using inverse probability weighting to address Post-outcome Collider Bias. Sociol Methods Res. 2021. https://doi.org/10.1177/00491241211043131.

    Article  Google Scholar 

  17. Williamson EJ, et al. Factors associated with COVID-19-related death using OpenSAFELY. Nature. 2020;584:430–6.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  18. Elliott J, et al. COVID-19 mortality in the UK Biobank cohort: revisiting and evaluating risk factors. Eur J Epidemiol. 2021;36:299–309.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  19. Niedzwiedz CL, et al. Ethnic and socioeconomic differences in SARS-CoV-2 Infection: prospective cohort study using UK Biobank. BMC Med. 2020;18(1):160.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  20. Mathur R, et al. Ethnic differences in SARS-CoV-2 Infection and COVID-19-related hospitalisation, intensive care unit admission, and death in 17 million adults in England: an observational cohort study using the OpenSAFELY platform. Lancet. 2021;397:1711–24.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  21. NHS England. Daily situation report - Covid-19 NHS Situation Report. 2021. https://www.england.nhs.uk/statistics/statistical-work-areas/covid-19-hospital-activity/. Accessed 27 July 2022.

  22. Office of National Statistics. Population by Ethnic Group by borough - ONS Annual Population Survey. 2022. https://data.london.gov.uk/dataset/ethnic-groups-borough. Accessed 27 July 2022.

  23. Office of National Statistics. Death registrations and occurrences by local authority and health board. 2022. https://www.ons.gov.uk/peoplepopulationandcommunity/healthandsocialcare/causesofdeath/datasets/deathregistrationsandoccurrencesbylocalauthorityandhealthboard. Accessed 8 Aug 2022.

  24. Office of National Statistics. Coronavirus (COVID-19) related deaths by ethnic group, England and Wales. https://www.ons.gov.uk/peoplepopulationandcommunity/birthsdeathsandmarriages/deaths/articles/coronaviruscovid19relateddeathsbyethnicgroupenglandandwales/2march2020to15may2020. Accessed 8 Aug 2022.

  25. Thompson CA, Arah OA. Selection bias modeling using observed data augmented with imputed record-level probabilities. Ann Epidemiol. 2014;24:747–53.

    Article  PubMed  PubMed Central  Google Scholar 

  26. Harrison EM et al. Ethnicity and outcomes from COVID-19: the ISARIC CCP-UK prospective observational cohort study of hospitalised patients. SSRN Electron J Preprint,. (2020).

  27. Nafilyan V, et al. Ethnic differences in COVID-19 mortality during the first two waves of the Coronavirus Pandemic: a nationwide cohort study of 29 million adults in England. Eur J Epidemiol. 2021;36:605–17.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  28. Lassale C, Gaye B, Hamer M, Gale CR, Batty GD. Ethnic disparities in hospitalisation for COVID-19 in England: the role of socioeconomic factors, mental health, and inflammatory and pro-inflammatory factors in a community-based cohort study. Brain Behav Immun. 2020;88:44.

    Article  CAS  PubMed  PubMed Central  Google Scholar 

  29. Learoyd AE, Nicholas J, Hart N, Douiri A. Revisiting ethnic discrepancies in a COVID-19 hospitalised cohort. J Clin Epidemiol. 2023;4356:00161–00160.

    Google Scholar 

  30. Ministry of Housing Communities & Local Government. The English Indices of Deprivation 2019 (IoD2019). 2019. https://www.gov.uk/government/statistics/english-indices-of-deprivation-2019 . Accessed 1 Aug 2023.

  31. Razai MS, Kankam HKN, Majeed A, Esmail A, Williams DR. Mitigating ethnic disparities in covid-19 and beyond. BMJ. 2021;372:m4921.

    Article  PubMed  Google Scholar 

  32. Gershengorn HB, et al. Association of RACE and ethnicity with covid-19 test positivity and hospitalization is mediated by socioeconomic factors. Ann Am Thorac Soc. 2021;18:1326–34.

    Article  PubMed  PubMed Central  Google Scholar 

  33. Mutambudzi M, et al. Occupation and risk of severe COVID-19: prospective cohort study of 120 075 UK Biobank participants. Occup Environ Med. 2021;78:307–14.

    Article  Google Scholar 

  34. Wright J. Coronavirus doctor’s diary: ‘Fake news makes patients think we want them to die’ - BBC News. 2020. https://www.bbc.co.uk/news/health-52337951. Accessed 8 Aug 2022.

  35. UK Health Security Agency. Coronavirus (COVID-19) in the UK - Gov.uk. 2022. https://coronavirus.data.gov.uk/. Accessed 18 Aug 2022.

  36. Haddad C, et al. Should samples be weighted to decrease selection bias in online surveys during the COVID-19 pandemic? Data from seven datasets. BMC Med Res Methodol. 2022;22:1–11.

    Article  Google Scholar 

  37. Wilcox CR, Islam N, Dambha-Miller H. Association between Influenza vaccination and hospitalisation or all-cause mortality in people with COVID-19: a retrospective cohort study. BMJ Open Resp Res. 2021;8:857.

    Article  Google Scholar 

  38. Xu S, et al. Use of stabilized inverse propensity scores as weights to directly estimate relative risk and its confidence intervals. Value Health. 2010;13:273.

    Article  PubMed  Google Scholar 

Download references

Acknowledgements

The authors would like to thank Ms Finola Higgins and Mr Leonardo de Jongh on their help with data collection and ethics approvals as well as Marc Delord for statistical advice and support. The authors acknowledge use of the research computing facility at King’s College London, Rosalind (https://rosalind.kcl.ac.uk), which is delivered in partnership with the National Institute for Health Research (NIHR) Biomedical Research Centres at South London & Maudsley and Guy’s & St. Thomas’ NHS Foundation Trusts, and part funded by capital equipment grants from the Maudsley Charity (award 980) and Guy’s & St. Thomas’ Charity (TR130505).

Funding

The authors acknowledge funding support from the National Institute for Health Research (NIHR) Applied Research Collaboration (ARC) South London at King’s College Hospital NHS Foundation Trust and the Royal College of Physicians as well as the King’s Health Partners/ Guy’s and St Thomas Charity ‘MLTC Challenge Fund’ (grant number EIC180702). We also acknowledge support from the NIHR Biomedical Research Centre based at Guy’s and St Thomas’ NHS Foundation Trust and King’s College London.

Author information

Authors and Affiliations

Authors

Contributions

AL completed the analysis. JN, and AD provided statistical input. AL wrote the manuscript. JN, NH and AD reviewed the manuscript.

Corresponding author

Correspondence to Annastazia Learoyd.

Ethics declarations

Ethics approval and consent to participate

Ethical approval was granted by The London Bromley Research Ethics Committee (reference (20/HRA/1871)) to the King’s Health Partners Data Analytics and Modelling COVID-19 Group to collect clinically relevant data points from patient’s electronic health records. Under this ethical approval it was deemed acceptable that individual patient informed consent could not be obtained due to the retrospective nature of this data collection therefore it was waived by The London Bromley Research Ethics Committee. Access to Lambeth DataNet was under a project-specific approval granted by Lambeth Public Health Caldicott Guardian, 26 June 2020; additional informed consent for use of this dataset was not required under the terms of the initial ethical approvals in place.

All research was carried out in accordance with relevant guidelines and regulations complied with the Helsinki declaration.

Consent for publication

Not applicable.

Competing interests

The authors declare no competing interests.

Additional information

Publisher’s Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Supplementary Information

Rights and permissions

Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/. The Creative Commons Public Domain Dedication waiver (http://creativecommons.org/publicdomain/zero/1.0/) applies to the data made available in this article, unless otherwise stated in a credit line to the data.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Learoyd, A., Nicholas, J., Hart, N. et al. Application of information from external data to correct for collider bias in a Covid-19 hospitalised cohort. BMC Med Res Methodol 24, 149 (2024). https://doi.org/10.1186/s12874-023-02129-7

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s12874-023-02129-7

Keywords