 Research article
 Open Open Peer Review
 Published:
Does adding risktrends to survival models improve inhospital mortality predictions? A cohort study
BMC Health Services Researchvolume 11, Article number: 171 (2011)
Abstract
Background
Clinicians informally assess changes in patients' status over time to prognosticate their outcomes. The incorporation of trends in patient status into regression models could improve their ability to predict outcomes. In this study, we used a unique approach to measure trends in patient hospital death risk and determined whether the incorporation of these trend measures into a survival model improved the accuracy of its risk predictions.
Methods
We included all adult inpatient hospitalizations between 1 April 2004 and 31 March 2009 at our institution. We used the daily mortality risk scores from an existing timedependent survival model to create five trend indicators: absolute and relative percent change in the risk score from the previous day; absolute and relative percent change in the risk score from the start of the trend; and number of days with a trend in the risk score. In the derivation set, we determined which trend indicators were associated with time to death in hospital, independent of the existing covariates. In the validation set, we compared the predictive performance of the existing model with and without the trend indicators.
Results
Three trend indicators were independently associated with time to hospital mortality: the absolute change in the risk score from the previous day; the absolute change in the risk score from the start of the trend; and the number of consecutive days with a trend in the risk score. However, adding these trend indicators to the existing model resulted in only small improvements in model discrimination and calibration.
Conclusions
We produced several indicators of trend in patient risk that were significantly associated with time to hospital death independent of the model used to create them. In other survival models, our approach of incorporating risk trends could be explored to improve their performance without the collection of additional data.
Background
Many physicians informally prognosticate patients by determining changes in their health status over time. Physicians assess whether patients are getting better, getting worse, or staying the same by comparing their current health state to that quantified from previous assessments. Conclusions made from such assessments are essential for gauging a patient's present status and predicting future outcomes.
Findings from several studies suggest that trends (i.e. changes over time) in prognostic factors may play an important role in predicting patient outcomes. In prostate cancer patients, changes in healthrelated quality of life measurements were associated with mortality [1] and other clinical outcomes [2]. In chronic heart failure patients, relative changes in the level of Nterminal probrain natriuretic peptide [3] and changes in peak oxygen consumption [4] were found to be associated with the risk of death. In cardiac surgery patients, even small changes in serum creatinine after surgery were found to predict subsequent death independent of other established perioperative risk factors [5]. In each of these studies, changes over time were measured prior to the analytical baseline and were not measured during the observation period. Continual measurement of changes in prognostic markers throughout the observation period could further improve risk prediction.
We recently derived and internally validated a timedependent survival model for hospital death that could predict a patient's daily mortality risk via estimation of the hazard of death on each day [6]. The model expanded on that of Escobar et al. [7] by using Cox (instead of logistic) regression methods and including timedependent covariates. Our model had good discrimination (concordance probability = 0.879) and calibration (close agreement between the observed and expected number of deaths in all risk strata over all admission days). Our model's commendable predictive performance was largely due to the inclusion of timedependent covariates, whose values could be updated on a daily basis [unpublished data, Wong et al.]. However, our model used only the most recent covariate values to predict a patient's daily risk of hospital death and did not consider trends over time in a patient's covariate values or risk of death prior to that day.
In this study, we incorporated indicators of trend in patient risk into our timedependent model. We first calculated daily risk scores (summary indices of risk based on a patient's daily covariate values) from our existing model and used these to generate several indicators of trend in patient risk. We then reestimated our survival model including these trend indicators in addition to the original model covariates. We did this to determine whether prior changes in a patient's risk of hospital death were predictive of daily death risk independent of the original model covariates. Finally, we compared the predictive performance of the existing model with and without the trend indicators to determine if these markers significantly improved the model's ability to predict daily risk of hospital mortality.
Methods
Study design and setting
This was a cohort study including all inpatient hospitalizations that occurred between 1 April 2004 and 31 March 2009 at The Ottawa Hospital (TOH). TOH is a tertiarycare teaching hospital in Ottawa, Canada that consists of two inpatient campuses, operates within a publicly funded health care system, and serves a population of approximately 1.5 million people in Ottawa and Eastern Ontario. All data in this study came from a large repository of administrative and laboratory data originating from the hospital's major operational systems. We derived all models on a randomly selected 66% of hospitalizations and assessed their performance on the remaining admissions. The unit of analysis in the study was the hospitalization. This study was approved by the TOH Research Ethics Board.
Study cohort
We used the same set of admissions as that used previously to derive and internally validate our timedependent survival model [6]. This cohort included all inpatient admissions at our hospital during the study period except those where the patient was younger than 15 years of age, transferred to or from another acute care hospital, or hospitalized for obstetrical reasons. Hospitalizations of patients transferred between TOH campuses were linked and considered a single admission.
Timedependent survival model for hospital mortality
The timedependent model for hospital mortality was derived using Cox regression methods [6]. The model included three timeindependent covariates whose values remained constant over the hospitalization: patient age^{2} (expressed as a restricted cubic spline); admission type (emergent surgical and nonsurgical, elective surgical and nonsurgical); and the Elixhauser score [8] to summarize the patient's comorbidities at admission.
The model also included four timedependent covariates whose values could be updated on daily basis: intensive care unit (ICU) status  a binary variable whose value was '1' for patients in the ICU at the beginning of the day ('0' otherwise); alternative level of care (ALC) status  a binary variable whose value was '1' for patients awaiting placement in a longterm care facility and no longer receiving active medical care ('0' otherwise); the Procedure Independent Mortality Risk score [unpublished data, van Walraven et al.]  a continuous variable summarizing the performance of important therapeutic procedures independently associated with hospital death risk; and the number of days elapsed since the last PIMR procedure (expressed as x^{0.5}). The daily value of the PIMR score was equal to the score of the most recently performed PIMR procedure ('0' if no PIMR procedure had been performed previously, or the sum of the individual scores if more than one PIMR procedure was performed on a given day).
Finally, the model included a number of interaction terms between covariates and between specific timeindependent variables and a logarithmic transformation of time. Details of this model are described elsewhere [6].
Markers of daily death risk from the timedependent model
The timedependent survival model could produce two different, but related estimates of daily death risk. First, the model could estimate a patient's hazard of death on each hospitalization day (Appendix). The hazard on a given day represents the instantaneous rate of death on that day and can be interpreted as a patient's risk of death on that day conditional upon his or her survival up to that day.
Second, the model could produce a daily "risk score" by summing the product of each covariate value and its regression coefficient from the model (i.e. Σβx) on each hospitalization day. The risk score is related to the hazard because the latter is calculated by multiplying the exponential of the risk score (i.e. e ^{Σβx}) by the baseline hazard estimate (i.e. the hazard for a patient with all covariate values set to 0 or the reference value).
In this study, we used the daily risk score instead of the hazard to measure changes over time in a patient's daily death risk. This is because changes in the hazard over time are due to changes in a patient's covariate values as well as fluctuations in the baseline hazard over time. In contrast, changes in the daily risk score are directly proportional to changes in a patient's covariate values and therefore more closely reflect changes in a patient's condition.
Indicators of trend in daily death risk
We created five timedependent variables to quantify the direction, degree, and duration of change in a patient's risk score prior to each hospitalization day. These variables (which we refer to as "trend indicators") were: 1) the absolute change in the risk score from the previous day; 2) the relative percent change in the risk score from the previous day; 3) the absolute change in the risk score from the start of the trend; 4) the relative percent change in the risk score from the start of the trend; and 5) the number of consecutive days with a trend in the risk score. We defined a trend as a period of time over which the daily risk score increased or decreased over consecutive days. We expressed all of the trend indicators as continuous variables, using a positive or negative number to indicate an increasing or decreasing risk score, respectively. If there was no change in the risk score or no previous risk score for comparison (i.e. on the first day of the hospitalization), the value of all trend indicators was set to 0.
Incorporation of trend indicators into the existing timedependent model
We first added the individual trend indicators (expressed as timedependent covariates) separately to the existing timedependent survival model to determine whether each indicator was significantly associated with time to hospital death (independent of the covariates in the existing model) and whether the relative or absolute change was more informative. We used the likelihood ratio test to determine the statistical significance of each trend indicator and compared the prognostic value of the trend indicators using the value of Akaike's Information Criterion (AIC) for each model.
Next, we jointly added only those trend indicators that were individually significant (based on the likelihood ratio test) to the existing model. If the relative and absolute change in the risk score from the previous day or from the start of the trend were individually significant, we only added the trend indicator with the greatest prognostic value (i.e. that which produced the model with the lowest AIC when added separately to the existing model) to avoid multicollinearity. We then used the methods of Sauerbrei and Royston [9] to identify the best seconddegree fractional polynomial transformation for each trend indicator in the joint model and removed any trend indicators that were no longer significant at α = 0.05.
We derived all models using a randomly selected 66% of hospitalizations (the derivation set). For all analyses, we used the PHREG procedure in SAS, Version 9.2 (Cary, NC).
Performance of the existing model with and without the trend indicators
In the remaining third of admissions (the validation set), we compared the predictive performance of the existing model with and without the trend indicators using four different methods.
First, we measured the discrimination of each model by calculating the concordance probability (also known as the area under the ROC curve) with 95% confidence intervals (CIs) [10]. The concordance probability represents the proportion of all informative pairs of patients where the patient with the lower modelpredicted risk of death survives longer.
Second, we measured the calibration of each model by dividing admissions into risk deciles on each admission day and calculating the number of observed and expected deaths within each risk decile on each day. We calculated the number of expected deaths by summing the hazard on that day of all patients within each decile. We then summed the number of observed and expected deaths within each risk decile across all admission days to give the final estimate. In order to directly compare the calibration of the two models, we used the same risk decile groupings (based on the daily risk score from the new model with the trend indicators). To test for a significant difference between the number of observed and expected events within each decile, we calculated the pvalue associated with the standardized zstatistic [11].
Lastly, we calculated the Integrated Discrimination Improvement (IDI) and the Net Reclassification Improvement (NRI) [12] to quantify the improvement in predictive performance attained by adding the trend covariates to the existing model. The IDI represents the difference in discrimination slopes between the new and existing model (where the discrimination slope is the mean predicted risk of death among patients who died minus the mean predicted risk of death among patients who survived). The IDI can also be interpreted as the change in average sensitivity minus the change in average (1specificity). An IDI above zero indicates improved discrimination with the new model. We calculated the IDI with 95% CIs [12] on each admission day up to day 32 (the 95^{th} percentile of observed length of stay) using patients' hazard estimate and vital status for that day. We calculated the IDI on each admission day because patients' covariate values and hazard of death could change daily.
The NRI quantifies the amount of correct reclassification (i.e. upwards for events and downwards for nonevents) when comparing the predicted risk of death from the new versus the existing model. Specifically, the NRI is calculated as the proportion of correct minus incorrect reclassifications among events (i.e. patients who died) plus the proportion of correct minus incorrect reclassifications among nonevents (i.e. patients who were discharged alive). An NRI above zero indicates improved risk prediction with the new model. Because no established risk categories for hospital mortality exist, we calculated a categoryless NRI, where upward reclassification was defined as a higher predicted risk of death from the new model and downward reclassification was defined as a lower predicted risk of death from the new model [13]. As with the IDI, we calculated the NRI with 95% CIs [12] on each of the first 32 admission days using patients' hazard estimate and vital status for that day.
Results
A total of 159 787 hospitalizations were used previously to derive and internally validate our existing timedependent survival model [6]. Characteristics of the derivation and validation sets were very similar (Table 1). Most commonly, hospitalizations were emergent and nonsurgical and involved elderly patients (median age 61). At admission, most patients had few or no comorbidities (median Elixhauser score of 0), a fairly low acuity of illness (median LAPS of 4 in the validation set), and a low estimated hazard of death (median hazard of 0.00008, as predicted by the existing timedependent model). PIMR procedures were performed during 28% of hospitalizations, most of which were lowrisk procedures (median PIMR score of 1). Only 3% of hospitalizations had a PIMR procedure performed on more than one day. Few patients were admitted to the ICU (5%) or awaited placement (4%) during the hospitalization. Most admissions were fairly short (median length of stay of 5 days). Over the study period, 5% of admissions ended in death.
The median value of the risk score from the existing model increased over time, while the variability of the risk score remained constant (Figure 1A). The median value of each of the trend indicators was fairly stable over time (Figure 1B1F). Variability of the absolute change in the risk score from the start of the trend remained stable over time (Figure 1D). In contrast, variability increased over time for the number of consecutive days with a trend in the risk score (Figure 1B) and decreased over time for the remaining trend indicators. Compared to the risk score from the previous day, the risk score on days 2, 3, and 4 increased in 70%, 66%, and 65% of patients, respectively, and decreased in 30%, 34% and 35% of patients, respectively. The risk score did not stay the same for any patients because the existing model included interaction terms with time (which altered the risk score even if the covariate values remained the same).
When we added each trend indicator separately to the existing model, three trend indicators were independently and strongly significant: the absolute change in the risk score from the previous day; the absolute change in the risk score from the start of the trend; and the number of consecutive days with a trend in the risk score (Table 2). Of these three covariates, the absolute change from the start of trend had the greatest prognostic value because it produced the model with the lowest AIC (Table 2).
These three trend indicators were still highly significant (p < .0001) when added jointly to the existing model using the following transformations: X^{3} + X^{3}*log(X) for the absolute change in the risk score from the previous day; X^{0.5} + X^{0.5}*log(X) for the absolute change in the risk score from the start of the trend; and X^{2} + X^{2}*log(X) for the number of consecutive days with a trend in the risk score (we first shifted all original values up by the minimum observed value to ensure the values were greater than zero). Moreover, all of the original covariates in the existing model remained statistically significant in the presence of these trend indicators.
In the final model, the trend indicators notably changed the predicted risk of death in hospital. The adjusted hazard ratio increased as the number of days with an increasing trend in the risk score increased (Figure 2A, solid line), the absolute change in the risk score from the previous day increased (Figure 2B, solid line), and the absolute change in the risk score from the start of the trend increased (Figure 2C, solid line). The adjusted hazard ratio decreased as the number of days with a decreasing trend in the risk score increased (Figure 2A, dotted line) and as the absolute change in the risk score from the previous day decreased (Figure 2B, dotted line). Contrary to our expectations, the hazard ratio increased for larger decreases in the risk score from the start of the trend (Figure 2C, dotted line).
However, the addition of the trend indicators to the existing model produced only a marginal, nonsignificant improvement in the concordance probability. The concordance probability of the existing model was 0.8790 (95% CI 0.87180.8861) compared to 0.8801 (0.87300.8873) for the new model, representing an absolute increase of only 0.11%.
The calibration of both models was excellent. Within each risk decile, the number of deaths predicted by each model was not significantly different from the number of observed deaths (Table 3). However, the predictions from the model that incorporated trend indicators were not noticeably better. This model predicted slightly closer to the number of observed deaths in six risk deciles, while the existing model (without trend indicators) predicted slightly closer in the other four deciles (Table 3). Overall, the model incorporating trend indicators predicted closer to the total number of deaths, but only by 12 deaths compared to the number of deaths predicted by the existing model (Table 3 last row).
The IDI suggested that the addition of the trend indicators did not significantly improve the overall discrimination of the existing model. The IDI was not statistically significant on 29 out of 32 days (Figure 3). On days 3 and 11, the IDI was 0.006 and 0.003, respectively, and was statistically significant on both days (suggesting improvement in overall discrimination). However, on day 1, the IDI was below zero (0.003) and statistically significant (suggesting worse overall discrimination). On day 2, the IDI was particularly negative (0.043), but not statistically significant.
The NRI also suggested that the addition of the trend indicators did not significantly improve the daily performance of the existing model. The NRI was not statistically significant on 29 days (Figure 4). On days 2, 3, and 16, however, the NRI was significantly above zero, with a value of 0.32, 0.16, and 0.33, respectively (Figure 4).
Discussion
In this study, we determined if changes over time in a patient's health status were predictive of a patient's daily risk of hospital death independent of his or her current health status. To do this, we first used an existing timedependent survival model for hospital mortality to produce summary indices of hospital death risk (i.e. risk scores) on each day of a patient's hospitalization. We then used these risk scores to generate indicators of trend (change over time) in a patient's risk of hospital death. Finally, we added these trend indicators to the existing survival model and determined whether their inclusion improved the model's predictive ability.
We found that three trend indicators (the absolute change in the risk score from the previous day; the absolute change in the risk score from the start of the trend; and the number of consecutive days with a trend in the risk score) were significantly and independently associated with the risk of hospital mortality. Moreover, when these trend indicators were added to the existing model, the original covariates remained statistically significant. However, we found that adding these trend indicators to the existing survival model did not noticeably improve its predictive performance.
We believe that the approach we used to measure changes over time in patient risk is unique and efficient. By simply using the daily risk scores produced by the existing timedependent survival model, we were able to create a number of statistically significant trend indicators without having to collect additional patient data. Further studies should determine whether our approach is generalizable to other survival models that include timedependent covariates.
The effect of larger absolute decreases in the risk score from the start of the trend was noteworthy (Figure 2C, dotted line). The model predicted a higher hazard of death for larger absolute decreases in the risk score over time. This suggests that patients with larger decreases in their risk score over time had worse outcomes than those with smaller decreases in their risk score. This observation could be due to sicker patients having higher risk scores to begin with and therefore experiencing larger decreases in their risk score over time. In contrast, relatively healthier patients may experience only small decreases in their risk score over time because their risk score is lower to begin with.
Several reasons could explain why the trend indicators were highly statistically significant (p < .0001) but did not notably improve the predictive performance of the existing model. Since the performance of the existing model was already very good, we needed new covariates with a very large and independent association with hospital mortality in order to produce noticeable improvements in the model's performance [12]. However, the magnitude of association between the trend indicators and the risk of hospital death was probably only moderate or even small since most hospitalizations were short (median stay of five days) and involved relatively healthy patients, thereby making it unlikely that the risk score would change drastically over most hospitalizations. Moreover, the trend indicators were likely highly statistically significant because of our large study size, which can make moderate or even small associations statistically significant.
While our approach of using modelgenerated risk scores to measure trends in patient health status is efficient and relatively simple, it is computationally intensive and may not appeal to those who find it too challenging or laborious. For example, even the calculation of the risk score itself could be challenging in cases where the existing model contains a large number of predictors and/or interaction terms. Another disadvantage of our approach is that it cannot reliably measure trends at the very start of the observation period (since there are no previous risk scores for comparison). On day 1, because there were no previous risk scores available for all admissions, we set the value of the trend indicators to zero (assuming neither an improving nor deteriorating health status). This may have been inaccurate for some patients and may have adversely affected the model fit early on, as suggested by the negative value of the IDI on days 1 and 2 (Figure 3). Therefore, we suggest that models including trend indicators be used for risk prediction only once patients have been observed long enough to measure a trend in their risk scores. In our case, just a few days may be sufficient since the value of the IDI was positive and statistically significant on day 3 (Figure 3).
Conclusions
In this study, we demonstrate a unique and efficient approach to measure trends in patient risk over time. We used risk scores calculated on a daily basis from an existing timedependent survival model for hospital mortality to create several trend indicator variables. When added to the existing model, these trend indicators were significantly associated with the risk of hospital death independent of the original variables in the existing model. However, the clinical significance of these trend indicators was minimal because they did not noticeably improve the predictive performance of the existing model. Future research should determine whether the approach we present in this study is generalizable to other timedependent survival models and can significantly improve the performance of survival models with much longer time horizons where larger changes in patient risk are more likely.
Appendix: Calculation of the daily hazard of death from a timedependent Cox model
The hazard of death at time t represents the instantaneous rate of death at t and can be interpreted as the risk of death at t conditional upon survival to t. The hazard of death can be estimated from a Cox regression model using the formula:
where h(t) is the estimated hazard of death on day t, Σβx is the "risk score" (i.e. the sum of the product of each covariate value and its parameter estimate), and h _{ 0 } (t) is the estimated baseline hazard of death on day t.
To estimate a patient's hazard of death on each hospitalization day with our timedependent Cox model, we used SAS to obtain daily estimates of the baseline hazard function and then multiplied the baseline hazard estimate for each day by the patient's "risk score" from the model for that day. Note that a patient's risk score could change over the hospitalization because the model included timedependent covariates.
Abbreviations
 AIC:

Akaike's Information Criterion
 ALC:

Alternative Level of Care
 CI:

Confidence Interval
 IDI:

Integrated Discrimination Improvement
 ICU:

Intensive Care Unit
 NRI:

Net Reclassification Improvement
 PIMR:

Procedure Independent Mortality Risk
 ROC:

Receiver Operating Curve
 TOH:

The Ottawa Hospital.
References
 1.
Sadetsky N, Hubbard A, Carroll PR, Satariano W: Predictive value of serial measurements of quality of life on allcause mortality in prostate cancer patients: data from CaPSURE (cancer of the prostate strategic urologic research endeavor) database. Qual Life Res. 2009, 18: 10191027. 10.1007/s1113600995267.
 2.
Sullivan PW, Nelson JB, Mulani PM, Sleep D: Quality of life as a potential predictor for morbidity and mortality in patients with metastatic hormonerefractory prostate cancer. Qual Life Res. 2006, 15: 12971306. 10.1007/s1113600600032.
 3.
Masson S, Latini R, Anand IS, Barlera S, Angelici L, Vago T, Tognoni G, Cohn JN: Prognostic value of changes in Nterminal probrain natriuretic peptide in ValHeFT (Valsartan Heart Failure Trial). J Am Coll Cardiol. 2008, 52: 9971003. 10.1016/j.jacc.2008.04.069.
 4.
Florea VG, Henein MY, Anker SD, Francis DP, Chambers JS, Ponikowski P, Coats AJ: Prognostic value of changes over time in exercise capacity and echocardiographic measurements in patients with chronic heart failure. Eur Heart J. 2000, 21: 146153. 10.1053/euhj.2000.1737.
 5.
Lassnigg A, Schmidlin D, Mouhieddine M, Bachmann LM, Druml W, Bauer P, Hiesmayr M: Minimal changes of serum creatinine predict prognosis in patients after cardiothoracic surgery: a prospective cohort study. J Am Soc Nephrol. 2004, 15: 15971605. 10.1097/01.ASN.0000130340.93930.DD.
 6.
Wong J, Taljaard M, Forster AJ, Escobar GJ, van Walraven C: Derivation and validation of a model to predict daily risk of death in hospital. Medical Care. 2011.
 7.
Escobar GJ, Greene JD, Scheirer P, Gardner MN, Draper D, Kipnis P: Riskadjusting hospital inpatient mortality using automated inpatient, outpatient, and laboratory databases. Med Care. 2008, 46: 232239. 10.1097/MLR.0b013e3181589bb6.
 8.
van Walraven C, Austin PC, Jennings A, Quan H, Forster AJ: A modification of the Elixhauser comorbidity measures into a point system for hospital death using administrative data. Med Care. 2009, 47: 626633. 10.1097/MLR.0b013e31819432e5.
 9.
Sauerbrei W, MeierHirmer C, Benner A, Royston P: Multivariable regression model building by using fractional polynomials: Description of SAS, STATA and R programs. Computational Statistics & Data Analysis. 2006, 50: 34643485. 10.1016/j.csda.2005.07.015.
 10.
Kremers WK: Concordance for Survival Time Data: Fixed and Timedependent Covariates and Possible Ties in Predictor and Time. 2007, Mayo Foundation
 11.
May S, Hosmer DW: A simplified method of calculating an overall goodnessoffit test for the Cox proportional hazards model. Lifetime Data Anal. 1998, 4: 109120. 10.1023/A:1009612305785.
 12.
Pencina MJ, D'Agostino RB, D'Agostino RB, Vasan RS: Evaluating the added predictive ability of a new marker: from area under the ROC curve to reclassification and beyond. Stat Med. 2008, 27: 157172. 10.1002/sim.2929.
 13.
Pencina MJ, D'Agostino RB, Steyerberg EW: Extensions of net reclassification improvement calculations to measure usefulness of new biomarkers. Stat Med. 2011, 30: 1121. 10.1002/sim.4085.
Prepublication history
The prepublication history for this paper can be accessed here:http://www.biomedcentral.com/14726963/11/171/prepub
Acknowledgements and Funding
This study was funded by the Canadian Institutes of Health Research and the Department of Medicine, University of Ottawa.
Author information
Additional information
Competing interests
The authors declare that they have no competing interests.
Authors' contributions
JW was involved in the study design, conducted the data analysis, interpreted the data, and led the drafting of the manuscript. CvW and MT participated in the study design, helped with the interpretation of the data, and reviewed the manuscript for its clinical and statistical content. AJF also participated in the study design and reviewed the manuscript for its clinical content. All authors have read and approved the final manuscript.
Authors’ original submitted files for images
Rights and permissions
About this article
Received
Accepted
Published
DOI
Keywords
 Risk Score
 Hospital Mortality
 Absolute Change
 Hospital Death
 Integrate Discrimination Improvement