Immortal time bias for life-long conditions in retrospective observational studies using electronic health records

preprint OA: closed CC-BY-4.0
📄 Open PDF Full text JSON View at publisher

Abstract

Background: Immortal time bias is common in observational studies but is typically described for pharmacoepidemiology studies where there is a delay between cohort entry and treatment initiation. Methods This study used the Clinical Practice Research Datalink (CPRD) and linked national mortality data in England from 2000–2019 to investigate immortal time bias for a specific life-long condition, intellectual disability. Life expectancy (Chiang’s abridged life table approach) was compared for 33,867 exposed and 980,586 unexposed individuals aged 10+ years using five methods: (1) treating immortal time as observation time; (2) excluding time before date of first exposure diagnosis; (3) matching cohort entry to first exposure diagnosis; (4) excluding time before proxy date of entering first exposure diagnosis (by the physician); and (5) treating exposure as a time-dependent measure. Results When not considered in the design or analysis (Method 1), immortal time bias led to disproportionately high life expectancy for the exposed population during earlier calendar periods (additional years expected to live: 2000–2004: 65.6 [95% CI: 63.6,67.6]; 2005–2009: 59.9 [58.8,60.9]; 2010–2014: 58.0 [57.1,58.9]; 2015–2019: 58.2 [56.8,59.7]). Date of entry of diagnosis (Method 4) was unreliable in this CPRD cohort. The final methods (Method 2, 3 and 5) appeared to solve the main theoretical problem but residual bias may have remained. Conclusions We conclude that immortal time bias is a significant issue for studies of life-long conditions that use electronic health record data and requires careful consideration of how clinical diagnoses are entered onto electronic health record systems.
Full text 100,093 characters · extracted from preprint-html · click to expand
Immortal time bias for life-long conditions in retrospective observational studies using electronic health records | Research Square window.SnipcartSettings = { analytics: { enabled: false } }; (function() { var accessVector = localStorage.getItem('access_vector') || ''; window.dataLayer = window.dataLayer || []; if (accessVector) { window.dataLayer.push({ user: { profile: { profileInfo: { snid: accessVector } } } }); } })(); (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-K279D39R'); Browse Preprints In Review Journals COVID-19 Preprints AJE Video Bytes Research Tools Research Promotion AJE Professional Editing AJE Rubriq About Preprint Platform In Review Editorial Policies Our Team Advisory Board Help Center Sign In Submit a Preprint Cite Share Download PDF Research Article Immortal time bias for life-long conditions in retrospective observational studies using electronic health records Freya Tyrer, Krishnan Bhaskaran, Mark J Rutherford This is a preprint; it has not been peer reviewed by a journal. https://doi.org/ 10.21203/rs.3.rs-1060955/v1 This work is licensed under a CC BY 4.0 License Status: Under Review Version 1 posted 10 You are reading this latest preprint version Abstract Background Immortal time bias is common in observational studies but is typically described for pharmacoepidemiology studies where there is a delay between cohort entry and treatment initiation. Methods This study used the Clinical Practice Research Datalink (CPRD) and linked national mortality data in England from 2000–2019 to investigate immortal time bias for a specific life-long condition, intellectual disability. Life expectancy (Chiang’s abridged life table approach) was compared for 33,867 exposed and 980,586 unexposed individuals aged 10+ years using five methods: (1) treating immortal time as observation time; (2) excluding time before date of first exposure diagnosis; (3) matching cohort entry to first exposure diagnosis; (4) excluding time before proxy date of entering first exposure diagnosis (by the physician); and (5) treating exposure as a time-dependent measure. Results When not considered in the design or analysis (Method 1), immortal time bias led to disproportionately high life expectancy for the exposed population during earlier calendar periods (additional years expected to live: 2000–2004: 65.6 [95% CI: 63.6,67.6]; 2005–2009: 59.9 [58.8,60.9]; 2010–2014: 58.0 [57.1,58.9]; 2015–2019: 58.2 [56.8,59.7]). Date of entry of diagnosis (Method 4) was unreliable in this CPRD cohort. The final methods (Method 2, 3 and 5) appeared to solve the main theoretical problem but residual bias may have remained. Conclusions We conclude that immortal time bias is a significant issue for studies of life-long conditions that use electronic health record data and requires careful consideration of how clinical diagnoses are entered onto electronic health record systems. Health Economics & Outcomes Research bias (epidemiology) epidemiologic methods immortal time bias electronic health records life expectancy observational studies Figures Figure 1 Figure 2 Figure 3 Figure 4 Background Electronic health records are increasingly being used to conduct real-world observational studies to determine the association between a treatment or exposure and outcome. However, such studies are prone to a number of biases. In particular, immortal time bias is a recognised limitation of observational studies [ 1 – 3 ] that has come to the forefront in recent years owing to the increasing complexity of observational cohort designs [ 4 – 8 ]. This bias occurs where there is a period of time during follow up where an event or death cannot occur [ 4 ]. It is often discussed in the context of pharmacoepidemiology where a delay between entering the study and being allocated a given therapy at baseline creates an ‘immortal’ period for the subject thereby creating an apparent advantage for the group that is given the therapy. In these types of study, immortal time bias can generally be reduced, if not eliminated completely, by adapting the analysis; for example, through application of prescription time-distribution matching (PTDM), time-dependent or sequential Cox approaches, or landmark analyses [ 9 – 11 ]. However, immortal time bias is not specific to pharmacoepidemiology studies and can represent a significant problem where the exposure is a life-long condition or disability. Whilst it may be difficult for some to consider a life-long condition to be an exposure measure, this is the best way to conceptualise factors associated with the outcome of interest for epidemiological purposes. Where the exposure is life-long, it may not be possible to completely control for the effects of immortal time bias in the design or analysis. We demonstrate this using an example of electronic health record data of life expectancy among patients with and without intellectual disabilities from the UK Clinical Practice Research Datalink (CPRD). Our findings may also have applicability to long-term conditions with delays in diagnosis or prolonged latency periods. Methods Source of data For this example, we used the Clinical Practice Research Datalink (CPRD GOLD), linked (person-level) with hospital episode statistics (HES) and death registrations from the Office for National Statistics (approved study protocol number: 19_267RA3). The CPRD is an electronic health record research database of more than 11.3 million patients, broadly representative of the national population in terms of age, gender, and ethnicity [ 12 ], from general practice (GP) surgeries in the UK – of which approximately 75% in England consent to linkage to deaths data. The study followed the Reporting of studies Conducted using Observational Routinely-collected health Data (RECORD) checklist [ 13 ] (see supplementary Table S1 ). Diagnostic codes used in this study are reported in supplementary Table S2 . The initial extract from the CPRD has been described previously [ 14 ] and was based on the following inclusion criteria: registered at the GP surgery at any time between 1 Jan 2000 to 29 Sept 2019, and 10 years old or over to account for delays in reporting of diagnoses of intellectual disability in children [ 15 ]. An additional 23 patients with Angelman or Cockayne syndrome were added in August 2021 after an amendment to the original protocol (approved March 2020 but delayed during the COVID period). A random sample of people without intellectual disabilities was used for the comparison group with the same eligibility criteria (but without a diagnosis of intellectual disability). The initial extract included 33,867 people with intellectual disabilities (the exposed population) and a random sample of 980,586 people without intellectual disabilities (the unexposed population), although population sizes varied by the immortal time bias approach adopted. The baseline characteristics of the study populations under the five approaches are shown in supplementary Table S3 . Exposure/control definitions to handling immortal time bias under five different approaches We present five approaches to defining cohort entry time when calculating life expectancy in people with and without intellectual disabilities and describe the impact that each approach has on life expectancy estimates in the context of immortal time bias. All methods involved changes in the handling of the exposed population. The second and third method also involved changes to the unexposed (control) population. The five methods compared are summarised in Figure 1 . Method 1: Treating immortal time as observation time Method 1 involved applying no additional cohort entry criteria to either exposed or unexposed populations such that both populations are treated in the same way. Method 2: Excluding immortal time before date of first exposure diagnosis Method 2 involved adding date of intellectual disability diagnosis to the entry criteria such that date of entry into the cohort was set to the date of intellectual disability diagnosis if this was after the entry criteria defined for Method 1 ( Figure 1 ). The comparison group patients entered at the date of registration/start of follow-up, as in Method 1. This approach has been described in pharmacoepidemiology studies in the context of excluding immortal time prior to treatment initiation in the treated group [ 10 ]. Method 3: Matching cohort entry to first exposure diagnosis The third approach involved excluding immortal time, as in Method 2, but then matching the exposed individuals to unexposed individuals at a 1:10 ratio by date of cohort entry. This approach was designed to give a more balanced distribution of cohort entry date than Method 2 (in which entry dates for the comparison group tended to be earlier by design). The method is similar to the PTDM approach described for pharmacoepidemiology studies where dates of initiating therapy vary between treatment groups [ 10 , 16 , 17 ]. The difference between this and our approach is that PTDM involves differentiating between the ‘never treated’ and ‘ever treated’ groups such that cohort entry dates in the ‘never treated’ group are shifted to the date that the ‘ever treated’ group first started their treatment [ 10 ]. The approach, therefore, requires conditioning on the future and depends on length of the follow-up period since those in the ‘never treated’ group are allowed to move to the ‘ever treated’ group if the follow-up period is sufficiently long. Instead, our approach involved matching cohort entry dates against unexposed individuals, which included ‘never exposed’ individuals (i.e. without intellectual disabilities; PTDM approach) and ‘ever exposed’ individuals (i.e. people with intellectual disabilities prior to their first diagnosis). Ten matches for each exposed individual were initially selected from the pool of unexposed individuals who entered the study within 150 days (to balance follow-up time) prior to the index date (i.e. date of cohort entry for exposed individuals). Where all 10 matches could not be found within this time constraint (n=24 patients), controls were selected from the pool of unexposed individuals who entered at any time prior to the index date and were still at risk. Dates of cohort entry in the unexposed population were then updated to the index date. Method 4: Excluding time before proxy date of entering first exposure diagnosis The fourth approach involved incorporating the date that the exposed population’s diagnosis was assumed to be entered by the physician onto the GP surgery’s electronic health record system. This is not typically an issue with pharmacoepidemiology studies because the date of prescribing treatment is usually close to the date that the individual commences the treatment. However, for a life-long condition such as intellectual disabilities, physicians may choose to backdate the first exposure diagnosis to the patient’s date of birth. The CPRD provides a linked variable (‘system date’) for each corresponding diagnosis date which may correspond to the date that the diagnosis was entered. However, this variable is also updated when a person transfers to the GP surgery, when there is an update in the GP software system used, or when the record is amended [ 18 ] which may lead to erroneous loss of person-years in the exposed group. To investigate this, date of entry was set to the date attached to the first intellectual disability diagnosis if it was later than the date of entry defined in Method 1 or Method 2 (by design; Figure 1). In this method, the unexposed patients entered at the date of registration/start of follow-up period as in Method 1. Method 5: Treating exposure as a time-dependent measure The final approach to handling immortal time bias involved treating the exposure as a time-dependent variable. This is perhaps the most common approach used in pharmacoepidemiology studies to control for immortal time bias and involves adapting the analysis so that individuals’ exposure to a therapy is allowed to change during the follow-up period [ 10 , 17 ]. It can be used to investigate the effect of individual therapies where more than one is under investigation [ 19 ] and is also advocated as a means of avoiding immortal time bias caused by temporal variability in the onset of certain conditions, such as the menopause [ 3 ]. In this study, the approach involved allowing individuals in the exposed population to contribute to the unexposed population until their first intellectual disability diagnosis whereupon they started contributing to the exposed population ( Figure 1 ). The advantage of this method is that people with intellectual disabilities contribute person years in the same way as those who died before they had the opportunity to have an intellectual disability diagnosis. Statistical Analyses For the purposes of this work, data were split into the following calendar periods: 2000–2004; 2005–2009; 2010–2014; and 2015–2019. Date of entry into the cohort was defined as the latest date according to the person and practice’s characteristics: 01 Jan 2000; date of registration with the GP practice; date the practice was defined as being up to standard (using the CPRD’s own quality indicators); or date the individual turned 10 years old (to align with the eligibility criteria). Additional entry cohort criteria were specified according to the approach used. Date of exit from each calendar period was calculated in the same way throughout as: date of death; date of end of calendar period; date of last practice update (latest 29 Sep 2019); or date of transfer out of practice, whichever was first. If the patient died after their date of exit from the cohort, they were censored on the date of exit. To calculate life expectancy (additional life years expected to live) in both the exposed and unexposed populations, the Chiang’s abridged life table approach [ 20 – 23 ] was used. This approach has been described in detail elsewhere [ 23 ], but briefly involves stratifying by exposed and unexposed status and constructing a table of probabilities that individuals will survive in a defined age interval conditional on surviving to the start of that age interval. The product of probabilities is then used to calculate survival to each age interval and life expectancy is estimated as the cumulative number of years lived using information from all subsequent age intervals divided by the population at the start of the given age interval. Five-year-period life expectancies were estimated to highlight the immortal bias findings, allowing that there may have been period and cohort effects during each five-year calendar period. Confidence intervals for the derived life expectancies were calculated using the Chiang II approach as advocated by Eayres & Williams [ 24 ]. This involves adding a correction term to the original Chiang variance to account for the under-estimation of the ‘true’ variance at the last age interval by assuming variance is zero rather than basing the estimate on length of survival [ 25 ]. Results Figure 2 summarises the life expectancy findings for the exposed population under the five methods. Each of the methods is described in more detail below. Method 1: Treating Immortal Time As Observation Time We can see from Figure 2 that there is an apparent survival advantage in the first calendar period for the exposed population using Method 1. At age 10 years, for example, the estimated additional years expected to live in 2000–2004 was 65.6 (95% confidence interval [CI] 63.6,67.6) compared with 59.9 (58.8,60.9), 58.0 (57.1,58.9) and 58.2 (56.8,59.7) in the subsequent calendar periods. In the first calendar period and under Method 1, 38.5% of person-time ( n= 21,506 person years) in the cohort with intellectual disabilities was before the first intellectual disability diagnosis, compared with 23.4%, 9.1% and 4.8% in the second, third and fourth calendar periods respectively. Therefore, person-time was accrued for the exposed population during which a death could not occur. Method 2: Excluding immortal time before date of first exposure diagnosis Under Method 2, we can now see that the life expectancy advantages in the first calendar period are not as apparent. However, life expectancy remains slightly higher compared with the other calendar periods. This could be a real effect, but we speculate that some of the GP surgeries may have backdated intellectual disability diagnoses to date of birth during some key periods in response to policy initiatives in England (see discussion). In the first calendar period, 14.5% of person time ( n= 8,091 person years) had a backdated intellectual diagnosis to year of birth. This compares with 16.2% and 17.0% in the second and third calendar period during which many of the policy initiatives occurred and 14.6% in the final calendar period. We are unable to determine whether these records were updated when the patient was registered with the practice (when immortal time bias would not present a problem) or at some point during the registration period (see Method 4 for one approach to handling this). There is also an additional problem that, by excluding immortal time from the observation period, we introduce time-related bias by forcing many of the exposed individuals to enter later than the unexposed population ( Figure 1 ). Under Method 2, the median length of follow-up was shorter in the exposed population (4.6yrs vs 5.0 yrs; Table S3 ). The percentage of people with intellectual disabilities in the entire cohort (i.e. combining the cohort with and without intellectual disability) was also smaller in the first year of cohort entry period, increasing thereafter ( see Figure 3 ). Bias introduced from this approach is believed to be negligible if the person-years in the exposed cohort is much smaller than the person-years in the unexposed cohort [ 10 ], but this does mean that a smaller sample of people with intellectual disabilities are investigated in earlier cohort periods. The next method attempts to evaluate this using matching techniques. Method 3: Matching Cohort Entry To First Exposure Diagnosis It can be seen that matching on cohort entry in addition to excluding immortal time before date of first intellectual disability diagnosis (Method 2) resulted in a more balanced distribution of people in the exposed population over the observation period ( Figure 3 ). As expected, the life expectancy calculations for exposed individuals were identical to Method 2 ( Figure 2 ). Life expectancy was also similar in the unexposed group ( Figure 4 ), although person-time contribution was smaller because 65.5% ( n =641,916) of individuals from this population were discarded from the analysis because they were not matched. Method 4: Excluding time before proxy date of entering first exposure diagnosis Method 4, implemented under the assumption that the CPRD’s system date represented the date that the physician entered the intellectual disability diagnosis, produced the lowest life expectancy estimates for people with intellectual disabilities in the earlier calendar year periods ( Figure 2 ). All calendar periods, except the last calendar period, showed a markedly lower life expectancy for people with intellectual disabilities than the other two methods. The graphs show that life expectancy estimates in the general population for this method increased only slightly over time ( Figure 4 ) with life expectancy in people with intellectual disabilities showing more dramatic improvements ( Figure 2 ). However, this method led to a substantial loss in person-year contributions (median follow-up period 2.2yrs vs 5.0yrs) in the earlier cohort periods ( Figure 3 ). During the first calendar period (2000–2004), almost three-quarters of person-year contributions were lost compared with Method 1 (78.4%, n =43,787yrs) and two-thirds compared with Method 2 (64.9%, n =22,281yrs). Person-years lost gradually lowered for the subsequent calendar periods (64.1% and 53.3%, respectively, for 2005–2009, 41.2% and 35.3% for 2010–2014; 24.0% and 20.2% for 2015–2019). We can see, therefore, that people with a good prognosis (i.e. surviving long enough to have a system update at some later point) may have systematically been removed. The supplementary Figure S1 shows the distribution of system dates that were later than the first intellectual disability diagnosis. There were clusters of system dates linked to intellectual disability diagnoses at specific times that appeared to correspond to software system updates, particularly as some ( n =623 individuals) occurred after the individual had died or left the practice (see Figure S1 ). Moreover, the use of system date as a proxy date for entering the cohort is not advocated for CPRD data because it is not sufficiently specific [ 26 ]. Method 5: Treating Exposure As A Time-dependent Measure The final approach, treating the exposure as a time-dependent variable, showed very similar results to Method 2 and 3 for the exposed population ( Figure 2 ) and marginal differences to the life expectancy calculations in the unexposed population ( Figure 4 ) because the additional person-year contribution from the exposed population was relatively small. As before, this method has similar disadvantages to Method 2 in that we force exposed individuals to enter later than the unexposed population. In fact, the unexposed group contribute partially more to the earlier time periods than for Method 2. Discussion Through the use of electronic health records data, we demonstrate that immortal time presents a significant problem for time-to-event analyses where one or more of the exposures is a life-long condition or disability. Treating immortal time as exposure time (Method 1) led to an over-estimation of life expectancy advantages in the exposed population. Even when immortal time was excluded or treated as unexposed time (Methods 2, 3 and 5), some residual immortal time bias may have remained where diagnoses had been backdated to date of birth. Using proxy date of physician’s entry of exposure diagnosis (Method 4) resulted in a substantial loss of person-time and subjects, and did not appear to be used in a consistent way in our data source. Our findings highlight that interpretation is key for any study where the exposure can occur after the start of the follow-up period and consideration of immortal time bias is needed to avoid drawing incorrect conclusions. To our knowledge, this is the first time that the issue of immortal time bias has been studied in detail for life-long conditions or disabilities, although there is a wealth of literature that discusses immortal time bias in the context of pharmacoepidemiology studies. This literature largely corresponds with Methods 3 and 5 in our study by recommending the control of immortal time bias through PTDM or time-dependent approaches that allow exposure status to vary [ 9 , 10 , 17 ]. Time-dependent analyses have also been recommended to control for the effects of immortal time bias where time of onset of certain health conditions varies, such as the menopause [ 3 ]. The reason that the issue of immortal time bias for life-long conditions/disabilities has not been considered before may be that it seems conceptually inappropriate to consider someone with a life-long condition to be ‘disease-free’ for any period of observation. However, this is likely to be the best solution for electronic health records that do not follow up individuals from birth. The magnitude of immortal time bias is reported to be related to mean interval between date of cohort entry and date of (recording of) exposure, proportion of exposed study participants, and length of study follow-up [ 27 ]. The prevalence of intellectual disability, as diagnosed in primary care, is approximately 0.5% [ 28 ] but the current study population had a larger proportion of exposed individuals (~3%) because only a proportion of the unexposed population was selected for comparison. The cohort period of almost 20 years also increased the likely bias introduced by immortal time. Similarly, the choice of intellectual disability as an example may have led to substantially more immortal time bias than some other conditions or disabilities. Intellectual disability itself does not require treatment so, for administrative purposes, may not need to be entered onto GP systems if it is already known or reported in the patients’ notes. This changed in 2004, with the introduction of the Quality Outcomes Framework (QOF) and incentives to report long-term conditions including intellectual disabilities [ 29 , 30 ], closely followed by policy drives to maintain practice-level intellectual disability registers in 2006 (adults) and 2014 (children) [ 31 – 33 ], and annual intellectual disability health checks in 2008 (adults) and 2014 (14–17 year olds) [ 31 , 33 ]. We cannot identify another condition or disability where a policy drive has been so influential in changing practice in primary care. However, increased awareness is known to ‘artificially’ increase incidence of certain conditions over time, such as autism and coeliac disease [ 34 , 35 ]. Our findings may also have applications for conditions where there is a delay between onset and diagnosis, such as Crohn’s disease or rare diseases [ 36 , 37 ]. Finally, we have shown that attempts to control for immortal time bias in the design or analysis stage does not guarantee unbiased results. However, treating immortal time as observation time, thereby ignoring immortal time bias completely, is not recommended as we have shown that this will lead to spurious results owing to the ‘misclassification of immortal time’ [ 10 ]. Methods that start follow-up for exposed individuals at diagnosis (Methods 2, 3 and 5) all produce fairly similar findings and appear to solve the main theoretical problem, so any of these approaches could be adopted without a reference standard on which to compare. Although these methods all showed similar results for this study, Methods 3 and 5 have conceptual advantages over Method 2 because they do not involve conditioning on the future [ 38 ]. In other words, they allow exposed individuals to contribute to the unexposed population prior to their first diagnosis when they are still “at risk”. Incorporating date of assumed entry of exposure diagnosis by the physician (Method 4) may have potential in some data sources but we would not recommend this as a primary analysis for studies that use the CPRD owing to the apparent inconsistent use of the system date field that we used to capture date of record entry and substantial loss to person-time and subjects. Studies of electronic health records where date of entry of diagnosis is more reliably recorded may be considered for this purpose. This approach may also be valuable for conducting sensitivity analyses where immortal time bias is not perceived to be adequately controlled. Finally, we recommend adding an assessment of immortal time bias as a key component of critical appraisal tools for electronic health record studies. Declarations Ethics approval This study used an established research database (CPRD) under a multi-study licence agreement with the UK Medicines and Healthcare products Regulatory Agency. The CPRD has ethical approval as a research database for anonymised data (East Midlands-Derby, REC reference number 05/MRE04/87). The protocol for this research was approved by the CPRD’s Independent Scientific Advisory Committee (ISAC) (protocol number: 19_267). All methods were carried out in accordance with relevant guidelines and regulations. Consent for publication Not applicable Availability of data and materials Data for this study were obtained from the Clinical Practice Research Datalink (CPRD), provided by the UK Medicines and Healthcare products Regulatory Agency. The authors’ licence for using these data does not allow sharing of raw data with third parties. Information about access to CPRD data is available here: https://www.cprd.com/research-applications. Researchers should contact the ISAC Secretariat at [email protected] for further details. Competing interests None declared Funding This research was funded from a Baily Thomas Doctoral Fellowship award (TRUST/VC/AC/SG/5366-8393) and the Wellcome Trust (107731/Z/15/Z and 220283/Z/20/Z). For the purpose of open access, the author has applied a CC BY public copyright licence to any Author Accepted Manuscript version arising from this submission. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript. Authors’ contributions FT led on the planning, conduct, design, reporting of the work, funding acquisition, data acquisition and analysis, and interpretation of data for this work. KB contributed to the planning, conduct, data analysis, interpretation of data and reporting. MR contributed to the planning, conduct, design, reporting of the work, funding acquisition, data acquisition and analysis, and interpretation of data. Acknowledgments We gratefully acknowledge Rachael Williams, Observational Research Manager at the Clinical Practice Research Datalink (CPRD) for her valuable input and advice. We also acknowledge the Talk & Listen group (and facilitation by Pauline Ndigirwa), the Charnwood Action group, Amy Stanway, Sarah Stanyer, and Kate Dolan. The study is based in part on data from the CPRD GOLD database obtained under licence from the UK Medicines and Healthcare products Regulatory Agency. The provision of CPRD and linked data was through Leicester Real World Evidence (LRWE) Unit, which is funded by University of Leicester, National Institute for Health Research (NIHR) Applied Research Collaboration (ARC) East Midlands and Leicester NIHR Biomedical Research Centre. The interpretation and conclusions contained in this article are those of the authors alone and not necessarily those of the LRWE Unit, the NHS, the NIHR, or the Department of Health and Social Care. References 1. Farmer R, Mathur R, Bhaskaran K, Eastwood SV, Chaturvedi N, Smeeth L: Promises and pitfalls of electronic health record analysis . Diabetologia 2018, 61 (6):1241-1248. 2. Suissa S, Azoulay L: Metformin and the risk of cancer: time-related biases in observational studies . Diabetes Care 2012, 35 (12):2665-2673. 3. Yadav K, Lewis RJ: Immortal time bias in observational studies . Journal of the American Medical Association 2021, 325 (7):686-687. 4. Lévesque LE, Hanley JA, Kezouh A, Suissa S: Problem of immortal time bias in cohort studies: example using statins for preventing progression of diabetes . British Medical Journal 2010, 340 :b5087. 5. Suissa S: Immortal time bias in observational studies of drug effects . Pharmacoepidemiology & Drug Safety 2007, 16 (3):241-249. 6. Austin PC, Platt RW: Survivor treatment bias, treatment selection bias, and propensity scores in observational research . Journal of Clinical Epidemiology 2010, 632 :136–138. 7. Kim YG, Park DG, Moon SY, Jeon JY, Kim HJ, Kim DJ, Lee KW, Han SJ: Hypoglycemia and dementia risk in older patients with type 2 diabetes mellitus: A propensity-score matched analysis of a population-based cohort study . Diabetes & Metabolism 2020, 44 (1):125-133. 8. Zaccardi F, Jacquot E, Cortese V, Tyrer F, Seidu S, Davies MJ, Khunti K: Comparative effectiveness of gliclazide modified release versus sitagliptin as second-line treatment after metformin monotherapy in patients with uncontrolled type 2 diabetes . Diabetes, Obesity & Metabolism 2020. 9. Jones M, Fowler R: Immortal time bias in observational studies of time-to-event outcomes . Journal of Critical Care 2016, 36 :195-199. 10. Karim ME, Gustafson P, Petkau J, Tremlett H, The Long-Term Benefits and Adverse Effects of Beta-Interferon for Multiple Sclerosis Study Group: Comparison of statistical approaches for dealing with immortal time bias in drug effectiveness studies . American Journal of Epidemiology 2016, 184 (4):325-335. 11. Mi X, Hammill BG, Curtis LH, Lai EC, Setoguchi S: Use of the landmark method to address immortal person-time bias in comparative effectiveness research: a simulation study . Statistics in Medicine 2016, 35 (26):4824-4836. 12. Herrett E, Gallagher AM, Bhaskaran K, Forbes H, Mathur R, van Staa T, Smeeth L: Data resource profile: Clinical Practice Research Datalink (CPRD) . International Journal of Epidemiology 2015, 44 (3):827-836. 13. Benchimol EI, Smeeth L, Guttmann A, Harron K, Moher D, Petersen I, Sørensen HT, von Elm E, Langan SM: The REporting of studies Conducted using Observational Routinely-collected health Data (RECORD) statement . PLoS Mediciine 2015, 12 (10):e1001885. 14. Tyrer F, Morriss R, Kiani R, Gangadharan SK, Rutherford MJ: Mortality disparities and deprivation among people with intellectual disabilities in England: 2000–2019 . Journal of Epidemiology & Community Health 2021, doi: 10.1136/jech-2021-216798 . 15. Florio T, Trollor J: Mortality among a cohort of persons with an intellectual disability in New South Wales, Australia . Journal of Applied Research in Intellectual Disabilities 2015, 28 (5):383-393. 16. Pariente A, Fourrier-Réglat A, Ducruet T, Farrington P, Béland SG, Dartigues JF, Moore N, Moride Y: Antipsychotic use and myocardial infarction in older patients with treated dementia . Archives of Internal Medicine 2012, 172 (8):648-653. 17. Dekkers OM, Groenwold RHH: When observational studies can give wrong answers: the potential of immortal time bias . European Journal of Endocrinology 2021, 184 (1):E1-e4. 18. Leite A, Andrews NJ, Thomas SL: Assessing recording delays in general practice records to inform near real-time vaccine safety surveillance using the Clinical Practice Research Datalink (CPRD) . Pharmacoepidemiology & Drug Safety 2017, 26 (4):437-445. 19. Morriss R, Tyrer F, Zaccardi F, Khunti K: Safety of antidepressants in a primary care cohort of adults with obesity and depression . PLoS ONE 2021, 16 :e0245722. 20. Chiang CL: Variance and covariance of life table functions estimated from a sample of deaths . In . Washington: National Center for Health Statistics 1967: 1-7. 21. Chiang CL: Life table and mortality analysis . In . Geneva: World Health Organization 1979: 1-399. 22. Chiang CL: The life table and its construction . In: Introduction to stochastic processes in Biostatistics. edn. New York: John Wiley & Sons 1968: 189–214. 23. Chiang CL: The life table and its applications . Malabar: Robert E Krieger Publishing Company 1984. 24. Eayres D, Williams, E.S. : Evaluation of methodologies for small area life expectancy estimation . Journal of Epidemiology & Community Health 2004, 58 :243–249. 25. Lo E, Vatnik D, Benedetti A, Bourbeau R: Variance models of the last age interval and their impact on life expectancy at subnational scales . Demographic Research 2016, 35 :399-454. 26. Williams R: Personal communication [December 2020] . In . ; 2020. 27. Harding BN, Weiss NS: Point: immortal time bias - what are the determinants of its magnitude? American Journal of Epidemiology 2019, 188 (6):1013-1015. 28. Glover G, Williams R, Heslop P, Oyinlola J, Grey J: Mortality in people with intellectual disabilities in England . Journal of Intellectual Disability Research 2017, 61 (1):62-74. 29. Lester H, Campbell S: Developing Quality and Outcomes Framework (QOF) indicators and the concept of 'QOFability' . Quality in Primary Care 2010, 18 (2):103-109. 30. Roland M, Guthrie B: Quality and Outcomes Framework: what have we learnt? British Medical Journal 2016, 354 :i4060. 31. British Medical Association & NHS Employers: Clinical directed enhanced services (DES) guidance for GMS contract . In . London: Department of Health 2008. 32. British Medical Association/NHS England/NHS Employers: 2014/15 General Medical Services (GMS) Contract Quality and Outcomes Framework (QOF). Guidance for GMS Contract 2014/15. NHS England Gateway reference: 01264 . In . England: British Medical Association, NHS England, NHS Employers. Available from: http://www.mysurgerywebsite.co.uk/website/IGP367/files/Guidance_and_audit_requirements14-15contract.pdf (Accessed 19 Jan 2021) 2014. 33. General Practitioners Committee/NHS England/NHS Employees: General Medical Services Contract 2014-2015. Guidance and audit requirements: NHS England Gateway reference: 01347 . In . England: General Practitioners Committee, NHS England & NHS Employees. Available from: http://www.mysurgerywebsite.co.uk/website/IGP367/files/Guidance_and_audit_requirements14-15contract.pdf (Accessed 19 Jan 2021) 2014. 34. Taylor B, Jick H, MacLaughlin D: Prevalence and incidence rates of autism in the UK: time trend from 2004–2010 in children aged 8 years . BMJ Open 2013, 3 (10):e003219. 35. King JA, Jeong J, Underwood FE, Quan J, Panaccione N, Windsor JW, Coward S, deBruyn J, Ronksley PE, Shaheen AA et al : Incidence of Celiac disease is increasing over time: A systematic review and meta-analysis . American Journal of Gastroenterology 2020, 115 (4):507-525. 36. Blackwell J, Saxena S, Jayasooriya N, Bottle A, Petersen I, Hotopf M, Alexakis C, Pollok RC, group P-Is: Prevalence and duration of gastrointestinal symptoms before diagnosis of inflammatory bowel disease and predictors of timely specialist review: A population-based study . Journal of Crohn's and Colitis 2020. 37. Evans WR, Rafi I: Rare diseases in general practice: recognising the zebras among the horses . Br J Gen Pract 2016, 66 (652):550-551. 38. Lund JL, Horváth-Puhó E, Komjáthiné Szépligeti S, Sørensen HT, Pedersen L, Ehrenstein V, Stürmer T: Conditioning on future exposure to define study cohorts can induce bias: the case of low-dose acetylsalicylic acid and risk of major bleeding . Clin Epidemiol 2017, 9 :611-626. Additional Declarations No competing interests reported. Supplementary Files TyrerSupplementaryMaterialFINAL112021.docx Cite Share Download PDF Status: Under Review Version 1 posted Editorial decision: Major revision 11 Jan, 2022 Reviews received at journal 22 Dec, 2021 Reviewers agreed at journal 07 Dec, 2021 Reviews received at journal 30 Nov, 2021 Reviewers agreed at journal 15 Nov, 2021 Reviewers invited by journal 15 Nov, 2021 Editor assigned by journal 15 Nov, 2021 Editor invited by journal 15 Nov, 2021 Submission checks completed at journal 15 Nov, 2021 First submitted to journal 08 Nov, 2021 You are reading this latest preprint version Research Square lets you share your work early, gain feedback from the community, and start making changes to your manuscript prior to peer review in a journal. As a division of Research Square Company, we’re committed to making research communication faster, fairer, and more useful. We do this by developing innovative software and high quality services for the global research community. Our growing team is made up of researchers and industry professionals working together to solve the most critical problems facing scientific publishing. Also discoverable on Platform About Our Team In Review Editorial Policies Advisory Board Help Center Resources Author Services Accessibility API Access RSS feed Manage Cookie Preferences © Research Square 2026 | ISSN 2693-5015 (online) Privacy Policy Terms of Service Do Not Sell My Personal Information {"props":{"pageProps":{"initialData":{"identity":"rs-1060955","acceptedTermsAndConditions":true,"allowDirectSubmit":false,"archivedVersions":[],"articleType":"Research Article","associatedPublications":[],"authors":[{"id":63638692,"identity":"a949c32a-7960-4ed1-baea-c7b4a3bd4a7a","order_by":0,"name":"Freya Tyrer","email":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAAyAQMAAABI0h/eAAAABlBMVEX///8AAABVwtN+AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAApUlEQVRIiWNgGAWjYBAC9gYGxgcfCiAcxgZitPAcYGY2nGFAohY2aR7StLCfPyBtY2DDwN9+gE1yBlFaeJIZjHMM0hgkziSwSW4gRou9BDNDco7BYQaGGwxskg+IsgWo5bCFwX8GeVK0MDYzGBxgMABpIcphQL8YM/YYJPMYnklstiTO++wHn//4UWEnJ3f88MGbPcRogWslNlZGwSgYBaNgFBADAH30KIpFA+B2AAAAAElFTkSuQmCC","orcid":"","institution":"University of Leicester","correspondingAuthor":true,"submittingAuthor":false,"prefix":"","firstName":"Freya","middleName":"","lastName":"Tyrer","suffix":""},{"id":63638694,"identity":"962af1a0-9e2f-4eba-a697-39b58f3a6137","order_by":1,"name":"Krishnan Bhaskaran","email":"","orcid":"","institution":"London School of Hygiene \u0026 Tropical Medicine","correspondingAuthor":false,"submittingAuthor":false,"prefix":"","firstName":"Krishnan","middleName":"","lastName":"Bhaskaran","suffix":""},{"id":63638696,"identity":"14e34c9f-7f90-407b-99a4-25c7b9e40678","order_by":2,"name":"Mark J Rutherford","email":"","orcid":"","institution":"University of Leicester","correspondingAuthor":false,"submittingAuthor":false,"prefix":"","firstName":"Mark","middleName":"J","lastName":"Rutherford","suffix":""}],"badges":[],"createdAt":"2021-11-08 14:29:15","currentVersionCode":1,"declarations":"","doi":"10.21203/rs.3.rs-1060955/v1","doiUrl":"https://doi.org/10.21203/rs.3.rs-1060955/v1","draftVersion":[],"editorialEvents":[],"editorialNote":"","failedWorkflow":false,"files":[{"id":15691600,"identity":"ccfb4755-ff7f-4c74-a18d-e2820f4777aa","added_by":"auto","created_at":"2021-11-18 21:31:50","extension":"png","order_by":1,"title":"Figure 1","display":"","copyAsset":false,"role":"figure","size":40375,"visible":true,"origin":"","legend":"Diagram of exposed person-time under five methods for studies of life-long conditions using electronic health record data","description":"","filename":"Onlinefloatimage1.png","url":"https://assets-eu.researchsquare.com/files/rs-1060955/v1/2e57882a88223e2776821542.png"},{"id":15691601,"identity":"1f966c30-2605-4b24-b5b5-45ba9530ca15","added_by":"auto","created_at":"2021-11-18 21:31:50","extension":"png","order_by":2,"title":"Figure 2","display":"","copyAsset":false,"role":"figure","size":58710,"visible":true,"origin":"","legend":"Life expectancy by calendar period in people with intellectual disabilities under the five methods to handle immortal time bias ","description":"","filename":"Onlinefloatimage2.png","url":"https://assets-eu.researchsquare.com/files/rs-1060955/v1/a4e98e046197c38ef5bdad55.png"},{"id":15691602,"identity":"d9c807f2-e961-40d2-9627-0cfd05e2bd68","added_by":"auto","created_at":"2021-11-18 21:31:50","extension":"png","order_by":3,"title":"Figure 3","display":"","copyAsset":false,"role":"figure","size":40291,"visible":true,"origin":"","legend":"Percentage of exposed individuals by year of observation a, b.\na Method 4 can contain more than one individual where first intellectual disability diagnosis date is greater than the date of entry (e.g. a person entering the cohort in 2000 but diagnosed first with intellectual disability in 2006 enters the cohort without intellectual disabilities in 2000 and enters again with intellectual disabilities in 2006).\nb Please note that, as a random sample of the general population without intellectual disabilities for the comparison group, this graph cannot be interpreted as representing prevalence of intellectual disability.","description":"","filename":"Onlinefloatimage3.png","url":"https://assets-eu.researchsquare.com/files/rs-1060955/v1/12bf53e228f5fa670d823b0c.png"},{"id":15691603,"identity":"d5482f00-793b-4b8f-8847-51ac120ae301","added_by":"auto","created_at":"2021-11-18 21:31:50","extension":"png","order_by":4,"title":"Figure 4","display":"","copyAsset":false,"role":"figure","size":53298,"visible":true,"origin":"","legend":"Life expectancy by calendar period in people without intellectual disabilities under the five methods to handling immortal time bias ","description":"","filename":"Onlinefloatimage4.png","url":"https://assets-eu.researchsquare.com/files/rs-1060955/v1/cd0d9c7350fb1130c627ae1a.png"},{"id":15691605,"identity":"969fc7ca-20ba-40db-8e1e-a52eb599b30b","added_by":"auto","created_at":"2021-11-18 21:31:59","extension":"pdf","order_by":0,"title":"","display":"","copyAsset":false,"role":"manuscript-pdf","size":1902960,"visible":true,"origin":"","legend":"","description":"","filename":"manuscript.pdf","url":"https://assets-eu.researchsquare.com/files/rs-1060955/v1/582d5db0-e1ed-459d-8835-035177ec19b9.pdf"},{"id":15691604,"identity":"bf3458ab-5095-440f-8178-cd149ccd16ed","added_by":"auto","created_at":"2021-11-18 21:31:50","extension":"docx","order_by":2,"title":"","display":"","copyAsset":false,"role":"supplement","size":170328,"visible":true,"origin":"","legend":"","description":"","filename":"TyrerSupplementaryMaterialFINAL112021.docx","url":"https://assets-eu.researchsquare.com/files/rs-1060955/v1/239c814cb404c5cdb692da0c.docx"}],"financialInterests":"No competing interests reported.","formattedTitle":"Immortal time bias for life-long conditions in retrospective observational studies using electronic health records","fulltext":[{"header":"Background","content":"\u003cp\u003eElectronic health records are increasingly being used to conduct real-world observational studies to determine the association between a treatment or exposure and outcome. However, such studies are prone to a number of biases. In particular, immortal time bias is a recognised limitation of observational studies [\u003cspan additionalcitationids=\"CR2\" citationid=\"CR1\" class=\"CitationRef\"\u003e1\u003c/span\u003e\u0026ndash;\u003cspan citationid=\"CR3\" class=\"CitationRef\"\u003e3\u003c/span\u003e] that has come to the forefront in recent years owing to the increasing complexity of observational cohort designs [\u003cspan additionalcitationids=\"CR5 CR6 CR7\" citationid=\"CR4\" class=\"CitationRef\"\u003e4\u003c/span\u003e\u0026ndash;\u003cspan citationid=\"CR8\" class=\"CitationRef\"\u003e8\u003c/span\u003e]. This bias occurs where there is a period of time during follow up where an event or death cannot occur [\u003cspan citationid=\"CR4\" class=\"CitationRef\"\u003e4\u003c/span\u003e]. It is often discussed in the context of pharmacoepidemiology where a delay between entering the study and being allocated a given therapy at baseline creates an \u0026lsquo;immortal\u0026rsquo; period for the subject thereby creating an apparent advantage for the group that is given the therapy. In these types of study, immortal time bias can generally be reduced, if not eliminated completely, by adapting the analysis; for example, through application of prescription time-distribution matching (PTDM), time-dependent or sequential Cox approaches, or landmark analyses [\u003cspan additionalcitationids=\"CR10\" citationid=\"CR9\" class=\"CitationRef\"\u003e9\u003c/span\u003e\u0026ndash;\u003cspan citationid=\"CR11\" class=\"CitationRef\"\u003e11\u003c/span\u003e].\u003c/p\u003e \u003cp\u003eHowever, immortal time bias is not specific to pharmacoepidemiology studies and can represent a significant problem where the exposure is a life-long condition or disability. Whilst it may be difficult for some to consider a life-long condition to be an exposure measure, this is the best way to conceptualise factors associated with the outcome of interest for epidemiological purposes. Where the exposure is life-long, it may not be possible to completely control for the effects of immortal time bias in the design or analysis. We demonstrate this using an example of electronic health record data of life expectancy among patients with and without intellectual disabilities from the UK Clinical Practice Research Datalink (CPRD). Our findings may also have applicability to long-term conditions with delays in diagnosis or prolonged latency periods.\u003c/p\u003e"},{"header":"Methods","content":"\u003cdiv id=\"Sec3\" class=\"Section2\"\u003e \u003ch2\u003eSource of data\u003c/h2\u003e \u003cp\u003eFor this example, we used the Clinical Practice Research Datalink (CPRD GOLD), linked (person-level) with hospital episode statistics (HES) and death registrations from the Office for National Statistics (approved study protocol number: 19_267RA3). The CPRD is an electronic health record research database of more than 11.3 million patients, broadly representative of the national population in terms of age, gender, and ethnicity [\u003cspan citationid=\"CR12\" class=\"CitationRef\"\u003e12\u003c/span\u003e], from general practice (GP) surgeries in the UK \u0026ndash; of which approximately 75% in England consent to linkage to deaths data. The study followed the Reporting of studies Conducted using Observational Routinely-collected health Data (RECORD) checklist [\u003cspan citationid=\"CR13\" class=\"CitationRef\"\u003e13\u003c/span\u003e] (see supplementary \u003cb\u003eTable S1\u003c/b\u003e).\u003c/p\u003e \u003cp\u003eDiagnostic codes used in this study are reported in supplementary \u003cb\u003eTable S2\u003c/b\u003e. The initial extract from the CPRD has been described previously [\u003cspan citationid=\"CR14\" class=\"CitationRef\"\u003e14\u003c/span\u003e] and was based on the following inclusion criteria: registered at the GP surgery at any time between 1 Jan 2000 to 29 Sept 2019, and 10 years old or over to account for delays in reporting of diagnoses of intellectual disability in children [\u003cspan citationid=\"CR15\" class=\"CitationRef\"\u003e15\u003c/span\u003e]. An additional 23 patients with Angelman or Cockayne syndrome were added in August 2021 after an amendment to the original protocol (approved March 2020 but delayed during the COVID period). A random sample of people without intellectual disabilities was used for the comparison group with the same eligibility criteria (but without a diagnosis of intellectual disability). The initial extract included 33,867 people with intellectual disabilities (the exposed population) and a random sample of 980,586 people without intellectual disabilities (the unexposed population), although population sizes varied by the immortal time bias approach adopted. The baseline characteristics of the study populations under the five approaches are shown in supplementary \u003cb\u003eTable S3\u003c/b\u003e.\u003c/p\u003e \u003cp\u003e \u003cb\u003eExposure/control definitions to handling immortal time bias under five different approaches\u003c/b\u003e \u003c/p\u003e \u003cp\u003eWe present five approaches to defining cohort entry time when calculating life expectancy in people with and without intellectual disabilities and describe the impact that each approach has on life expectancy estimates in the context of immortal time bias. All methods involved changes in the handling of the exposed population. The second and third method also involved changes to the unexposed (control) population. The five methods compared are summarised in \u003cb\u003eFigure 1\u003c/b\u003e.\u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003c/div\u003e \u003cdiv id=\"Sec4\" class=\"Section2\"\u003e \u003ch2\u003eMethod 1: Treating immortal time as observation time\u003c/h2\u003e \u003cp\u003eMethod 1 involved applying no additional cohort entry criteria to either exposed or unexposed populations such that both populations are treated in the same way.\u003c/p\u003e \u003c/div\u003e \u003cdiv id=\"Sec5\" class=\"Section2\"\u003e \u003ch2\u003eMethod 2: Excluding immortal time before date of first exposure diagnosis\u003c/h2\u003e \u003cp\u003eMethod 2 involved adding date of intellectual disability diagnosis to the entry criteria such that date of entry into the cohort was set to the date of intellectual disability diagnosis if this was \u003cem\u003eafter\u003c/em\u003e the entry criteria defined for Method 1 (\u003cb\u003eFigure 1\u003c/b\u003e). The comparison group patients entered at the date of registration/start of follow-up, as in Method 1. This approach has been described in pharmacoepidemiology studies in the context of excluding immortal time prior to treatment initiation in the treated group [\u003cspan citationid=\"CR10\" class=\"CitationRef\"\u003e10\u003c/span\u003e].\u003c/p\u003e \u003c/div\u003e \u003cdiv id=\"Sec6\" class=\"Section2\"\u003e \u003ch2\u003eMethod 3: Matching cohort entry to first exposure diagnosis\u003c/h2\u003e \u003cp\u003eThe third approach involved excluding immortal time, as in Method 2, but then matching the exposed individuals to unexposed individuals at a 1:10 ratio by date of cohort entry. This approach was designed to give a more balanced distribution of cohort entry date than Method 2 (in which entry dates for the comparison group tended to be earlier by design). The method is similar to the PTDM approach described for pharmacoepidemiology studies where dates of initiating therapy vary between treatment groups [\u003cspan citationid=\"CR10\" class=\"CitationRef\"\u003e10\u003c/span\u003e, \u003cspan citationid=\"CR16\" class=\"CitationRef\"\u003e16\u003c/span\u003e, \u003cspan citationid=\"CR17\" class=\"CitationRef\"\u003e17\u003c/span\u003e]. The difference between this and our approach is that PTDM involves differentiating between the \u0026lsquo;never treated\u0026rsquo; and \u0026lsquo;ever treated\u0026rsquo; groups such that cohort entry dates in the \u0026lsquo;never treated\u0026rsquo; group are shifted to the date that the \u0026lsquo;ever treated\u0026rsquo; group first started their treatment [\u003cspan citationid=\"CR10\" class=\"CitationRef\"\u003e10\u003c/span\u003e]. The approach, therefore, requires conditioning on the future and depends on length of the follow-up period since those in the \u0026lsquo;never treated\u0026rsquo; group are allowed to move to the \u0026lsquo;ever treated\u0026rsquo; group if the follow-up period is sufficiently long. Instead, our approach involved matching cohort entry dates against unexposed individuals, which included \u0026lsquo;never exposed\u0026rsquo; individuals (i.e. without intellectual disabilities; PTDM approach) and \u0026lsquo;ever exposed\u0026rsquo; individuals (i.e. people with intellectual disabilities \u003cem\u003eprior to\u003c/em\u003e their first diagnosis).\u003c/p\u003e \u003cp\u003eTen matches for each exposed individual were initially selected from the pool of unexposed individuals who entered the study within 150 days (to balance follow-up time) prior to the index date (i.e. date of cohort entry for exposed individuals). Where all 10 matches could not be found within this time constraint (n=24 patients), controls were selected from the pool of unexposed individuals who entered at any time prior to the index date and were still at risk. Dates of cohort entry in the unexposed population were then updated to the index date.\u003c/p\u003e \u003c/div\u003e \u003cdiv id=\"Sec7\" class=\"Section2\"\u003e \u003ch2\u003eMethod 4: Excluding time before proxy date of entering first exposure diagnosis\u003c/h2\u003e \u003cp\u003eThe fourth approach involved incorporating the date that the exposed population\u0026rsquo;s diagnosis was assumed to be entered by the physician onto the GP surgery\u0026rsquo;s electronic health record system. This is not typically an issue with pharmacoepidemiology studies because the date of prescribing treatment is usually close to the date that the individual commences the treatment. However, for a life-long condition such as intellectual disabilities, physicians may choose to backdate the first exposure diagnosis to the patient\u0026rsquo;s date of birth. The CPRD provides a linked variable (\u0026lsquo;system date\u0026rsquo;) for each corresponding diagnosis date which may correspond to the date that the diagnosis was entered. However, this variable is also updated when a person transfers to the GP surgery, when there is an update in the GP software system used, or when the record is amended [\u003cspan citationid=\"CR18\" class=\"CitationRef\"\u003e18\u003c/span\u003e] which may lead to erroneous loss of person-years in the exposed group. To investigate this, date of entry was set to the date attached to the first intellectual disability diagnosis if it was \u003cspan type=\"Underline\" class=\"Underline\" name=\"Emphasis\"\u003elater\u003c/span\u003e than the date of entry defined in Method 1 or Method 2 (by design; Figure 1). In this method, the unexposed patients entered at the date of registration/start of follow-up period as in Method 1.\u003c/p\u003e \u003c/div\u003e \u003cdiv id=\"Sec8\" class=\"Section2\"\u003e \u003ch2\u003eMethod 5: Treating exposure as a time-dependent measure\u003c/h2\u003e \u003cp\u003eThe final approach to handling immortal time bias involved treating the exposure as a time-dependent variable. This is perhaps the most common approach used in pharmacoepidemiology studies to control for immortal time bias and involves adapting the analysis so that individuals\u0026rsquo; exposure to a therapy is allowed to change during the follow-up period [\u003cspan citationid=\"CR10\" class=\"CitationRef\"\u003e10\u003c/span\u003e, \u003cspan citationid=\"CR17\" class=\"CitationRef\"\u003e17\u003c/span\u003e]. It can be used to investigate the effect of individual therapies where more than one is under investigation [\u003cspan citationid=\"CR19\" class=\"CitationRef\"\u003e19\u003c/span\u003e] and is also advocated as a means of avoiding immortal time bias caused by temporal variability in the onset of certain conditions, such as the menopause [\u003cspan citationid=\"CR3\" class=\"CitationRef\"\u003e3\u003c/span\u003e]. In this study, the approach involved allowing individuals in the exposed population to contribute to the unexposed population until their first intellectual disability diagnosis whereupon they started contributing to the exposed population (\u003cb\u003eFigure 1\u003c/b\u003e). The advantage of this method is that people with intellectual disabilities contribute person years in the same way as those who died before they had the opportunity to have an intellectual disability diagnosis.\u003c/p\u003e \u003c/div\u003e\u003ch2\u003eStatistical Analyses\u003c/h2\u003e\u003cp\u003eFor the purposes of this work, data were split into the following calendar periods: 2000\u0026ndash;2004; 2005\u0026ndash;2009; 2010\u0026ndash;2014; and 2015\u0026ndash;2019. Date of entry into the cohort was defined as the latest date according to the person and practice\u0026rsquo;s characteristics: 01 Jan 2000; date of registration with the GP practice; date the practice was defined as being up to standard (using the CPRD\u0026rsquo;s own quality indicators); or date the individual turned 10 years old (to align with the eligibility criteria). Additional entry cohort criteria were specified according to the approach used. Date of exit from each calendar period was calculated in the same way throughout as: date of death; date of end of calendar period; date of last practice update (latest 29 Sep 2019); or date of transfer out of practice, whichever was first. If the patient died after their date of exit from the cohort, they were censored on the date of exit.\u003c/p\u003e \u003cp\u003eTo calculate life expectancy (additional life years expected to live) in both the exposed and unexposed populations, the Chiang\u0026rsquo;s abridged life table approach [\u003cspan additionalcitationids=\"CR21 CR22\" citationid=\"CR20\" class=\"CitationRef\"\u003e20\u003c/span\u003e\u0026ndash;\u003cspan citationid=\"CR23\" class=\"CitationRef\"\u003e23\u003c/span\u003e] was used. This approach has been described in detail elsewhere [\u003cspan citationid=\"CR23\" class=\"CitationRef\"\u003e23\u003c/span\u003e], but briefly involves stratifying by exposed and unexposed status and constructing a table of probabilities that individuals will survive in a defined age interval conditional on surviving to the start of that age interval. The product of probabilities is then used to calculate survival to each age interval and life expectancy is estimated as the cumulative number of years lived using information from all subsequent age intervals divided by the population at the start of the given age interval. Five-year-period life expectancies were estimated to highlight the immortal bias findings, allowing that there may have been period and cohort effects during each five-year calendar period.\u003c/p\u003e \u003cp\u003eConfidence intervals for the derived life expectancies were calculated using the Chiang II approach as advocated by Eayres \u0026amp; Williams [\u003cspan citationid=\"CR24\" class=\"CitationRef\"\u003e24\u003c/span\u003e]. This involves adding a correction term to the original Chiang variance to account for the under-estimation of the \u0026lsquo;true\u0026rsquo; variance at the last age interval by assuming variance is zero rather than basing the estimate on length of survival [\u003cspan citationid=\"CR25\" class=\"CitationRef\"\u003e25\u003c/span\u003e].\u003c/p\u003e"},{"header":"Results","content":"\u003cp\u003e \u003cb\u003eFigure 2\u003c/b\u003e summarises the life expectancy findings for the exposed population under the five methods. Each of the methods is described in more detail below.\u003c/p\u003e \u003ch2\u003eMethod 1: Treating Immortal Time As Observation Time\u003c/h2\u003e\u003cp\u003eWe can see from \u003cb\u003eFigure 2\u003c/b\u003e that there is an apparent survival advantage in the first calendar period for the exposed population using Method 1. At age 10 years, for example, the estimated additional years expected to live in 2000\u0026ndash;2004 was 65.6 (95% confidence interval [CI] 63.6,67.6) compared with 59.9 (58.8,60.9), 58.0 (57.1,58.9) and 58.2 (56.8,59.7) in the subsequent calendar periods. In the first calendar period and under Method 1, 38.5% of person-time (\u003cem\u003en=\u003c/em\u003e21,506 person years) in the cohort with intellectual disabilities was \u003cem\u003ebefore\u003c/em\u003e the first intellectual disability diagnosis, compared with 23.4%, 9.1% and 4.8% in the second, third and fourth calendar periods respectively. Therefore, person-time was accrued for the exposed population during which a death could not occur.\u003c/p\u003e \u003cp\u003e \u003cb\u003eMethod 2: Excluding immortal time before date of first exposure diagnosis\u003c/b\u003e \u003c/p\u003e \u003cp\u003eUnder Method 2, we can now see that the life expectancy advantages in the first calendar period are not as apparent. However, life expectancy remains slightly higher compared with the other calendar periods. This could be a real effect, but we speculate that some of the GP surgeries may have backdated intellectual disability diagnoses to date of birth during some key periods in response to policy initiatives in England (see discussion). In the first calendar period, 14.5% of person time (\u003cem\u003en=\u003c/em\u003e8,091 person years) had a backdated intellectual diagnosis to year of birth. This compares with 16.2% and 17.0% in the second and third calendar period during which many of the policy initiatives occurred and 14.6% in the final calendar period. We are unable to determine whether these records were updated when the patient was registered with the practice (when immortal time bias would not present a problem) or at some point during the registration period (see \u003cb\u003eMethod 4\u003c/b\u003e for one approach to handling this).\u003c/p\u003e \u003cp\u003eThere is also an additional problem that, by excluding immortal time from the observation period, we introduce time-related bias by forcing many of the exposed individuals to enter later than the unexposed population (\u003cb\u003eFigure 1\u003c/b\u003e). Under Method 2, the median length of follow-up was shorter in the exposed population (4.6yrs vs 5.0 yrs; \u003cb\u003eTable S3\u003c/b\u003e). The percentage of people with intellectual disabilities in the entire cohort (i.e. combining the cohort with and without intellectual disability) was also smaller in the first year of cohort entry period, increasing thereafter (\u003cb\u003esee Figure 3\u003c/b\u003e). Bias introduced from this approach is believed to be negligible if the person-years in the exposed cohort is much smaller than the person-years in the unexposed cohort [\u003cspan citationid=\"CR10\" class=\"CitationRef\"\u003e10\u003c/span\u003e], but this does mean that a smaller sample of people with intellectual disabilities are investigated in earlier cohort periods. The next method attempts to evaluate this using matching techniques.\u003c/p\u003e \u003ch2\u003eMethod 3: Matching Cohort Entry To First Exposure Diagnosis\u003c/h2\u003e\u003cp\u003eIt can be seen that matching on cohort entry in addition to excluding immortal time before date of first intellectual disability diagnosis (Method 2) resulted in a more balanced distribution of people in the exposed population over the observation period (\u003cb\u003eFigure 3\u003c/b\u003e). As expected, the life expectancy calculations for exposed individuals were identical to Method 2 (\u003cb\u003eFigure 2\u003c/b\u003e). Life expectancy was also similar in the unexposed group (\u003cb\u003eFigure 4\u003c/b\u003e), although person-time contribution was smaller because 65.5% (\u003cem\u003en\u003c/em\u003e=641,916) of individuals from this population were discarded from the analysis because they were not matched.\u003c/p\u003e \u003cp\u003e \u003c/p\u003e \u003cp\u003e \u003cb\u003eMethod 4: Excluding time before proxy date of entering first exposure diagnosis\u003c/b\u003e \u003c/p\u003e \u003cp\u003eMethod 4, implemented under the assumption that the CPRD\u0026rsquo;s system date represented the date that the physician entered the intellectual disability diagnosis, produced the lowest life expectancy estimates for people with intellectual disabilities in the earlier calendar year periods (\u003cb\u003eFigure 2\u003c/b\u003e). All calendar periods, except the last calendar period, showed a markedly lower life expectancy for people with intellectual disabilities than the other two methods. The graphs show that life expectancy estimates in the general population for this method increased only slightly over time (\u003cb\u003eFigure 4\u003c/b\u003e) with life expectancy in people with intellectual disabilities showing more dramatic improvements (\u003cb\u003eFigure 2\u003c/b\u003e).\u003c/p\u003e \u003cp\u003eHowever, this method led to a substantial loss in person-year contributions (median follow-up period 2.2yrs vs 5.0yrs) in the earlier cohort periods (\u003cb\u003eFigure 3\u003c/b\u003e). During the first calendar period (2000\u0026ndash;2004), almost three-quarters of person-year contributions were lost compared with Method 1 (78.4%, \u003cem\u003en\u003c/em\u003e=43,787yrs) and two-thirds compared with Method 2 (64.9%, \u003cem\u003en\u003c/em\u003e=22,281yrs). Person-years lost gradually lowered for the subsequent calendar periods (64.1% and 53.3%, respectively, for 2005\u0026ndash;2009, 41.2% and 35.3% for 2010\u0026ndash;2014; 24.0% and 20.2% for 2015\u0026ndash;2019). We can see, therefore, that people with a good prognosis (i.e. surviving long enough to have a system update at some later point) may have systematically been removed. The supplementary \u003cb\u003eFigure S1\u003c/b\u003e shows the distribution of system dates that were later than the first intellectual disability diagnosis. There were clusters of system dates linked to intellectual disability diagnoses at specific times that appeared to correspond to software system updates, particularly as some (\u003cem\u003en\u003c/em\u003e=623 individuals) occurred after the individual had died or left the practice (see \u003cb\u003eFigure S1\u003c/b\u003e). Moreover, the use of system date as a proxy date for entering the cohort is not advocated for CPRD data because it is not sufficiently specific [\u003cspan citationid=\"CR26\" class=\"CitationRef\"\u003e26\u003c/span\u003e].\u003c/p\u003e\u003ch2\u003eMethod 5: Treating Exposure As A Time-dependent Measure\u003c/h2\u003e\u003cp\u003eThe final approach, treating the exposure as a time-dependent variable, showed very similar results to Method 2 and 3 for the exposed population (\u003cb\u003eFigure 2\u003c/b\u003e) and marginal differences to the life expectancy calculations in the unexposed population (\u003cb\u003eFigure 4\u003c/b\u003e) because the additional person-year contribution from the exposed population was relatively small. As before, this method has similar disadvantages to Method 2 in that we force exposed individuals to enter later than the unexposed population. In fact, the unexposed group contribute partially more to the earlier time periods than for Method 2.\u003c/p\u003e"},{"header":"Discussion","content":"\u003cp\u003eThrough the use of electronic health records data, we demonstrate that immortal time presents a significant problem for time-to-event analyses where one or more of the exposures is a life-long condition or disability. Treating immortal time as exposure time (Method 1) led to an over-estimation of life expectancy advantages in the exposed population. Even when immortal time was excluded or treated as unexposed time (Methods 2, 3 and 5), some residual immortal time bias may have remained where diagnoses had been backdated to date of birth. Using proxy date of physician\u0026rsquo;s entry of exposure diagnosis (Method 4) resulted in a substantial loss of person-time and subjects, and did not appear to be used in a consistent way in our data source. Our findings highlight that interpretation is key for any study where the exposure can occur after the start of the follow-up period and consideration of immortal time bias is needed to avoid drawing incorrect conclusions.\u003c/p\u003e \u003cp\u003eTo our knowledge, this is the first time that the issue of immortal time bias has been studied in detail for life-long conditions or disabilities, although there is a wealth of literature that discusses immortal time bias in the context of pharmacoepidemiology studies. This literature largely corresponds with Methods 3 and 5 in our study by recommending the control of immortal time bias through PTDM or time-dependent approaches that allow exposure status to vary [\u003cspan citationid=\"CR9\" class=\"CitationRef\"\u003e9\u003c/span\u003e, \u003cspan citationid=\"CR10\" class=\"CitationRef\"\u003e10\u003c/span\u003e, \u003cspan citationid=\"CR17\" class=\"CitationRef\"\u003e17\u003c/span\u003e]. Time-dependent analyses have also been recommended to control for the effects of immortal time bias where time of onset of certain health conditions varies, such as the menopause [\u003cspan citationid=\"CR3\" class=\"CitationRef\"\u003e3\u003c/span\u003e]. The reason that the issue of immortal time bias for life-long conditions/disabilities has not been considered before may be that it seems conceptually inappropriate to consider someone with a life-long condition to be \u0026lsquo;disease-free\u0026rsquo; for any period of observation. However, this is likely to be the best solution for electronic health records that do not follow up individuals from birth.\u003c/p\u003e \u003cp\u003eThe magnitude of immortal time bias is reported to be related to mean interval between date of cohort entry and date of (recording of) exposure, proportion of exposed study participants, and length of study follow-up [\u003cspan citationid=\"CR27\" class=\"CitationRef\"\u003e27\u003c/span\u003e]. The prevalence of intellectual disability, as diagnosed in primary care, is approximately 0.5% [\u003cspan citationid=\"CR28\" class=\"CitationRef\"\u003e28\u003c/span\u003e] but the current study population had a larger proportion of exposed individuals (~3%) because only a proportion of the unexposed population was selected for comparison. The cohort period of almost 20 years also increased the likely bias introduced by immortal time. Similarly, the choice of intellectual disability as an example may have led to substantially more immortal time bias than some other conditions or disabilities. Intellectual disability itself does not require treatment so, for administrative purposes, may not need to be entered onto GP systems if it is already known or reported in the patients\u0026rsquo; notes. This changed in 2004, with the introduction of the Quality Outcomes Framework (QOF) and incentives to report long-term conditions including intellectual disabilities [\u003cspan citationid=\"CR29\" class=\"CitationRef\"\u003e29\u003c/span\u003e, \u003cspan citationid=\"CR30\" class=\"CitationRef\"\u003e30\u003c/span\u003e], closely followed by policy drives to maintain practice-level intellectual disability registers in 2006 (adults) and 2014 (children) [\u003cspan additionalcitationids=\"CR32\" citationid=\"CR31\" class=\"CitationRef\"\u003e31\u003c/span\u003e\u0026ndash;\u003cspan citationid=\"CR33\" class=\"CitationRef\"\u003e33\u003c/span\u003e], and annual intellectual disability health checks in 2008 (adults) and 2014 (14\u0026ndash;17 year olds) [\u003cspan citationid=\"CR31\" class=\"CitationRef\"\u003e31\u003c/span\u003e, \u003cspan citationid=\"CR33\" class=\"CitationRef\"\u003e33\u003c/span\u003e]. We cannot identify another condition or disability where a policy drive has been so influential in changing practice in primary care. However, increased awareness is known to \u0026lsquo;artificially\u0026rsquo; increase incidence of certain conditions over time, such as autism and coeliac disease [\u003cspan citationid=\"CR34\" class=\"CitationRef\"\u003e34\u003c/span\u003e, \u003cspan citationid=\"CR35\" class=\"CitationRef\"\u003e35\u003c/span\u003e]. Our findings may also have applications for conditions where there is a delay between onset and diagnosis, such as Crohn\u0026rsquo;s disease or rare diseases [\u003cspan citationid=\"CR36\" class=\"CitationRef\"\u003e36\u003c/span\u003e, \u003cspan citationid=\"CR37\" class=\"CitationRef\"\u003e37\u003c/span\u003e].\u003c/p\u003e \u003cp\u003eFinally, we have shown that attempts to control for immortal time bias in the design or analysis stage does not guarantee unbiased results. However, treating immortal time as observation time, thereby ignoring immortal time bias completely, is not recommended as we have shown that this will lead to spurious results owing to the \u0026lsquo;misclassification of immortal time\u0026rsquo; [\u003cspan citationid=\"CR10\" class=\"CitationRef\"\u003e10\u003c/span\u003e]. Methods that start follow-up for exposed individuals at diagnosis (Methods 2, 3 and 5) all produce fairly similar findings and appear to solve the main theoretical problem, so any of these approaches could be adopted without a reference standard on which to compare. Although these methods all showed similar results for this study, Methods 3 and 5 have conceptual advantages over Method 2 because they do not involve conditioning on the future [\u003cspan citationid=\"CR38\" class=\"CitationRef\"\u003e38\u003c/span\u003e]. In other words, they allow exposed individuals to contribute to the unexposed population prior to their first diagnosis when they are still \u0026ldquo;at risk\u0026rdquo;. Incorporating date of assumed entry of exposure diagnosis by the physician (Method 4) may have potential in some data sources but we would not recommend this as a primary analysis for studies that use the CPRD owing to the apparent inconsistent use of the system date field that we used to capture date of record entry and substantial loss to person-time and subjects. Studies of electronic health records where date of entry of diagnosis is more reliably recorded may be considered for this purpose. This approach may also be valuable for conducting sensitivity analyses where immortal time bias is not perceived to be adequately controlled. Finally, we recommend adding an assessment of immortal time bias as a key component of critical appraisal tools for electronic health record studies.\u003c/p\u003e"},{"header":"Declarations","content":"\u003cp\u003e\u003cstrong\u003eEthics approval\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThis study used an established research database (CPRD) under a multi-study licence agreement with the UK Medicines and Healthcare products Regulatory Agency. The CPRD has ethical approval as a research database for anonymised data (East Midlands-Derby, REC reference number 05/MRE04/87). The protocol for this research was approved by the CPRD\u0026rsquo;s Independent Scientific Advisory Committee (ISAC) (protocol number: 19_267). All methods were carried out in accordance with relevant guidelines and regulations.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eConsent for publication\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eNot applicable\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eAvailability of data and materials\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eData for this study were obtained from the Clinical Practice Research Datalink (CPRD), provided by the UK Medicines and Healthcare products Regulatory Agency. The authors\u0026rsquo; licence for using these data does not allow sharing of raw data with third parties. Information about access to CPRD data is available here: https://www.cprd.com/research-applications. Researchers should contact the ISAC Secretariat at [email protected] for further details.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eCompeting interests\u0026nbsp;\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eNone declared\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eFunding\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eThis research was funded from a Baily Thomas Doctoral Fellowship award (TRUST/VC/AC/SG/5366-8393) and the Wellcome Trust (107731/Z/15/Z and 220283/Z/20/Z). For the purpose of open access, the author has applied a CC BY public copyright licence to any Author Accepted Manuscript version arising from this submission. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.\u0026nbsp;\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eAuthors\u0026rsquo; contributions\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eFT led on the planning, conduct, design, reporting of the work, funding acquisition, data acquisition and analysis, and interpretation of data for this work. KB contributed to the planning, conduct, data analysis, interpretation of data and reporting. MR contributed to the planning, conduct, design, reporting of the work, funding acquisition, data acquisition and analysis, and interpretation of data.\u003c/p\u003e\n\u003cp\u003e\u003cstrong\u003eAcknowledgments\u003c/strong\u003e\u003c/p\u003e\n\u003cp\u003eWe gratefully acknowledge Rachael Williams, Observational Research Manager at the Clinical Practice Research Datalink (CPRD) for her valuable input and advice. We also acknowledge the Talk \u0026amp; Listen group (and facilitation by Pauline Ndigirwa), the Charnwood Action group, Amy Stanway, Sarah Stanyer, and Kate Dolan. The study is based in part on data from the CPRD GOLD database obtained under licence from the UK Medicines and Healthcare products Regulatory Agency. The provision of CPRD and linked data was through Leicester Real World Evidence (LRWE) Unit, which is funded by University of Leicester, National Institute for Health Research (NIHR) Applied Research Collaboration (ARC) East Midlands and Leicester NIHR Biomedical Research Centre. The interpretation and conclusions contained in this article are those of the authors alone and not necessarily those of the LRWE Unit, the NHS, the NIHR, or the Department of Health and Social Care. \u003c/p\u003e"},{"header":"References","content":"\u003cp\u003e1.\u0026nbsp; \u0026nbsp;\u0026nbsp;Farmer R, Mathur R, Bhaskaran K, Eastwood SV, Chaturvedi N, Smeeth L: \u003cstrong\u003ePromises and pitfalls of electronic health record analysis\u003c/strong\u003e. \u003cem\u003eDiabetologia\u0026nbsp;\u003c/em\u003e2018, \u003cstrong\u003e61\u003c/strong\u003e(6):1241-1248.\u003c/p\u003e\n\u003cp\u003e2.\u0026nbsp; \u0026nbsp;\u0026nbsp;Suissa S, Azoulay L: \u003cstrong\u003eMetformin and the risk of cancer: time-related biases in observational studies\u003c/strong\u003e. \u003cem\u003eDiabetes Care\u0026nbsp;\u003c/em\u003e2012, \u003cstrong\u003e35\u003c/strong\u003e(12):2665-2673.\u003c/p\u003e\n\u003cp\u003e3.\u0026nbsp; \u0026nbsp;\u0026nbsp;Yadav K, Lewis RJ: \u003cstrong\u003eImmortal time bias in observational studies\u003c/strong\u003e. \u003cem\u003eJournal of the American Medical Association\u0026nbsp;\u003c/em\u003e2021, \u003cstrong\u003e325\u003c/strong\u003e(7):686-687.\u003c/p\u003e\n\u003cp\u003e4.\u0026nbsp; \u0026nbsp;\u0026nbsp;L\u0026eacute;vesque LE, Hanley JA, Kezouh A, Suissa S: \u003cstrong\u003eProblem of immortal time bias in cohort studies: example using statins for preventing progression of diabetes\u003c/strong\u003e. \u003cem\u003eBritish Medical Journal\u0026nbsp;\u003c/em\u003e2010, \u003cstrong\u003e340\u003c/strong\u003e:b5087.\u003c/p\u003e\n\u003cp\u003e5.\u0026nbsp; \u0026nbsp;\u0026nbsp;Suissa S: \u003cstrong\u003eImmortal time bias in observational studies of drug effects\u003c/strong\u003e. \u003cem\u003ePharmacoepidemiology \u0026amp; Drug Safety\u0026nbsp;\u003c/em\u003e2007, \u003cstrong\u003e16\u003c/strong\u003e(3):241-249.\u003c/p\u003e\n\u003cp\u003e6.\u0026nbsp; \u0026nbsp;\u0026nbsp;Austin PC, Platt RW: \u003cstrong\u003eSurvivor treatment bias, treatment selection bias, and propensity scores in observational research\u003c/strong\u003e. \u003cem\u003eJournal of Clinical Epidemiology\u0026nbsp;\u003c/em\u003e2010, \u003cstrong\u003e632\u003c/strong\u003e:136\u0026ndash;138.\u003c/p\u003e\n\u003cp\u003e7.\u0026nbsp; \u0026nbsp;\u0026nbsp;Kim YG, Park DG, Moon SY, Jeon JY, Kim HJ, Kim DJ, Lee KW, Han SJ: \u003cstrong\u003eHypoglycemia and dementia risk in older patients with type 2 diabetes mellitus: A propensity-score matched analysis of a population-based cohort study\u003c/strong\u003e. \u003cem\u003eDiabetes \u0026amp; Metabolism\u0026nbsp;\u003c/em\u003e2020, \u003cstrong\u003e44\u003c/strong\u003e(1):125-133.\u003c/p\u003e\n\u003cp\u003e8.\u0026nbsp; \u0026nbsp;\u0026nbsp;Zaccardi F, Jacquot E, Cortese V, Tyrer F, Seidu S, Davies MJ, Khunti K: \u003cstrong\u003eComparative effectiveness of gliclazide modified release versus sitagliptin as second-line treatment after metformin monotherapy in patients with uncontrolled type 2 diabetes\u003c/strong\u003e. \u003cem\u003eDiabetes, Obesity \u0026amp; Metabolism\u0026nbsp;\u003c/em\u003e2020.\u003c/p\u003e\n\u003cp\u003e9.\u0026nbsp; \u0026nbsp;\u0026nbsp;Jones M, Fowler R: \u003cstrong\u003eImmortal time bias in observational studies of time-to-event outcomes\u003c/strong\u003e. \u003cem\u003eJournal of Critical Care\u0026nbsp;\u003c/em\u003e2016, \u003cstrong\u003e36\u003c/strong\u003e:195-199.\u003c/p\u003e\n\u003cp\u003e10.\u0026nbsp;\u0026nbsp;Karim ME, Gustafson P, Petkau J, Tremlett H, The Long-Term Benefits and Adverse Effects of Beta-Interferon for Multiple Sclerosis Study Group: \u003cstrong\u003eComparison of statistical approaches for dealing with immortal time bias in drug effectiveness studies\u003c/strong\u003e. \u003cem\u003eAmerican Journal of Epidemiology\u0026nbsp;\u003c/em\u003e2016, \u003cstrong\u003e184\u003c/strong\u003e(4):325-335.\u003c/p\u003e\n\u003cp\u003e11.\u0026nbsp;\u0026nbsp;Mi X, Hammill BG, Curtis LH, Lai EC, Setoguchi S: \u003cstrong\u003eUse of the landmark method to address immortal person-time bias in comparative effectiveness research: a simulation study\u003c/strong\u003e. \u003cem\u003eStatistics in Medicine\u0026nbsp;\u003c/em\u003e2016, \u003cstrong\u003e35\u003c/strong\u003e(26):4824-4836.\u003c/p\u003e\n\u003cp\u003e12.\u0026nbsp;\u0026nbsp;Herrett E, Gallagher AM, Bhaskaran K, Forbes H, Mathur R, van Staa T, Smeeth L: \u003cstrong\u003eData resource profile: Clinical Practice Research Datalink (CPRD)\u003c/strong\u003e. \u003cem\u003eInternational Journal of Epidemiology\u0026nbsp;\u003c/em\u003e2015, \u003cstrong\u003e44\u003c/strong\u003e(3):827-836.\u003c/p\u003e\n\u003cp\u003e13.\u0026nbsp;\u0026nbsp;Benchimol EI, Smeeth L, Guttmann A, Harron K, Moher D, Petersen I, S\u0026oslash;rensen HT, von Elm E, Langan SM: \u003cstrong\u003eThe REporting of studies Conducted using Observational Routinely-collected health Data (RECORD) statement\u003c/strong\u003e. \u003cem\u003ePLoS Mediciine\u0026nbsp;\u003c/em\u003e2015, \u003cstrong\u003e12\u003c/strong\u003e(10):e1001885.\u003c/p\u003e\n\u003cp\u003e14.\u0026nbsp;\u0026nbsp;Tyrer F, Morriss R, Kiani R, Gangadharan SK, Rutherford MJ: \u003cstrong\u003eMortality disparities and deprivation among people with intellectual disabilities in England: 2000\u0026ndash;2019\u003c/strong\u003e. \u003cem\u003eJournal of Epidemiology \u0026amp; Community Health\u0026nbsp;\u003c/em\u003e2021, \u003cstrong\u003edoi: 10.1136/jech-2021-216798\u003c/strong\u003e.\u003c/p\u003e\n\u003cp\u003e15.\u0026nbsp;\u0026nbsp;Florio T, Trollor J: \u003cstrong\u003eMortality among a cohort of persons with an intellectual disability in New South Wales, Australia\u003c/strong\u003e. \u003cem\u003eJournal of Applied Research in Intellectual Disabilities\u0026nbsp;\u003c/em\u003e2015, \u003cstrong\u003e28\u003c/strong\u003e(5):383-393.\u003c/p\u003e\n\u003cp\u003e16.\u0026nbsp;\u0026nbsp;Pariente A, Fourrier-R\u0026eacute;glat A, Ducruet T, Farrington P, B\u0026eacute;land SG, Dartigues JF, Moore N, Moride Y: \u003cstrong\u003eAntipsychotic use and myocardial infarction in older patients with treated dementia\u003c/strong\u003e. \u003cem\u003eArchives of Internal Medicine\u0026nbsp;\u003c/em\u003e2012, \u003cstrong\u003e172\u003c/strong\u003e(8):648-653.\u003c/p\u003e\n\u003cp\u003e17.\u0026nbsp;\u0026nbsp;Dekkers OM, Groenwold RHH: \u003cstrong\u003eWhen observational studies can give wrong answers: the potential of immortal time bias\u003c/strong\u003e. \u003cem\u003eEuropean Journal of Endocrinology\u0026nbsp;\u003c/em\u003e2021, \u003cstrong\u003e184\u003c/strong\u003e(1):E1-e4.\u003c/p\u003e\n\u003cp\u003e18.\u0026nbsp;\u0026nbsp;Leite A, Andrews NJ, Thomas SL: \u003cstrong\u003eAssessing recording delays in general practice records to inform near real-time vaccine safety surveillance using the Clinical Practice Research Datalink (CPRD)\u003c/strong\u003e. \u003cem\u003ePharmacoepidemiology \u0026amp; Drug Safety\u0026nbsp;\u003c/em\u003e2017, \u003cstrong\u003e26\u003c/strong\u003e(4):437-445.\u003c/p\u003e\n\u003cp\u003e19.\u0026nbsp;\u0026nbsp;Morriss R, Tyrer F, Zaccardi F, Khunti K: \u003cstrong\u003eSafety of antidepressants in a primary care cohort of adults with obesity and depression\u003c/strong\u003e. \u003cem\u003ePLoS ONE\u0026nbsp;\u003c/em\u003e2021, \u003cstrong\u003e16\u003c/strong\u003e:e0245722.\u003c/p\u003e\n\u003cp\u003e20.\u0026nbsp;\u0026nbsp;Chiang CL: \u003cstrong\u003eVariance and covariance of life table functions estimated from a sample of deaths\u003c/strong\u003e. In\u003cem\u003e.\u003c/em\u003e Washington: National Center for Health Statistics 1967: 1-7.\u003c/p\u003e\n\u003cp\u003e21.\u0026nbsp;\u0026nbsp;Chiang CL: \u003cstrong\u003eLife table and mortality analysis\u003c/strong\u003e. In\u003cem\u003e.\u003c/em\u003e Geneva: World Health Organization 1979: 1-399.\u003c/p\u003e\n\u003cp\u003e22.\u0026nbsp;\u0026nbsp;Chiang CL: \u003cstrong\u003eThe life table and its construction\u003c/strong\u003e. In: \u003cem\u003eIntroduction to stochastic processes in Biostatistics.\u003c/em\u003e edn. New York: John Wiley \u0026amp; Sons 1968: 189\u0026ndash;214.\u003c/p\u003e\n\u003cp\u003e23.\u0026nbsp;\u0026nbsp;Chiang CL: \u003cstrong\u003eThe life table and its applications\u003c/strong\u003e. Malabar: Robert E Krieger Publishing Company 1984.\u003c/p\u003e\n\u003cp\u003e24.\u0026nbsp;\u0026nbsp;Eayres D, Williams, E.S. : \u003cstrong\u003eEvaluation of methodologies for small area life expectancy estimation\u003c/strong\u003e. \u003cem\u003eJournal of Epidemiology \u0026amp; Community Health\u0026nbsp;\u003c/em\u003e2004, \u003cstrong\u003e58\u003c/strong\u003e:243\u0026ndash;249.\u003c/p\u003e\n\u003cp\u003e25.\u0026nbsp;\u0026nbsp;Lo E, Vatnik D, Benedetti A, Bourbeau R: \u003cstrong\u003eVariance models of the last age interval and their impact on life expectancy at subnational scales\u003c/strong\u003e. \u003cem\u003eDemographic Research\u0026nbsp;\u003c/em\u003e2016, \u003cstrong\u003e35\u003c/strong\u003e:399-454.\u003c/p\u003e\n\u003cp\u003e26.\u0026nbsp;\u0026nbsp;Williams R: \u003cstrong\u003ePersonal communication [December 2020]\u003c/strong\u003e. In\u003cem\u003e.\u003c/em\u003e; 2020.\u003c/p\u003e\n\u003cp\u003e27.\u0026nbsp;\u0026nbsp;Harding BN, Weiss NS: \u003cstrong\u003ePoint: immortal time bias - what are the determinants of its magnitude?\u003c/strong\u003e \u003cem\u003eAmerican Journal of Epidemiology\u0026nbsp;\u003c/em\u003e2019, \u003cstrong\u003e188\u003c/strong\u003e(6):1013-1015.\u003c/p\u003e\n\u003cp\u003e28.\u0026nbsp;\u0026nbsp;Glover G, Williams R, Heslop P, Oyinlola J, Grey J: \u003cstrong\u003eMortality in people with intellectual disabilities in England\u003c/strong\u003e. \u003cem\u003eJournal of Intellectual Disability Research\u0026nbsp;\u003c/em\u003e2017, \u003cstrong\u003e61\u003c/strong\u003e(1):62-74.\u003c/p\u003e\n\u003cp\u003e29.\u0026nbsp;\u0026nbsp;Lester H, Campbell S: \u003cstrong\u003eDeveloping Quality and Outcomes Framework (QOF) indicators and the concept of \u0026apos;QOFability\u0026apos;\u003c/strong\u003e. \u003cem\u003eQuality in Primary Care\u0026nbsp;\u003c/em\u003e2010, \u003cstrong\u003e18\u003c/strong\u003e(2):103-109.\u003c/p\u003e\n\u003cp\u003e30.\u0026nbsp;\u0026nbsp;Roland M, Guthrie B: \u003cstrong\u003eQuality and Outcomes Framework: what have we learnt?\u003c/strong\u003e \u003cem\u003eBritish Medical Journal\u0026nbsp;\u003c/em\u003e2016, \u003cstrong\u003e354\u003c/strong\u003e:i4060.\u003c/p\u003e\n\u003cp\u003e31.\u0026nbsp;\u0026nbsp;British Medical Association \u0026amp; NHS Employers: \u003cstrong\u003eClinical directed enhanced services (DES) guidance for GMS contract\u003c/strong\u003e. In\u003cem\u003e.\u003c/em\u003e London: Department of Health 2008.\u003c/p\u003e\n\u003cp\u003e32.\u0026nbsp;\u0026nbsp;British Medical Association/NHS England/NHS Employers: \u003cstrong\u003e2014/15 General Medical Services (GMS) Contract Quality and Outcomes Framework (QOF). Guidance for GMS Contract 2014/15. NHS England Gateway reference: 01264\u003c/strong\u003e. In\u003cem\u003e.\u003c/em\u003e England: British Medical Association, NHS England, NHS Employers. Available from:\u0026nbsp;\u003ca href=\"http://www.mysurgerywebsite.co.uk/website/IGP367/files/Guidance_and_audit_requirements14-15contract.pdf\"\u003ehttp://www.mysurgerywebsite.co.uk/website/IGP367/files/Guidance_and_audit_requirements14-15contract.pdf\u003c/a\u003e (Accessed 19 Jan 2021) 2014.\u003c/p\u003e\n\u003cp\u003e33.\u0026nbsp;\u0026nbsp;General Practitioners Committee/NHS England/NHS Employees: \u003cstrong\u003eGeneral Medical Services Contract 2014-2015. Guidance and audit requirements: NHS England Gateway reference: 01347\u003c/strong\u003e. In\u003cem\u003e.\u003c/em\u003e England: General Practitioners Committee, NHS England \u0026amp; NHS Employees. Available from:\u0026nbsp;\u003ca href=\"http://www.mysurgerywebsite.co.uk/website/IGP367/files/Guidance_and_audit_requirements14-15contract.pdf\"\u003ehttp://www.mysurgerywebsite.co.uk/website/IGP367/files/Guidance_and_audit_requirements14-15contract.pdf\u003c/a\u003e (Accessed 19 Jan 2021) 2014.\u003c/p\u003e\n\u003cp\u003e34.\u0026nbsp;\u0026nbsp;Taylor B, Jick H, MacLaughlin D: \u003cstrong\u003ePrevalence and incidence rates of autism in the UK: time trend from 2004\u0026ndash;2010 in children aged 8 years\u003c/strong\u003e. \u003cem\u003eBMJ Open\u0026nbsp;\u003c/em\u003e2013, \u003cstrong\u003e3\u003c/strong\u003e(10):e003219.\u003c/p\u003e\n\u003cp\u003e35.\u0026nbsp;\u0026nbsp;King JA, Jeong J, Underwood FE, Quan J, Panaccione N, Windsor JW, Coward S, deBruyn J, Ronksley PE, Shaheen AA\u003cem\u003e\u0026nbsp;et al\u003c/em\u003e: \u003cstrong\u003eIncidence of Celiac disease is increasing over time: A systematic review and meta-analysis\u003c/strong\u003e. \u003cem\u003eAmerican Journal of Gastroenterology\u0026nbsp;\u003c/em\u003e2020, \u003cstrong\u003e115\u003c/strong\u003e(4):507-525.\u003c/p\u003e\n\u003cp\u003e36.\u0026nbsp;\u0026nbsp;Blackwell J, Saxena S, Jayasooriya N, Bottle A, Petersen I, Hotopf M, Alexakis C, Pollok RC, group P-Is: \u003cstrong\u003ePrevalence and duration of gastrointestinal symptoms before diagnosis of inflammatory bowel disease and predictors of timely specialist review: A population-based study\u003c/strong\u003e. \u003cem\u003eJournal of Crohn\u0026apos;s and Colitis\u0026nbsp;\u003c/em\u003e2020.\u003c/p\u003e\n\u003cp\u003e37.\u0026nbsp;\u0026nbsp;Evans WR, Rafi I: \u003cstrong\u003eRare diseases in general practice: recognising the zebras among the horses\u003c/strong\u003e. \u003cem\u003eBr J Gen Pract\u0026nbsp;\u003c/em\u003e2016, \u003cstrong\u003e66\u003c/strong\u003e(652):550-551.\u003c/p\u003e\n\u003cp\u003e38.\u0026nbsp;\u0026nbsp;Lund JL, Horv\u0026aacute;th-Puh\u0026oacute; E, Komj\u0026aacute;thin\u0026eacute; Sz\u0026eacute;pligeti S, S\u0026oslash;rensen HT, Pedersen L, Ehrenstein V, St\u0026uuml;rmer T: \u003cstrong\u003eConditioning on future exposure to define study cohorts can induce bias: the case of low-dose acetylsalicylic acid and risk of major bleeding\u003c/strong\u003e. \u003cem\u003eClin Epidemiol\u0026nbsp;\u003c/em\u003e2017, \u003cstrong\u003e9\u003c/strong\u003e:611-626.\u003c/p\u003e"}],"fulltextSource":"","fullText":"","funders":[],"hasAdminPriorityOnWorkflow":false,"hasManuscriptDocX":true,"hasOptedInToPreprint":true,"hasPassedJournalQc":"","hasAnyPriority":false,"hideJournal":false,"highlight":"","institution":"","isAcceptedByJournal":true,"isAuthorSuppliedPdf":false,"isDeskRejected":"","isHiddenFromSearch":false,"isInQc":false,"isInWorkflow":false,"isPdf":false,"isPdfUpToDate":true,"isWithdrawnOrRetracted":false,"journal":{"display":true,"email":"[email protected]","identity":"bmc-medical-research-methodology","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"bmrm","sideBox":"Learn more about [BMC Medical Research Methodology](http://bmcmedresmethodol.biomedcentral.com/)","snPcode":"","submissionUrl":"https://www.editorialmanager.com/bmrm/default.aspx","title":"BMC Medical Research Methodology","twitterHandle":"BMC_series","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"em","reportingPortfolio":"BMC Series","inReviewEnabled":true,"inReviewRevisionsEnabled":true},"keywords":"bias (epidemiology), epidemiologic methods, immortal time bias, electronic health records, life expectancy, observational studies","lastPublishedDoi":"10.21203/rs.3.rs-1060955/v1","lastPublishedDoiUrl":"https://doi.org/10.21203/rs.3.rs-1060955/v1","license":{"name":"CC BY 4.0","url":"https://creativecommons.org/licenses/by/4.0/"},"manuscriptAbstract":"\u003ch2\u003eBackground\u003c/h2\u003e \u003cp\u003eImmortal time bias is common in observational studies but is typically described for pharmacoepidemiology studies where there is a delay between cohort entry and treatment initiation.\u003c/p\u003e\u003ch2\u003eMethods\u003c/h2\u003e \u003cp\u003eThis study used the Clinical Practice Research Datalink (CPRD) and linked national mortality data in England from 2000\u0026ndash;2019 to investigate immortal time bias for a specific life-long condition, intellectual disability. Life expectancy (Chiang\u0026rsquo;s abridged life table approach) was compared for 33,867 exposed and 980,586 unexposed individuals aged 10+ years using five methods: (1) treating immortal time as observation time; (2) excluding time before date of first exposure diagnosis; (3) matching cohort entry to first exposure diagnosis; (4) excluding time before proxy date of entering first exposure diagnosis (by the physician); and (5) treating exposure as a time-dependent measure.\u003c/p\u003e\u003ch2\u003eResults\u003c/h2\u003e \u003cp\u003eWhen not considered in the design or analysis (Method 1), immortal time bias led to disproportionately high life expectancy for the exposed population during earlier calendar periods (additional years expected to live: 2000\u0026ndash;2004: 65.6 [95% CI: 63.6,67.6]; 2005\u0026ndash;2009: 59.9 [58.8,60.9]; 2010\u0026ndash;2014: 58.0 [57.1,58.9]; 2015\u0026ndash;2019: 58.2 [56.8,59.7]). Date of entry of diagnosis (Method 4) was unreliable in this CPRD cohort. The final methods (Method 2, 3 and 5) appeared to solve the main theoretical problem but residual bias may have remained.\u003c/p\u003e\u003ch2\u003eConclusions\u003c/h2\u003e \u003cp\u003eWe conclude that immortal time bias is a significant issue for studies of life-long conditions that use electronic health record data and requires careful consideration of how clinical diagnoses are entered onto electronic health record systems.\u003c/p\u003e","manuscriptTitle":"Immortal time bias for life-long conditions in retrospective observational studies using electronic health records","msid":"","msnumber":"","nonDraftVersions":[{"code":1,"date":"2021-11-18 21:31:48","doi":"10.21203/rs.3.rs-1060955/v1","editorialEvents":[{"type":"communityComments","content":0},{"type":"decision","content":"Major revision","date":"2022-01-11T07:39:27+00:00","index":"","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2021-12-22T21:23:09+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"c0501179-a666-4178-a65e-1d6041766cbb","date":"2021-12-07T14:06:35+00:00","index":"hide","fulltext":""},{"type":"editorInvitedReview","content":"","date":"2021-11-30T21:33:13+00:00","index":"hide","fulltext":""},{"type":"reviewerAgreed","content":"cf48687b-52a0-403c-ac44-2fa306ee5ce6","date":"2021-11-15T20:21:45+00:00","index":"hide","fulltext":""},{"type":"reviewersInvited","content":"","date":"2021-11-15T19:40:18+00:00","index":"","fulltext":""},{"type":"editorAssigned","content":"","date":"2021-11-15T19:27:47+00:00","index":"","fulltext":""},{"type":"editorInvited","content":"","date":"2021-11-15T19:16:30+00:00","index":"","fulltext":""},{"type":"checksComplete","content":"","date":"2021-11-15T19:13:50+00:00","index":"","fulltext":""},{"type":"submitted","content":"BMC Medical Research Methodology","date":"2021-11-08T14:27:57+00:00","index":"","fulltext":""}],"status":"published","journal":{"display":true,"email":"[email protected]","identity":"bmc-medical-research-methodology","isNatureJournal":false,"hasQc":true,"allowDirectSubmit":false,"externalIdentity":"bmrm","sideBox":"Learn more about [BMC Medical Research Methodology](http://bmcmedresmethodol.biomedcentral.com/)","snPcode":"","submissionUrl":"https://www.editorialmanager.com/bmrm/default.aspx","title":"BMC Medical Research Methodology","twitterHandle":"BMC_series","acdcEnabled":true,"dfaEnabled":false,"editorialSystem":"em","reportingPortfolio":"BMC Series","inReviewEnabled":true,"inReviewRevisionsEnabled":true}}],"origin":"","ownerIdentity":"22623768-46cb-468a-9819-b3600e159499","owner":[],"postedDate":"November 18th, 2021","published":true,"recentEditorialEvents":[],"rejectedJournal":[],"revision":"","amendment":"","status":"under-review","subjectAreas":[{"id":8562227,"name":"Health Economics \u0026 Outcomes Research"}],"tags":[],"updatedAt":"2022-03-17T09:44:21+00:00","versionOfRecord":[],"versionCreatedAt":"2021-11-18 21:31:48","video":"","vorDoi":"","vorDoiUrl":"","workflowStages":[]},"version":"v1","identity":"rs-1060955","journalConfig":"researchsquare"},"__N_SSP":true},"page":"/article/[identity]/[[...version]]","query":{"redirect":"/article/rs-1060955","identity":"rs-1060955","version":["v1"]},"buildId":"7rjqhiLT3MXkJMwkYKINL","isFallback":false,"isExperimentalCompile":false,"dynamicIds":[84888],"gssp":true,"scriptLoader":[]}

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. The paper's references may be in our DB but unresolved to ``paper_id`` (resolution happens at ingest when the cited DOI matches a row we already have). Run the cross-source citation reconcile pass to retry.

Source provenance

europepmc
last seen: 2026-05-19T01:45:01.086888+00:00
unpaywall
last seen: 2026-05-22T02:00:06.705733+00:00
License: CC-BY-4.0