Skip to main content
  • Research article
  • Open access
  • Published:

An assessment of the potential miscalibration of cardiovascular disease risk predictions caused by a secular trend in cardiovascular disease in England

Abstract

Background

A downwards secular trend in the incidence of cardiovascular disease (CVD) in England was identified through previous work and the literature. Risk prediction models for primary prevention of CVD do not model this secular trend, this could result in over prediction of risk for individuals in the present day. We evaluate the effects of modelling this secular trend, and also assess whether it is driven by an increase in statin use during follow up.

Methods

We derived a cohort of patients (1998–2015) eligible for cardiovascular risk prediction from the Clinical Practice Research Datalink with linked hospitalisation and mortality records (N = 3,855,660). Patients were split into development and validation cohort based on their cohort entry date (before/after 2010). The calibration of a CVD risk prediction model developed in the development cohort was tested in the validation cohort. The calibration was also assessed after modelling the secular trend. Finally, the presence of the secular trend was evaluated under a marginal structural model framework, where the effect of statin treatment during follow up is adjusted for.

Results

Substantial over prediction of risks in the validation cohort was found when not modelling the secular trend. This miscalibration could be minimised if one was to explicitly model the secular trend. The reduction in risk in the validation cohort when introducing the secular trend was 35.68 and 33.24% in the female and male cohorts respectively. Under the marginal structural model framework, the reductions were 33.31 and 32.67% respectively, indicating increasing statin use during follow up is not the only the cause of the secular trend.

Conclusions

Inclusion of the secular trend into the model substantially changed the CVD risk predictions. Models that are being used in clinical practice in the UK do not model secular trend and may thus overestimate the risks, possibly leading to patients being treated unnecessarily. Wider discussion around the modelling of secular trends in a risk prediction framework is needed.

Peer Review reports

Background

Cardiovascular disease (CVD) risk prediction models such as QRISK are developed on longitudinal data spanning a long period of time (QRISK3 runs from 1998 to 2015 [1]). These models are updated each year to include the most recent data and at times remove old data. However, any secular trend in the outcome itself occurring within the time span of the development dataset is not modelled. Pate et al. [2] found a large downwards secular trend in CVD incidence over this time period in England. Downwards secular trends in the incidence of coronary heart disease, myocardial infarction, and stroke have also been reported in the literature [3,4,5,6]. Not including this trend in the prediction modelling could be resulting in the miscalibration of risk scores for patients in the present day, while including it would cause a large reduction in the predicted risks of these patients. Further research around this is needed, to quantify the impact of modelling this secular trend, and identify what is driving it and whether it should be modelled or not. In particular, it is important to clarify if the secular trend is being driven by an increase in statin use over time. In this scenario it should not be modelled, as it would result in risks predictions becoming lower and patients would be subsequently advised not to initiate statin treatment, despite this being the cause for the drop in risk.

In this paper we evaluate the effects of developing a model using the same methodology as QRISK3 (in the presence of the secular trend) and producing risk scores for patients in a time period after that of model development. We then propose an approach to incorporate secular trends in prediction models from longitudinal data, accounting for changes in treatment during follow up. This is formalised in four sequential analyses: A) quantifying the miscalibration in risk predictions of patients in the present day caused by this secular trend, B) assessing the sensitivity of the risk prediction model created to changes in patient characteristics, which could explain any miscalibration, C) an attempt to model the secular trend to remove miscalibration, D) developing a marginal structural model (MSM) to assess secular trend after adjusting for statin use during follow up.

Methods

All analyses are carried out separately for male and female cohorts, as they have separate CVD risk prediction models in practice.

Data source

A ‘CVD primary prevention cohort’ was defined from a Clinical Practice Research Datalink (CPRD) [7] dataset linked with Hospital Episode Statistics [8] (HES) and Office for National Statistics [9] (ONS) using the same criteria as QRISK3 [1]. The study period was 1st Jan 1998 to 31st Dec 2015 and the cohort entry date defined as the latest of: date turned 25; one year follow up as a permanently registered patient in CPRD; or 1st Jan 1998. Patients were excluded if they had a CVD event (identified through CPRD, HES or ONS) or statin prescription prior to their cohort entry date. The end of follow up was: the earliest date of patient’s transfer out of the practice or death; last data collection for practice; 31st Dec 2015 or five years follow up. Patients were censored after five years as five year risk predictions are used throughout this study. All predictor variables included in the QRISK3 [1] risk prediction model were extracted at cohort entry date. Code lists and detailed information on how variables were defined is provided in Additional file 1.

Quantifying the miscalibration in risk predictions of patients in the present day

The first step was to quantify the miscalibration induced by developing a model over a time period in which a secular trend in CVD was present, and using it to calculate risk predictions for patients after this time period. Missing data for body mass index (BMI), systolic blood pressure (SBP), SBP variability, cholesterol, high density lipoprotein (HDL), smoking status and ethnicity in the CVD primary prevention cohort was imputed using multiple imputation by chained equations. The imputation model included all predictor variables from QRISK3, the Nelson Aalen estimation of the cumulative baseline hazard at the point of censoring or an event, and the outcome indicator. The package used to do this was mice [10]. Only one imputed dataset was produced, as running the analysis across multiple datasets and combining estimates was not essential to answering our hypotheses, and the computational time to do so was significant. Also the bespoke imputation procedure carried out on the data for developing the MSM (described later) resulted in a single dataset, so the decision was made across all analyses for consistency.

Patients were then split into two cohorts defined by their cohort entry date. Those with a cohort entry date prior to 1st Jan 2010 were put into the development cohort, with the remaining patients making up the validation cohort. Patients in the development cohort were then censored at 1st Jan 2010 if their follow up extended beyond this point. The data was split like this because if QRISK3 was replicated exactly using data from 1998 to 2015 for model development, it would not have been possible to assess the calibration of risk scores for patients after 2015, as they would have no follow up.

A Cox proportional hazards model using the same predictor variables as QRISK3 was then fit to the development cohort. Fractional polynomials of age, BMI and SBP were tested for using the mfp package [11]. Five year risk predictions were then generated for both the development and validation cohort using this model, and the calibration of these risks was assessed. Calibration was assessed by splitting individuals from the cohort into 10 groups by their predicted risk (deciles). The Kaplan Meier estimate of risk (observed risk) was then plot against the average predicted risk (predicted risk) within each decile. Eq. (1) corresponds to this model, where h(t) denotes the hazard function, h0(t) the baseline hazard at time t, X0 the vector of predictors at cohort entry date and βX a vector of the associated coefficients .

$$ h(t)={h}_0(t)\ast \exp \left({\beta}_X.{X}_0\right) $$
(1)

Attempt to model the secular trend to remove miscalibration in validation cohort

Given the miscalibration that was found in the validation dataset (see results), this indicated that the secular trend could not be explained by changes in predictor variables between the development and calibration dataset. This provided support for modelling the secular trend in the development cohort, to try and remove the miscalibration in the validation cohort. The same Cox model defined by eq. (1) was fitted to the development cohort, but with cohort entry date included as a variable, referred to as calendar time. This is denoted by T0 in Fig. 1 (DAG-1) and eq. (2). Unmeasured confounding is left off the DAGs to reduce the number of arrows and maintain clarity (particularly for DAG-2), however it may be present. The implications of unmeasured confounding are discussed in the limitations section (see exchangeability assumption).

Fig. 1
figure 1

DAG-1

All DAGs were generated using the dagitty software [12]. Fractional polynomials for this variable were tested using the mfp package [11]. Five year risks were generated for validation cohort and the calibration of the models was assessed.

$$ h(t)={h}_0(t)\ast \exp \left({\beta}_T.{T}_0+{\beta}_X.{X}_0\right) $$
(2)

Developing an MSM to assess secular trend after adjusting for statin use during follow up

MSM – overview

A major concern was that an increase in statin use over time may have caused some of the reduction in CVD incidence. If the secular trend was driven by statin use, then modelling it (which would result in lower predicted risks) would make lots of patients whose risk if they remained untreated was > 10%, ineligible for treatment. Statin use at baseline could not have been driving this secular trend as the development cohort only considered patients who were statin free at baseline, however patients could initiate statins during follow up. The aim of this section was therefore to assess the presence of the secular trend when adjusting for statin use during follow up.

It is possible to adjust for changes in predictor variables and statin use post baseline using standard regression techniques (such as an interval censored Cox model). This would result in an estimate of the direct effect of calendar time on CVD incidence, the portion of which is not explained through changes in the predictor variables and statin use during follow up. Such a model would be sufficient for assessing whether the secular trend remained after adjusting for statin use during follow up in the development cohort. However the model could not be used in a risk prediction setting, as future values of predictor variables would be required to generate risk scores. When generating a risk score for a new individual, you would not know the future values of their predictor variables. Furthermore, the coefficient of statin use during follow up would not be causal, and the risk of a patient if they did/did not initiate statins during follow up could therefore not be estimated [13]. Therefore the proposed method to answer our question was an MSM.

MSMs were developed to calculate the causal effect of a time dependent exposure on an outcome in an observational setting, where the treatment and outcome are confounded by time varying covariates [14, 15]. Sperrin et al. [13] have shown how MSMs can be used to adjust for ‘treatment drop in’, the issue of patients starting treatment during follow up in a dataset being used for risk prediction. Consider DAG-2 (Fig. 2), where k = 0 denotes baseline, and k = 1, 2 two time points during follow up (this could be extended to any number of time points). Ak denotes the statin treatment status at time k, Xk covariate information prior to time k, and Tk calendar time at time k. Note A0 is not included in DAG-2 as A0 = 0 by definition of the CVD primary prevention cohort. In the absence of unmeasured confounding, MSM’s allow for the estimation of \( E\left[Y\left(\underset{\_}{A}=\underset{\_}{0}\right)|{X}_0\right] \), where A denotes the entire treatment course during follow up, as opposed to E[Y(A0 = 0)| X0]. The strategy involves adjusting for variables at baseline as normal and then re-weighting the population by variables that may be on the treatment causal pathway, breaking the links from Xk to Ak. In the resulting pseudo population the allocation of treatment during follow up happens at random (within the levels of the variables defined at baseline). This allows the generation of risk scores using data at baseline only, but also accounting for statin use during follow up (the risk scores developed in a counterfactual scenario that no-one receives statin treatment). Importantly for this study, if calendar time only effected the outcome Y through increasing statin use in follow up, when using an MSM the direct effect of T0 on Y would be zero, and adjusting for calendar time at baseline would not result in a drop in the average risk score of patients in the validation cohort.

Fig. 2
figure 2

DAG-2

The estimator of \( E\left[Y\left(\underset{\_}{A}=\underset{\_}{0}\right)|{X}_0\right] \) is only valid under the three identifiability assumptions of causal inference (exchangeability, consistency and positivity) and correct specification of the marginal structural model, and the model used to calculate the weights. The viability of these assumptions in this study is discussed in the limitations.

MSM - data derivation

The CVD primary prevention cohort was used as a starting point. However in order to derive the MSM, patient information was extracted at 10 time points, at 6 month intervals from the cohort entry date, denoted as Xk and Ak for k = 0, 1, 2,…, 9. The variable Xk contained all the QRISK3 predictors evaluated at time k (for test data this was the most recent value prior to time k). Ak = 1 if a patient had initiated statin treatment prior to k, and Ak = 0 otherwise. As patients were excluded from the cohort if they have had a statin prescription prior to their cohort entry date, A0 = 0 for all patients. If a CVD event happened within 6 months of a statin initiation, the statin initiation was ignored. This was to stop any effects of poorly recorded data (start of statins may have been triggered by the CVD event).

A key issue in deriving the dataset was missing data. A combination of imputation techniques were implemented to maintain consistency in variable information within each patient across the 10 time points. First, where possible, last observation carried forward imputation was implemented within each patient. Then, where possible, next observation carried backwards imputation was used to impute the remaining missing data. However, there was still missing data for patients who had no entries across all 10 time points for a given variable. The data at baseline was then extracted and missing values were imputed using one stochastic imputation. All predictor variables, Nelson Aalen estimate of baseline hazard and the outcome indicator were included in the imputation model (same process that was used to impute the data for the standard Cox model). These imputed baseline values were then used at each following time point (last observation carried forward imputation).

MSM - calculation of weights and specification of model

The MSM was fitted as a weighted interval censored Cox model using the coxph function from the survival package [16]. The weights themselves were calculated using the IPW package [17]. Stabilised weights were calculated as is common practice to provide more precise estimation of the weights. For individual i, the formula for the weight of interval/time period K was defined as:

$$ {sw}_i=\prod \limits_{k=0}^K{\left({\hat{p}}_{ki}^{\ast}\right)}^{A_{ki}}{\left(1-{\hat{p}}_{ki}^{\ast}\right)}^{1-{A}_{ki}}/\prod \limits_{k=0}^K{\left({\hat{p}}_{ki}\right)}^{A_{ki}}{\left(1-{\hat{p}}_{ki}\right)}^{1-{A}_{ki}} $$
(3)

where \( {\hat{p}}_{ki}^{\ast }=P\left[{A}_k=1|{\underset{\_}{A}}_{k-1},{X}_0\right] \) and \( {\hat{p}}_{ki}=P\left[{A}_k=1|{\underset{\_}{A}}_{k-1},{\underset{\_}{X}}_k,{X}_0\right] \), and \( {\underset{\_}{A}}_k \) and \( {\underset{\_}{X}}_k \) denote treatment history and covariate history respectively up time point k for individual i. More simply put, the denominator is the probability that the individual received the treatment they did, based on time varying predictors and predictors at baseline. The numerator is the probability that the individual received the treatment they did, based on predictors at baseline only. The models used to estimate the probability of treatment when deriving the weights were interval censored Cox models. If calendar time at baseline, T0, was being included in the MSM, it was also included as a stabilising factor in the calculation of the weights as part of X0. Detailed information on how to calculate weights is also given in the literature [15, 17, 18] and the formula for calculating weights (and notation for variables) matches that from the work by Sperrin et al. [13]

Two MSM’s were created, one that adjusted for calendar time at baseline and one that did not:

$$ h(t)={h}_0(t)\ast \exp \left({\beta}_A.{A}_t+{\beta}_X.{X}_0\right) $$
(4)
$$ h(t)={h}_0(t)\ast \exp \left({\beta}_A.{A}_t+{\beta}_X.{X}_0+{\beta}_T{T}_0\right) $$
(5)

The same fractional polynomials of age, BMI, SBP and calendar time that were found to be optimal in the standard Cox models were used in the MSM, and in the models used to calculate the weights. Ideally we would have re-calculated the optimal fractional polynomials for the weighted model fitted to the interval censored data, however software was not available to do this. Using the same fractional polynomials from the standard Cox analysis was preferred to having no fractional polynomials, as removing them led to poorly calibrated models. The coefficient βA is the average causal effect of initiating statin treatment after adjusting for all other variables. It is quite common to allow the effect of statin treatment to be modified by baseline variables, which could be achieved by including interaction terms AtX0. However the primary aim was to account for statin use in follow up, rather than calculate the effect of statin treatment in different subgroups, so we did not feel this was necessary.

As a comparison, unweighted interval censored Cox models using only data at baseline (i.e. equation (1) and eq. (2) were fitted to the same data as the MSM. The effect of modelling the secular trend could then be assessed when using (interval censored) Cox regression, as well as under the MSM framework. This was preferred to re-using the standard Cox models directly, which were fitted to a different dataset.

MSM – analysis of interest

The MSM was used to generate risk predictions assuming no statin treatment at baseline or during follow up, \( E\left[Y|{X}_0,\underset{\_}{A}=\underset{\_}{0}\right] \), the estimator of \( E\left[Y\left(\underset{\_}{A}=\underset{\_}{0}\right)|{X}_0\right] \). The interval censored Cox model only produced risk predictions based on no statin treatment at baseline, E[Y| X0, A0 = 0], the estimator of E[Y(A0 = 0)| X0, ]. The outcome of interest was the risk ratio of the average predicted risk of patients in the validation cohort, before and after adjusting for calendar time at baseline in the MSM framework, \( E\left[Y\left(\underset{\_}{A}=\underset{\_}{0}\right)|{X}_0,{T}_0\right]/E\left[Y\left(\underset{\_}{A}=\underset{\_}{0}\right)|{X}_0\right] \). This was compared to the risk ratio after adjusting for calendar time at baseline in the unweighted interval censored Cox models, (E[Y(A0 = 0)| X0, T0]/E[Y(A0 = 0)| X0]).

Results

Description of data

Differences between the development and validation cohorts are shown in Table 1. In the validation cohort, patients were generally younger and healthier (lower prevalence of comorbidities). The levels of missing data are reported in Table 2. The amount of missing data was lower in the validation cohorts compared to the development cohorts, and in the female cohorts compared to the male cohorts. The variables with highest levels of missing data (> 50% in some cases) were SBP variability, cholesterol/HDL ratio and ethnicity.

Table 1 Baseline variables in development and validation cohorts
Table 2 Amount of missing data in the development and validation cohorts

Quantifying the miscalibration in risk predictions of patients in the present day

Figure 3 shows the calibration of the model in the development and validation cohorts. While the model was well calibrated in the development cohort, as expected, there was a large under prediction of risks in the validation cohort. Statin prevalence and incidence rates in the primary prevention cohort are provided in Supplementary Tables 1 and 2 in Additional file 2.

Fig. 3
figure 3

Model calibration in the development (pre 2010) and validation (post 2010) cohorts

Attempt to model the secular trend to remove miscalibration in validation cohort

The calibration in the validation cohort after including secular trend into the model is shown in Fig. 4. There was still an under-prediction in the second highest risk group for both the female and male cohorts, but overall there was a substantive improvement in calibration compared to not modelling the secular trend.

Fig. 4
figure 4

Calibration in the validation cohort when adjusting for calendar time

Developing an MSM to assess secular trend after adjusting for statin use during follow up

The average predicted risks of patients in the validation cohort before and after adjusting for calendar time, in the interval censored Cox and MSM setting, are presented in Table 3. The risk reduction caused by accounting for secular trend was marginally smaller under the MSM framework compared to the standard Cox. This means the effect of secular trend was slightly smaller when adjusting for statin use during follow up. However the difference would not be clinically significant, and there was still a large drop in risks. The hazard ratios from the two MSM’s are provided in Table 4, the coefficient of statin initiation is a causal estimate and can be used to help verify if the model has been derived correctly. Calibration of the interval censored Cox model and the MSM are presented in Supplementary Figs. 1 to 4 in Additional file 2, both are well calibrated.

Table 3 Average predicted CVD risk for patients in the validation cohort before and after secular trend was introduced, using an MSM and an interval censored Cox model
Table 4 Log hazard ratios (sd) of the categorical variables in the marginal structural model with and without secular trend included as a predictor variable

Discussion

This results in this paper show that not modelling the secular trend in CVD incidence in England causes over prediction of risks for patients in the present day. Also, the secular trend in CVD incidence cannot be explained by changes in statin use over time, because when adjusting for calendar time in the MSM framework the risk predictions of patients in the validation cohort still dropped substantially.

These findings support the need to adjust for calendar time in prediction models used to drive clinical decision making in England. However the drop in risk caused by accounting for this secular trend is drastic and changes should not be made in practice without the generation of more evidence. Most importantly, these findings should be reproduced in a different dataset. This should not be difficult as QRISK3 has been developed in the QResearch database, and QRISK2 has been externally validated in the Health Improvement Network database [19]. This means analysis ready datasets exist and could be tested for secular trends in CVD with minimal extra work.

The next step would then be to try and identify what is causing this drop in CVD incidence. In this study, we ruled out one potential cause, the use of statins during follow up. The secular trend could also be driven by increasing use of other CVD medications, such as antihypertensives. We focused on statins as this is the recommended treatment for primary prevention of CVD, but the impact of other medications should also be explored. This could be done on a simple level, by assessing how many patients in the development cohort initiate the medications of interest during follow up. If the number of individuals doing so looks to be significant, then the impact could be assessed formally using the same techniques as this study. Another possible cause of the secular trend could be changes in recording practices. If this was the true cause this would be another reason not to model the secular trend, as it would not represent a true change in the underlying disease process. Primary care records in particular may be susceptible to differential recording over time as monetary incentives are given for recording specific things. However, a large portion of the events are identified in HES and ONS which will not have suffered from the same level of differential recording. This is backed up by the trends reported in the literature, which are also not based on primary care codes [3,4,5,6]. Further work in a causal framework to establish what is causing this drop would be really valuable and could provide a much stronger argument for modelling the secular trend (e.g. if its driven by lifestyle changes). However, given the current evidence, there is still not a strong argument against modelling it.

Risk scores should be based on current data; this is why the series of QRISK models have used a rolling window for their development datasets. If there was a much higher incidence of CVD in the 1990s due to various differences in healthcare management, we would not want to incorporate this into current risk scores as it would inflate the risks. Therefore, there is also no reason to assume the incidence of CVD has been the same throughout the time window of data we are using. In this sense, current approaches to risk prediction are contradictory. We are happy to omit old data from our cohort periodically to reflect changes in the population; but we are not willing to model changes in the population over the time period in which we have defined our cohort. If wanting to do so, dynamic models are what should be used to model changes over time.

With respect to the dynamic modelling methods outlined by Jenkins et al., [20] the current approach in England implemented by QRISK series is discrete model updating (models are re-calculated in a more recent dataset each year). In this study we modelled the secular trend by including a calendar time variable at baseline. This effectively allowed the intercept (or baseline hazard) to vary by calendar time, and is a special case of a varying coefficient model. However, there are more complex methods such as Bayesian model updating and varying coefficient models that allow changes in predictor coefficients over time, and could give more control over how the secular trend is modelled. If a dynamic model was to be developed for use in practice, these methods should be considered, alongside how to use these methods within an MSM framework. Arguably the use of an MSM should be standard procedure in the presence of ‘treatment drop in’ during follow up, as a normal Cox model under predicts the risk of patients if they were to remain untreated, which is what treatment decisions should be based on [13]. If modelling a secular trend in the outcome that was being partially driven by this treatment drop in (which was not the case in this study), it would be even more important to work under an MSM framework. However, currently it is not clear how the more complex dynamic modelling approaches would be handled in an MSM framework. This is therefore a key area for future research.

It is worth noting that it may not be necessary to build an MSM in order to rule out treatment initiation as the cause for a secular trend. The method was used in this paper to highlight the potential for MSM’s to be used in this manner. In practice, it would be sensible to look at the overall rate of treatment initiation (and prevalence) first. The incidence and prevalence rates of statin treatment in this cohort are provided in Additional file 2. We see that statin initiation rates range between 10 and 20 initiations per 1000 person years (which works out at about 1–2% of the population each year). Given the hazard ratios of statin initiation (between 0.7–0.8), even if everybody stopped statin initiation, this would affect too small of a proportion of the cohort to be driving the drop in risk. Therefore in this particular scenario, the use of an MSM may not have been required to rule out statins as the cause for the secular trend. There are however strong arguments for MSM’s to be used in practice regardless of the presence of secular trends, in order to appropriately estimate patient risk if they were/were not to initiate treatment.

Limitations

There are several limitations to the study. The first is that the estimate of \( E\left[Y\left(\underset{\_}{A}=\underset{\_}{0}\right)|{X}_0\right] \) is only valid if the assumptions of exchangeability, consistency, positivity (identifiability assumptions) and correct model specification are all met. The untestable assumption of exchangeability, or no unmeasured confounding, represents the fundamental problem with deriving causal estimates from observational data. Specifically with regards to our model, this is violated if there are any other variables which predict both treatment exposure and the outcome of CVD. With respect to DAG-2, this would be shown by another node with arrows going into both Ak and the outcome Y. If violated the estimate of statin treatment will be biased (and subsequently the risk scores conditional on no statin treatment during follow up will be biased too). Given the large number of predictors available we hope that the unmeasured confounding is not too extensive. The consistency assumption, that a subject’s counterfactual outcome under their observed exposure history is precisely their observed outcome, is generally considered a reasonable assumption when estimating the effects of medical treatments [18]. This is maybe less true in our data as a patient could initiate statins any time over a 6 month period and be assigned the same exposure value. However we did not believe that initiating within a 6 month interval would have a significant impact on the outcome, and reducing the size of the intervals would have been impractical. The positivity assumption, that there were unexposed and exposed individuals at every level of the confounders, was reasonable given the large size of the development dataset and the resulting number of statin initiations.

The assumption of correct model specification, as is the case with all models, will have been violated to some extent in this study. For example, the fractional polynomials of continuous variables calculated from the standard Cox models were used in the MSM. It was not clear how to estimate optimal functional forms under the MSM framework, but re-using the functional forms from the Cox models provided better model performance than just having linear terms. Also, not all variables and interaction terms from the MSM were used in the model to calculate the weights. Doing so produced extreme values weights, and therefore variables in the weighting models were chosen to minimise this. This follows the advice of Cole and Hernan, who state “one may wish to omit control for weak confounders that cause severe non-positivity bias because of a strong association with exposure” [18]. There is no clear-cut way to do this, and therefore a more appropriate set of predictors in the weighting model may have existed. Finally, we only considered the effect of initiating statin treatment. A more detailed MSM which also modelled discontinuation from treatment would allow the calculation of a patients risk if they were to initiate treatment at baseline and not discontinue (or discontinue after a fixed period of time), as opposed to just the risk if they initiate treatment at baseline. However, the density of data available in CPRD, or any other primary care electronic health record is probably not sufficient for this. To model statin initiation and discontinuation at that granularity, more regular updates on predictor variables would be required.

The second limitation was that the results are not directly applicable to the models used in practice in the UK, which are based on 10-year risk scores. However, we have no reason to think the results would not be generalizable because a similar secular trend was found in previous work when dealing with 10-year risks [2]. The third limitation was the level of missing data. Changes in the time varying predictor variables is what drives the weighting in the MSM in order to calculate the effect of statin initiation. Therefore not having predictor information at each time point, and re-using predictor information from previous time points may have led to a biased estimate of statin initiation.

One way to assess the potential impact of limitations 1 (violating assumptions) and 3 (missing data) was to check the hazard ratio for initiating statin treatment (ranging between 0.71–0.81) was in a sensible range. We compared this to the effect estimates of statins from trials reported in the appendices of the NICE guidelines (see section L.2.3.4), [21] and there is reasonable agreement. It should be noted that they report relative rates for specific CVD outcomes which are not directly comparable to our composite definition. However, the similarities that exist still ease concerns over limitations 1 and 3, and that the model was well specified despite these limitations.

Conclusions

In conclusion, inclusion of the secular trend into the model substantially changed the CVD risk predictions. Models that are being used in clinical practice in the UK do not model secular trend and may thus overestimate the risks, possibly leading to patients being treated unnecessarily.

Availability of data and materials

The datasets generated and/or analysed during the current study are not publicly available as this would be a breach of the contract with CPRD. However it can be obtained by a separate application to CPRD after getting approval from Independent Scientific Advisory Committee (ISAC). To apply for data follow the instructions here: https://www.cprd.com/research-applications .

The code used for running analyses is provided at the following GitHub page: https://github.com/alexpate30/An-assessment-of-the-potental-miscalibration

Abbreviations

BMI:

Body mass index

CPRD:

Clinical Practice Research Datalink

CKD:

Chronic kidney disease

CVD:

Cardiovascular disease

DAG:

Directed Acyclic Graph

HES:

Hospital episode statistics

HDL:

High-density lipoprotein

ONS:

Office for National Statistics

MSM:

Marginal Structural Model

SBP:

Systolic blood pressure

References

  1. Hippisley-Cox J, Coupland C, Brindle P. Development and validation of QRISK3 risk prediction algorithms to estimate future risk of cardiovascular disease: prospective cohort study. BMJ. 2017;357(3):j2099. https://doi.org/10.1136/bmj.j2099.

    Article  PubMed  PubMed Central  Google Scholar 

  2. Pate A, Emsley R, Ashcroft DM, Brown B, Van Staa T. The uncertainty with using risk prediction models for individual decision making : an exemplar cohort study examining the prediction of cardiovascular disease in English primary care. BMC Med BMC Medicine. 2019;17(1):134.

    Article  PubMed  Google Scholar 

  3. Bhatnagar P, Wickramasinghe K, Williams J, Townsend N. Trends in the epidemiology of cardiovascular disease in the UK. Heart. 2016;102(24):1945–52.

    Article  PubMed  Google Scholar 

  4. Smolina K, Wright FL, Rayner M, Goldacre MJ. Determinants of the decline in mortality from acute myocardial infarction in England between 2002 and 2010: linked national database study. BMJ. 2012;344(jan25 2):d8059.

    Article  PubMed  PubMed Central  Google Scholar 

  5. Lee S, Shafe ACE, Cowie MR. UK stroke incidence, mortality and cardiovascular risk management 1999-2008: time-trend analysis from the general practice research database. BMJ Open. 2011;1(2):e000269.

    PubMed  PubMed Central  Google Scholar 

  6. Rothwell PM, Coull AJ, Giles MF, Howard SC, Silver LE, Bull LM, et al. Change in stroke incidence, mortality, case-fatality, severity, and risk factors in Oxfordshire, UK from 1981 to 2004 (Oxford vascular study). Lancet. 2004;363(9425):1925–33.

    Article  CAS  PubMed  Google Scholar 

  7. Herrett E, Gallagher AM, Bhaskaran K, Forbes H, Mathur R, van Staa T, et al. Data resource profile: clinical practice research Datalink (CPRD). Int J Epidemiol. 2015;44(3):827–36.

    Article  PubMed  PubMed Central  Google Scholar 

  8. NHS Digital. Hospital Episode Statistics [Internet]. [cited 2018 May 3]. Available from: https://digital.nhs.uk/data-and-information/data-tools-and-services/data-services/hospital-episode-statistics.

  9. Office for National Statistics [Internet]. [cited 2018 May 3]. Available from: https://www.ons.gov.uk/.

  10. van Buuren S, Groothuis-oudshoorn K. mice: Multivariate Imputation by Chained Equations in R. J Stat Softw. 2011;45(3) Available from: https://www.jstatsoft.org/article/view/v045i03.

  11. Benner A. Multivariable Fractional Polynomials [Internet]. [cited 2018 Jul 24]. Available from: https://cran.r-project.org/web/packages/mfp/vignettes/mfp_vignette.pdf.

  12. Textor J, Van Der Zander B, Gilthorpe MS, Liskiewicz M, Ellison GT. Robust causal inference using directed acyclic graphs: the R package “ dagitty”. Int J Epidemiol. 2016;45(6):1887–94.

    PubMed  Google Scholar 

  13. Sperrin M, Martin GP, Pate A, Van Staa T, Peek N, Buchan I. Using marginal structural models to adjust for treatment drop-in when developing clinical prediction models. Stat Med. 2018;37(28):4142–54.

    Article  PubMed  PubMed Central  Google Scholar 

  14. Robins JM, Hernán MA, Brumback B. Marginal structural models and causal inference in epidemiology. Epidemiology. 2000;11(5):550–60.

    Article  CAS  PubMed  Google Scholar 

  15. Hernán M, Brumback B, Robins J. Marginal structural models to estimate the causal effect of zidovudine on the survival of HIV-positive men. Epidemiology. 2000;11(5):561–70.

    Article  PubMed  Google Scholar 

  16. Therneau TM. A package for Survival Analysis in S_. version 2.38. 2015. Available from: https://cran.r-project.org/package=survival.

    Google Scholar 

  17. van der Wal WM, Geskus RB. IPW: An R Package for Inverse Probability Weighting. J Stat Softw. 2011;43:13.

    Article  Google Scholar 

  18. Cole SR, Hernán MA. Constructing inverse probability weights for marginal structural models. Am J Epidemiol. 2008;168(6):656–64.

    Article  PubMed  PubMed Central  Google Scholar 

  19. Collins GS, Altman DG. An independent and external validation of QRISK2 cardiovascular disease risk score: a prospective open cohort study. BMJ. 2010;340(July):c2442.

    Article  PubMed  PubMed Central  Google Scholar 

  20. Jenkins DA, Sperrin M, Martin GP, Peek N. Dynamic models to predict health outcomes: current status and methodological challenges. Diagnostic Progn Res. 2018;2(1):1–9.

    Article  Google Scholar 

  21. NICE. CG181 Lipid modification Appendicies - Cardiovascular risk assessment and the modification of blood lipids for the primary and secondary prevention of cardiovascular disease. 2014. Available from: https://www.nice.org.uk/guidance/cg181/evidence/lipid-modification-update-appendices-pdf-243786638.

    Google Scholar 

Download references

Acknowledgements

This study is based in part on data from the Clinical Practice Research Datalink obtained under licence from the UK Medicines and Healthcare products Regulatory Agency. The data were provided by patients and collected by the NHS as part of their care and support. The Office for National Statistics (ONS) is the provider of the ONS data contained within the CPRD data. Hospital Episode Data and the ONS data (Copyright© 2014) were re-used with the permission of The Health & Social Care Information Centre. All rights reserved.

Funding

This project was funded by the MRC, grant code: MR/N013751/1. The funder played no other role in the study.

Author information

Authors and Affiliations

Authors

Contributions

AP lead conception and design of the study, acquired the data, ran all analyses, lead interpretation of results and drafted the article. TVS was involved in conception and design of the study, acquiring the data, interpretation of results and made significant revisions to the article, and gave final approval for submission. RE was involved in conception and design of the study, acquiring the data, interpretation of results and made significant revisions to the article, and gave final approval for submission. All authors have read an approved the manuscript.

Corresponding author

Correspondence to Alexander Pate.

Ethics declarations

Ethics approval and consent to participate

The study was approved by the independent scientific advisory committee for Clinical Practice Research Datalink research (protocol no. 17_125RMn2.). The interpretation and conclusions contained in this study are those of the authors alone.

Consent for publication

Not applicable.

Competing interests

All authors state they have nothing to disclose.

Additional information

Publisher’s Note

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

Supplementary Information

Additional file 1.

Predictor variables and code lists. A breakdown of predictor variables and how they were derived, and full code lists used to extract data from the raw electronic health record.

Additional file 2.

Supplementary tables and figures that are referenced in the main manuscript.

Rights and permissions

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

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Pate, A., van Staa, T. & Emsley, R. An assessment of the potential miscalibration of cardiovascular disease risk predictions caused by a secular trend in cardiovascular disease in England. BMC Med Res Methodol 20, 289 (2020). https://doi.org/10.1186/s12874-020-01173-x

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1186/s12874-020-01173-x

Keywords