chronic obstructive pulmonary disease ( copd ) is now one of the leading causes of chronic morbidity and mortality worldwide . the world health organization estimates that about 3.3 million people die from copd across the world each year ( i.e. , 6% of all deaths ) . considering the high and still increasing prevalence of copd being seen in many parts of the world , this figure is expected to rise substantially in the coming decades . in developed countries , the health - care burden of copd particularly affects primary care where most patients with copd are managed . still , even among primary care patients with known risk factors of the disease , the rate of undiagnosed copd is high . with an increasing appreciation of the substantial morbidity and mortality resulting from copd , there is growing international interest in the earlier detection of , and intervention in , patients with copd ; this more proactive approach is , however , currently hampered by the lack of clinically relevant , validated risk algorithms . other risk factors that have been identified as playing a role in the aetiology of copd include age , sex , socioeconomic status , childhood asthma , body mass index , acute respiratory infections , respiratory symptoms ( such as cough and wheezing ) , occupational exposure to risk factors , exposure to biomass pollution indoors ( an important risk factor in developing countries ) , family history of copd , pulmonary tuberculosis , physical activity and alpha-1 anti - trypsin deficiency . however , there is still a limited understanding of these other risk factors , particularly with respect to their independent contribution to copd risk and if there are differences in susceptibility between men and women . there are currently no tools to predict the development of copd in individuals free of the disease . most available tools are only able to identify patients with already established , but undiagnosed , copd ( see e.g. , refs 11,12 ) . there is then a pressing need for an accurate and easy - to - use instrument that simultaneously takes account of a range of risk factors and accurately identifies individuals at increased risk of developing copd , thereby offering the opportunity to target interventions in order to reduce morbidity and mortality . the aim of this study was to develop and validate a model for risk prediction of copd using routinely collected data from a large national primary care data set . the primary care clinical informatics unit at the university of aberdeen collects data from general practice administration system for scotland practices and includes almost 5 million patient - years of individual patient - level data . furthermore , the database has high completeness and accuracy of morbidity data and recordings on patients tobacco use . data extracted from 239 general practitioner ( gp ) practices contributing to the database were used in this analysis . using the random sample function in spss version 17.0 ( spss , chicago , il , usa ) , 66% of practices ( n=159 ) were allocated to a derivation cohort and 34% ( n=80 ) to a validation cohort . we defined an open cohort of patients aged 3574 at the start date ( 1 april 1998 ) , drawn from patients registered with the practices during the period from 1 april 1998 to 1 april 2008 . an entry date to the cohort was defined for each patient as the latest of the following dates : 35th birthday , date of registration with the practice or start date of the cohort ( 1 april 1998 ) . an exit date to the cohort was defined for each patient as the earliest of the following dates : date of first recorded diagnosis of copd , date of deregistration with the practice , death or end date of the cohort ( 1 april 2008 ) . patients were excluded if they had a recorded diagnosis of copd prior to the entry date or no recording of smoking status at any time . the number of patient - years of follow - up was calculated as the difference in years between each patient s entry date and exit date into the cohort . the primary outcome was the first recorded diagnosis of copd during the period between a patient s entry date and exit date into the cohort . the definition of copd was based on codes from the read clinical classification system , which was produced for clinicians in primary care and is used by the majority of primary care electronic patient record systems ( read codes h3 , h31 and below ( excluding h3101 , h31y0 , h3122 ) , h32 and below , and h36 to h3z ) . for a complete list of read codes used to define outcome and risk factors see supplementary appendix i. a range of potential risk factors for copd , which have been described in the literature and which were sufficiently recorded in the database , were assessed . age was categorised into 3539 , 4044 , 4549 , 5054 , 5559 , 6064 and 65 + years . ever - smoker or  never - smoker. we defined  ever - smokers as patients recorded as  smoker or  ex - smoker at any time , and  never - smokers as patients recorded as  non - smoker at any time and no codings as  smoker or  ex - smoker at any other time . asthma diagnosis was based on read codes ( see supplementary appendix i ) and regarded as a risk factor if it had been recorded prior to the patient s entry date into the cohort , with no recording as a reference . sex and socioeconomic status were regarded as time invariant potential risk factors , with the latter being measured using the carstairs index of deprivation ( coded 1=least deprived to 5=most deprived ) . there were too few data entries at baseline for the potential risk factors acute respiratory infections , respiratory symptoms , asthma , physical inactivity , ethnicity , occupational exposure to risk factors , family history of respiratory disease , pulmonary tuberculosis , and prescription of adreno - receptor agonists , bronchodilators , theophylline and inhaled corticosteroids , and hence these were discarded from the prediction analyses ( all variables were present in fewer than 3% of patients ) . we performed an a priori test to determine whether an association between copd and the most important risk factor , smoking status , was modified by sex by comparing a logistic regression model including smoking status , sex and the other above - mentioned risk factors with a model that in addition included the interaction term between smoking status and sex . the step to the model including the interaction term was statistically significant ( =37.77 , d.f.=1 , p<0.001 ) . the primary analysis consisted of the following steps , conducted separately for men and women . in the derivation cohort , a multiple cox proportional hazard regression model was used to estimate the coefficients and hazard ratios ( hrs ) of the potential risk factors for the primary outcome . on the basis of this model , a prognostic index ( pi ) was calculated for each patient from the derivation cohort as pider=i 
 xi , where i is the regression coefficient of the risk factor xi from the cox model ( this method was adapted from ref . pider ranged from 0 ( lowest risk ) to 7.51 ( highest risk ) in males and from 0 to 7.48 in females and was transformed into a variable with 10 categories based on the deciles of pider ( the values for calculating pider are presented in supplementary appendix ii ) . we then calculated the 10-year incidence rate of copd per interval in patients from the derivation cohort ( 1=lowest incidence of copd ; 10=highest ) , which we defined as the 10-year predicted incidence rate . pival for patients was then calculated from the validation cohort using the regression coefficients from the derivation cohort . pival was then again transformed into a variable with 10 intervals , but using the same cutoff points as in the derivation cohort . the 10-year observed incidence rate of copd per interval in patients from the validation cohort was then determined . the accuracy of the risk prediction model in discriminating between patients from the validation cohort who developed copd versus patients who did not was assessed by calculating the area under the receiver operating characteristics curve ( rocauc ) for all values of pival . finally , the prediction model was calibrated by plotting the predicted 10-year incidence of copd against the observed incidence for each interval on pival in patients from the validation cohort . in ancillary analyses , we deconstructed the prediction model and calculated the rocaucs for models including only age , only smoking , and only age and smoking using the same method as described above . the purpose of this analysis was to compare the accuracy of the full prediction model ( including all risk factors ) with models including only the most important risk factors of copd . the primary outcome was the first recorded diagnosis of copd during the period between a patient s entry date and exit date into the cohort . the definition of copd was based on codes from the read clinical classification system , which was produced for clinicians in primary care and is used by the majority of primary care electronic patient record systems ( read codes h3 , h31 and below ( excluding h3101 , h31y0 , h3122 ) , h32 and below , and h36 to h3z ) . for a complete list of read codes used to define outcome and risk factors see supplementary appendix i. a range of potential risk factors for copd , which have been described in the literature and which were sufficiently recorded in the database , were assessed . age was categorised into 3539 , 4044 , 4549 , 5054 , 5559 , 6064 and 65 + years . ever - smoker or  never - smoker. we defined  ever - smokers as patients recorded as  smoker or  ex - smoker at any time , and  never - smokers as patients recorded as  non - smoker at any time and no codings as  smoker or  ex - smoker at any other time . asthma diagnosis was based on read codes ( see supplementary appendix i ) and regarded as a risk factor if it had been recorded prior to the patient s entry date into the cohort , with no recording as a reference . sex and socioeconomic status were regarded as time invariant potential risk factors , with the latter being measured using the carstairs index of deprivation ( coded 1=least deprived to 5=most deprived ) . there were too few data entries at baseline for the potential risk factors acute respiratory infections , respiratory symptoms , asthma , physical inactivity , ethnicity , occupational exposure to risk factors , family history of respiratory disease , pulmonary tuberculosis , and prescription of adreno - receptor agonists , bronchodilators , theophylline and inhaled corticosteroids , and hence these were discarded from the prediction analyses ( all variables were present in fewer than 3% of patients ) . we performed an a priori test to determine whether an association between copd and the most important risk factor , smoking status , was modified by sex by comparing a logistic regression model including smoking status , sex and the other above - mentioned risk factors with a model that in addition included the interaction term between smoking status and sex . the step to the model including the interaction term was statistically significant ( =37.77 , d.f.=1 , p<0.001 ) . we therefore performed all analyses for men and women separately . the primary analysis consisted of the following steps , conducted separately for men and women . in the derivation cohort , a multiple cox proportional hazard regression model was used to estimate the coefficients and hazard ratios ( hrs ) of the potential risk factors for the primary outcome . on the basis of this model , a prognostic index ( pi ) was calculated for each patient from the derivation cohort as pider=i 
 xi , where i is the regression coefficient of the risk factor xi from the cox model ( this method was adapted from ref . 18 ) . pider ranged from 0 ( lowest risk ) to 7.51 ( highest risk ) in males and from 0 to 7.48 in females and was transformed into a variable with 10 categories based on the deciles of pider ( the values for calculating pider are presented in supplementary appendix ii ) . we then calculated the 10-year incidence rate of copd per interval in patients from the derivation cohort ( 1=lowest incidence of copd ; 10=highest ) , which we defined as the 10-year predicted incidence rate . pival for patients was then calculated from the validation cohort using the regression coefficients from the derivation cohort . pival was then again transformed into a variable with 10 intervals , but using the same cutoff points as in the derivation cohort . the 10-year observed incidence rate of copd per interval in patients from the validation cohort was then determined . the accuracy of the risk prediction model in discriminating between patients from the validation cohort who developed copd versus patients who did not was assessed by calculating the area under the receiver operating characteristics curve ( rocauc ) for all values of pival . finally , the prediction model was calibrated by plotting the predicted 10-year incidence of copd against the observed incidence for each interval on pival in patients from the validation cohort . in ancillary analyses , we deconstructed the prediction model and calculated the rocaucs for models including only age , only smoking , and only age and smoking using the same method as described above . the purpose of this analysis was to compare the accuracy of the full prediction model ( including all risk factors ) with models including only the most important risk factors of copd . the total number of patients in the cohort was 728,658 : 480,903 ( 66.0% ) in the derivation cohort and 247,755 ( 34.0% ) in the validation cohort . the median follow - up duration was 7.92 years ( interquartile range=3.7610.00 years ) and 7.88 years ( 3.7710.00 ) , respectively ( table 1 ) . during the study period there were 27,088 incident cases of copd from 4.9 million patient - years of observation in the total cohort ( table 1 ) , giving a crude incidence rate for copd of 5.53 per 1,000 patient - years ( 95% confidence interval ( ci ) , 5.465.60 ) . the mean age at copd diagnosis was 65.43 ( s.d.=9.73 ) years , with the risk of copd being found to increase with age . this association was stronger in males than in females ( table 2 ) . in both sexes , the risk of copd increased with increasing socioeconomic deprivation and in patients who had a previous recording of asthma ( table 2 ) . compared with never - smokers , the risk of copd was substantially higher in female smokers when compared with male smokers : 9.61 times higher in female ever - smokers ( 95% ci , 8.9210.43 ) and 6.72 times higher in male ever - smokers ( 95% ci , 6.197.30 ) . the accuracy of the risk prediction model in discriminating between patients who did and those who did not develop copd during the 10-year follow - up was rocauc=0.845 ( 95% ci , 0.8400.850 ) for females and rocauc=0.832 ( 95% ci , 0.8270.837 ) for males ( table 3 ; the roc curves are shown in supplementary figure 1 ) . the accuracy of the model was higher than that of the deconstructed models that included only age , only smoking , or only age and smoking ( table 3 ) . sensitivity and specificity values for the various cutoffs on the model s pi are presented in supplementary appendix ii . figure 1 shows the calibration plots for the full risk prediction model including all risk factors in the validation data set , separately for men and women . the model was well calibrated except for the highest risk category , in which the incidence of copd was overestimated by the model . we have developed and validated the first model for risk prediction of incident cases of copd using routinely collected data from a very large national general practice database . in the derivation cohort , the copd risk was 9.6 times higher in female ever - smokers compared with never - smokers and 6.7 times higher in male ever - smokers compared with never - smokers . the risk of copd increased for both sexes with increasing level of deprivation and in patients with a previous recording of asthma . in the validation cohort , the model discriminated well between patients who did and those who did not develop copd . an advantage of the approach followed in this study is the inclusion of less well - established risk factors . all time variant risk factors in our model were recorded by the gps before the patients entry date into the cohort . we used a longitudinal design in which we followed up patients for a median duration of 8 years . furthermore , we were able to assess the interaction between sex and the most important risk factor , smoking , which has not been possible before . however , only risk factors that are sufficiently assessed and/or recorded in general practice could be considered . although we included the most important risk factors known from the literature , other factors may have been overlooked , such as physical inactivity as well as occupational exposure to dust , chemical agents and fumes . inclusion of such risk factors , in the presence of sufficiently recorded data , may have increased the accuracy of the model . also , the use of routine data did not allow us to calculate pack - years of smoking history , which would be the desirable indicator of risk from tobacco exposure than our rather crude categorization of  ever - smokers versus  never - smokers. we used a gp - recorded diagnosis of copd to define our primary outcome , but the diagnosis could not be formally verified through linkage to individual lung function measures . as a consequence , misclassification of copd ( over- or under - diagnosis ) may have occurred in some cases . it would have been very useful to validate the gps diagnosis of copd with individual patient spirometric data , but , unfortunately , these data were not available in our database . generally speaking , however , the validity of the gp - recorded diagnosis of copd in scottish primary care can be considered accurate . since the publication of the national institute for health and clinical excellence guideline for the management of copd in 2004 and the introduction of the quality outcomes framework , which provides gp practices additional payment for high levels of clinical care , the recording of spirometry values in copd patients has markedly increased . a recent study undertaken in scottish gp practices showed that 88% of copd patients had a recording of forced expiratory volume in 1s in the previous 15 months . results from a dutch study indicate that the validity and quality of spirometry performed in general practice is satisfactory compared with spirometry performed in a pulmonary function laboratory . furthermore , a canadian study showed that individuals with copd can be accurately identified in health administration data . nevertheless , it should be noted that copd is a complex disease that consists of several clinical phenotypes , but these were not distinguished by our model . our work is novel in its use of a longitudinal primary care database to predict future copd in a population of individuals registered who have no previous recording of the disease . the incidence rate of 5.53 per 1,000 patient - years was higher than that found in our earlier analysis of english qresearch practices ( 2.0 per 1,000 patient - years ) ; however , data from qresearch included the entire population and the estimates are therefore likely to substantially underestimate incidence in the age groups most at risk for copd . our incidence rate was also higher than that found in a dutch study using a gp database ( 2.9 per 1,000 patient - years ) but comparable to that found in a canadian study using population - based health administrative data ( 5.9 per 1,000 person - years ) . differences between studies in reported rates may be explained by differences in source population , definition of outcome and duration of follow - up . as expected , smoking was found to be the most important modifiable risk factor for copd . this important finding indicates that smoking is likely to lead to higher rates of newly diagnosed copd among women than in men . there is some evidence from previous research that females who smoke are more susceptible to developing copd than men who smoke . explanations for this phenomenon include gender differences in which cigarette smoke is inhaled and metabolised , genetic predisposition for smoking - related lung damage and differences in airway anatomy . it may also be possible , however , that this gender difference is a result of bias . if , for example , men are more likely to underreport their smoking behaviour or are less likely to be recorded as a smoker , there would be a higher misclassification rate among men , causing bias towards a smaller hr . furthermore , if some important but unmeasured risk factor would exist primarily in men ( e.g. , occupational exposure to dust , chemicals or fumes ) the relative risk of another risk factor ( smoking ) would be lower in men than in women . we also found that increasing socioeconomic deprivation was a risk factor for copd diagnosis , independent of smoking status . the association between copd and socioeconomic status has been found previously and is likely due to a number of exposures , including environmental or occupational exposure to smoke or to other pollutants . similar to our cohort , previous studies reported that patients with physician - diagnosed asthma were at increased risk of developing copd . it has been hypothesised that asthma and copd share a common background and that airway inflammation in those with increased airway hyperresponsiveness may lead to lung remodelling with resulting airflow obstruction . the model discriminated well between patients who did and those who did not develop copd during the 10 years of follow - up , indicated by rocaucs of 0.85 for females and 0.83 for males with very small cis . these figures were higher than for the deconstructed model including only age and smoking ( rocaucs of 0.83 for females and 0.82 for males ) . thus , inclusion of the risk factors , level of deprivation and previous recording of asthma , increased the accuracy of predicting future copd over and above the most important and well - known risk factors smoking and age . the model s calibration was also good , except for the highest risk category in which the incidence of copd was slightly overestimated by the model . this may have been the result of the very high hrs in the oldest - age category ( hr=25.75 for females and hr=31.89 for males aged 65 + years relative to the 3539 age category ) . our risk prediction model has the potential to be used in routine clinical practice to identify those at highest risk and thereby offers the opportunity for better and more efficient targeting of interventions aiming to reduce the risk of developing copd , in particular smoking cessation interventions . for this use , we have developed a simple  copd risk calculator ( see supplementary appendix iii ) . our model is therefore complementary to the various existing risk models concerned with the early detection of patients with existing , but still undiagnosed , copd ( see e.g. , refs 11,12 ) . in summary , we have developed and validated the first risk prediction model for the development of copd , which has the major advantage of being populated entirely by routinely collected data held in electronic health records . we have developed and validated the first model for risk prediction of incident cases of copd using routinely collected data from a very large national general practice database . in the derivation cohort , the copd risk was 9.6 times higher in female ever - smokers compared with never - smokers and 6.7 times higher in male ever - smokers compared with never - smokers . the risk of copd increased for both sexes with increasing level of deprivation and in patients with a previous recording of asthma . in the validation cohort , the model discriminated well between patients who did and those who did not develop copd . an advantage of the approach followed in this study is the inclusion of less well - established risk factors . all time variant risk factors in our model were recorded by the gps before the patients entry date into the cohort . we used a longitudinal design in which we followed up patients for a median duration of 8 years . furthermore , we were able to assess the interaction between sex and the most important risk factor , smoking , which has not been possible before . however , only risk factors that are sufficiently assessed and/or recorded in general practice could be considered . although we included the most important risk factors known from the literature , other factors may have been overlooked , such as physical inactivity as well as occupational exposure to dust , chemical agents and fumes . inclusion of such risk factors , in the presence of sufficiently recorded data , may have increased the accuracy of the model . also , the use of routine data did not allow us to calculate pack - years of smoking history , which would be the desirable indicator of risk from tobacco exposure than our rather crude categorization of  ever - smokers versus  never - smokers. we used a gp - recorded diagnosis of copd to define our primary outcome , but the diagnosis could not be formally verified through linkage to individual lung function measures . as a consequence , misclassification of copd ( over- or under - diagnosis ) it would have been very useful to validate the gps diagnosis of copd with individual patient spirometric data , but , unfortunately , these data were not available in our database . generally speaking , however , the validity of the gp - recorded diagnosis of copd in scottish primary care can be considered accurate . since the publication of the national institute for health and clinical excellence guideline for the management of copd in 2004 and the introduction of the quality outcomes framework , which provides gp practices additional payment for high levels of clinical care , the recording of spirometry values in copd patients has markedly increased . a recent study undertaken in scottish gp practices showed that 88% of copd patients had a recording of forced expiratory volume in 1s in the previous 15 months . results from a dutch study indicate that the validity and quality of spirometry performed in general practice is satisfactory compared with spirometry performed in a pulmonary function laboratory . furthermore , a canadian study showed that individuals with copd can be accurately identified in health administration data . nevertheless , it should be noted that copd is a complex disease that consists of several clinical phenotypes , but these were not distinguished by our model . our work is novel in its use of a longitudinal primary care database to predict future copd in a population of individuals registered who have no previous recording of the disease . the incidence rate of 5.53 per 1,000 patient - years was higher than that found in our earlier analysis of english qresearch practices ( 2.0 per 1,000 patient - years ) ; however , data from qresearch included the entire population and the estimates are therefore likely to substantially underestimate incidence in the age groups most at risk for copd . our incidence rate was also higher than that found in a dutch study using a gp database ( 2.9 per 1,000 patient - years ) but comparable to that found in a canadian study using population - based health administrative data ( 5.9 per 1,000 person - years ) . differences between studies in reported rates may be explained by differences in source population , definition of outcome and duration of follow - up . as expected , smoking was found to be the most important modifiable risk factor for copd . this important finding indicates that smoking is likely to lead to higher rates of newly diagnosed copd among women than in men . there is some evidence from previous research that females who smoke are more susceptible to developing copd than men who smoke . explanations for this phenomenon include gender differences in which cigarette smoke is inhaled and metabolised , genetic predisposition for smoking - related lung damage and differences in airway anatomy . it may also be possible , however , that this gender difference is a result of bias . if , for example , men are more likely to underreport their smoking behaviour or are less likely to be recorded as a smoker , there would be a higher misclassification rate among men , causing bias towards a smaller hr . furthermore , if some important but unmeasured risk factor would exist primarily in men ( e.g. , occupational exposure to dust , chemicals or fumes ) the relative risk of another risk factor ( smoking ) would be lower in men than in women . we also found that increasing socioeconomic deprivation was a risk factor for copd diagnosis , independent of smoking status . the association between copd and socioeconomic status has been found previously and is likely due to a number of exposures , including environmental or occupational exposure to smoke or to other pollutants . similar to our cohort , previous studies reported that patients with physician - diagnosed asthma were at increased risk of developing copd . it has been hypothesised that asthma and copd share a common background and that airway inflammation in those with increased airway hyperresponsiveness may lead to lung remodelling with resulting airflow obstruction . the model discriminated well between patients who did and those who did not develop copd during the 10 years of follow - up , indicated by rocaucs of 0.85 for females and 0.83 for males with very small cis . these figures were higher than for the deconstructed model including only age and smoking ( rocaucs of 0.83 for females and 0.82 for males ) . thus , inclusion of the risk factors , level of deprivation and previous recording of asthma , increased the accuracy of predicting future copd over and above the most important and well - known risk factors smoking and age . the model s calibration was also good , except for the highest risk category in which the incidence of copd was slightly overestimated by the model . this may have been the result of the very high hrs in the oldest - age category ( hr=25.75 for females and hr=31.89 for males aged 65 + years relative to the 3539 age category ) . our risk prediction model has the potential to be used in routine clinical practice to identify those at highest risk and thereby offers the opportunity for better and more efficient targeting of interventions aiming to reduce the risk of developing copd , in particular smoking cessation interventions . for this use , we have developed a simple  copd risk calculator ( see supplementary appendix iii ) . our model is therefore complementary to the various existing risk models concerned with the early detection of patients with existing , but still undiagnosed , copd ( see e.g. , refs 11,12 ) . in summary , we have developed and validated the first risk prediction model for the development of copd , which has the major advantage of being populated entirely by routinely collected data held in electronic health records .
background : there is increasing interest in the earlier detection of , and intervention in , patients at highest risk of developing chronic obstructive pulmonary disease ( copd).aims : the objective of this research was to develop and validate a risk prediction model for general practitioner ( gp)-recorded diagnosis of copd.methods:we used data from 239 scottish gp practices ; two - thirds were randomly allocated to a derivation cohort and the other third to a validation cohort . 
 we included patients aged 3574 years at the cohort entry date , and excluded patients with a recorded diagnosis of copd prior to the entry date and with missing data on smoking status.results:there were 480,903 patients in the derivation cohort and 247,755 in the validation cohort . 
 the incidence of copd in the total cohort was 5.53/1,000 patient - years of follow - up ( 95% confidence interval ( ci ) , 5.465.60 ) . in the derivation cohort , the copd risk for ever- versus never - smokers was substantially higher in women ( hazard ratio ( hr)=9.61 , 95% ci , 8.9210.34 ) than in men ( hr=6.72 , 95% ci , 6.197.30 ) . 
 other risk factors for both sexes were level of deprivation and a previously recorded asthma diagnosis . in the validation cohort , 
 the model discriminated well between patients who did and those who did not develop copd : area under the receiver operating characteristics curve=0.845 ( 95% ci , 0.8400.850 ) for females and 0.832 ( 95% ci , 0.8270.837 ) for males.conclusions:we have developed and validated the first risk prediction model for copd , which has the major advantage of being populated entirely by routinely collected data and consequently may be used for clinical practice .