Cox Regression and Multiple Imputation | Mortality in Hemodialysis

In studies that search medical records for factors related to prognosis, some items, such as grip strength, are not measured in many patients, and analyzing only those with complete measurements shifts the sample toward patients in better condition. This case study uses all-cause mortality in patients who started maintenance hemodialysis. I filled in the missing values with multiple imputation, ran Cox regression, and read the results for all 8 factors without selecting among them.

The study setting, disease, variables, and numbers in this article were newly created by me to explain how the analysis was carried out. The numbers were calculated from a randomly generated dataset and do not reflect the content or circumstances of any actual client project.

Data in which grip strength was not measured in 1 in 4 patients

The study included 622 adults who newly started maintenance hemodialysis at 3 centers. During follow-up of up to 5 years from initiation, 156 patients (25.1%) died. The 8 factors examined were serum albumin, CRP, hemoglobin, serum phosphorus, BMI, grip strength, diabetes, and a history of cardiovascular disease, all at initiation. It was an exploratory study to look for factors associated with prognosis.

Grip strength was not measured in 166 patients (26.7%), and only 327 patients (52.6%) had all 8 factors (Table 1). Patients without a grip strength measurement were older than those with one (mean age 71.7 vs. 66.3 years) and died more often (31.3% vs. 22.8%). The missing data were concentrated in patients in poorer condition.

Table 1. Values at initiation and missing data for the factors examined (n=622)
Factor Summary among patients measured Missing, no. (%)
Serum albumin (g/dL) 3.6±0.4 7 (1.1)
CRP (mg/dL)* 0.26 (0.12 to 0.56) 73 (11.7)
Hemoglobin (g/dL) 9.6±1.3 3 (0.5)
Serum phosphorus (mg/dL) 5.2±1.3 25 (4.0)
BMI (kg/m²) 22.5±3.6 62 (10.0)
Grip strength (kg) 32.9±8.3 166 (26.7)
Diabetes, no. (%) 293 (47.6) 6 (1.0)
History of cardiovascular disease, no. (%) 170 (27.3) 0 (0.0)
Continuous variables are shown as mean±SD and binary variables as no. (%). CRP denotes C-reactive protein, and BMI body mass index.
* Shown as median (interquartile range) because the distribution is skewed to the right.

Including outcome information in the multiple imputation and keeping continuous variables continuous in the Cox regression

If only the 327 patients with complete data were analyzed, deaths would be 20.5%, lower than the 25.1% in the whole sample, and the hazard ratios would be estimated in a group shifted toward patients in better condition. I therefore filled in the missing values with multiple imputation by chained equations, using predictive mean matching for continuous variables and logistic regression for binary variables, with 30 imputations and 10 iterations.

Before that, I checked Spearman’s rank correlations among the continuous variables, because a pair of strongly correlated variables makes the imputation model unstable. The largest was -0.43, between grip strength and age, and no pair had an absolute value of 0.7 or more. The 8 factors, age, and sex were entered in the imputation model as they were.

If the outcome is left out of the imputation model, the association between the imputed values and death is weakened, and the hazard ratios move toward 1. Entering the survival time in days as it is has been shown to cause bias, so I entered the death indicator and the Nelson–Aalen cumulative hazard.

For the Cox regression, I fitted a univariable model with one factor at a time and a model adjusted for age and sex, and combined the 30 results with Rubin’s rules. Splitting a continuous variable in two at a cutoff loses information, and the result changes with the choice of cutoff. I kept the variables continuous and expressed the hazard ratios per 1 SD, with a log transformation for CRP, which has a long tail.

When 8 factors are examined, about 0.4 factors are expected to reach P<0.05 by chance even if there is no association at all. Reporting only the factors with small P values biases the results toward looking better, so I decided in advance to present all 8 in the same form in the table and the figure.

Reading the results for all 8 factors without selection

Forest plot of the hazard ratios adjusted for age and sex and their 95% confidence intervals for the 8 factors, shown with the number of patients measured
Figure 1. Hazard ratios for all-cause mortality adjusted for age and sex, estimated with Cox regression. Continuous variables are per 1 SD, and the results of 30 imputations are combined. CRP denotes C-reactive protein, and BMI body mass index.
Table 2. Hazard ratios of each factor for all-cause mortality
Univariable model Model adjusted for age and sex
Factor Hazard ratio (95% CI) P value Hazard ratio (95% CI) P value
Serum albumin (per 1 SD = 0.4 g/dL) 0.68 (0.57 to 0.80) <0.001 0.72 (0.61 to 0.86) <0.001
CRP (per 1 SD of the log) 1.29 (1.08 to 1.54) 0.005 1.30 (1.09 to 1.56) 0.005
Hemoglobin (per 1 SD = 1.3 g/dL) 0.77 (0.66 to 0.91) 0.002 0.77 (0.65 to 0.90) 0.001
Serum phosphorus (per 1 SD = 1.3 mg/dL) 1.01 (0.86 to 1.19) 0.86 0.98 (0.83 to 1.16) 0.85
BMI (per 1 SD = 3.6 kg/m²) 0.92 (0.78 to 1.09) 0.31 0.85 (0.72 to 1.01) 0.06
Grip strength (per 1 SD = 8.3 kg) 0.54 (0.45 to 0.65) <0.001 0.58 (0.44 to 0.76) <0.001
Diabetes (yes vs. no) 1.58 (1.15 to 2.19) 0.005 1.54 (1.12 to 2.13) 0.009
History of cardiovascular disease (yes vs. no) 1.52 (1.09 to 2.12) 0.01 1.30 (0.93 to 1.82) 0.12
Results of Cox regression with one factor at a time, combined across 30 imputations with Rubin’s rules (n=622, 156 deaths). This is an exploratory analysis of 8 factors, and the P values are not corrected for multiplicity.
For continuous variables, hazard ratios are per 1 SD of the measured values, and CRP is transformed to the natural logarithm. CRP denotes C-reactive protein, and BMI body mass index.

In the adjusted models, the hazard ratio per 1 SD higher was 0.58 (95% CI, 0.44 to 0.76) for grip strength, 0.72 (0.61 to 0.86) for serum albumin, and 0.77 (0.65 to 0.90) for hemoglobin. CRP and diabetes were associated with a higher hazard of death. In contrast, the hazard ratio for serum phosphorus was 0.98 (0.83 to 1.16), and I could not conclude that it was associated with death. The confidence intervals for BMI and a history of cardiovascular disease crossed 1.

The hazard ratio for a history of cardiovascular disease fell from 1.52 (1.09 to 2.12) in the univariable model to 1.30 (0.93 to 1.82) after adjustment. Part of the association seen in the univariable model was explained by age and sex, and I could not conclude that there was an association independent of them.

Dot plot of the adjusted hazard ratios and 95% confidence intervals for the 8 factors, with the complete-case analysis and multiple imputation shown one above the other
Figure 2. Comparison of hazard ratios from the complete-case analysis, which uses only patients with complete measurements, and from multiple imputation. Both are from models adjusted for age and sex. Horizontal lines are 95% confidence intervals. CRP denotes C-reactive protein, and BMI body mass index.

Compared with the complete-case analysis, the direction of the hazard ratio was the same for all 8 factors, and the confidence intervals were narrower with multiple imputation. Grip strength had a large fraction of missing information, 0.30, but its hazard ratio was 0.57 and 0.58 in the two analyses, almost unchanged.

I checked the proportional hazards assumption with Schoenfeld residuals in each imputed dataset. For none of the 8 factors was P<0.05 in any of the 30 imputed datasets, and there was no sign that the hazard ratios changed during follow-up.

Taken together, the statistical conclusion is that 5 factors, namely grip strength, serum albumin, hemoglobin, CRP, and diabetes, were associated with all-cause mortality after adjustment for age and sex, and that I could not conclude that serum phosphorus, BMI, or a history of cardiovascular disease was associated with it. These are exploratory results from examining one factor at a time, however, and these models cannot tell whether the 5 factors are associated with prognosis independently of one another.

Work performed and estimated fee

Item Details
Analysis method Cox regression (univariable models with one factor at a time, and models adjusted for age and sex), Spearman’s rank correlation, and a check of the proportional hazards assumption with Schoenfeld residuals
Handling of missing data Multiple imputation by chained equations (predictive mean matching and logistic regression, 30 imputations, 10 iterations, combined with Rubin’s rules)
Tables prepared 1 table of factor summaries and missing data, 1 table of hazard ratios; 2 tables in total
Figures prepared 1 forest plot of hazard ratios, 1 figure comparing the complete-case analysis and multiple imputation; 2 figures in total
Deliverables Analysis report (reasons for the choice of methods and discussion of the results), tables of results (Excel), figures (PNG and TIFF), and a draft of the statistical analysis section for the paper. Analysis code is available on request for an additional fee (¥22,000, incl. tax)
Estimated time About 2 weeks from receipt of the data
Estimated fee ¥198,000 (incl. tax)

The table lists the main analyses only. I also carry out the finer analyses needed to follow a sound statistical process, such as checking distributions and cleaning the data; these, together with after-care with no time limit (answers to your questions after delivery), are included in the fee.

Data Scientist Kenichiro Suzuki

Data ScientistKenichiro Suzuki

Free consultationSee fee examples

Recent Posts

Linear Mixed Model | 6-Minute Walk Distance in COPD Rehabilitation

A linear mixed model comparing 6-minute walk distance at four time points with missing data. How to read a non-significant group-by-time interaction.

ROC Analysis | Comparing the AUCs of 4 Blood Markers for Bacteremia

ROC analysis of the AUCs of 4 markers for bacteremia: all pairs tested with the paired DeLong test and corrected with the Benjamini–Hochberg procedure.

Kruskal–Wallis Test | Fatigue and Pain in 5 Rheumatoid Arthritis Groups

Kruskal–Wallis test with corrected pairwise comparisons of fatigue and pain scores among 5 rheumatoid arthritis treatment groups, plus factor analysis.

RMST | Pancreatic Cancer Chemotherapy When Survival Curves Cross

RMST (restricted mean survival time) comparing 2 first-line chemotherapies for advanced pancreatic cancer when survival curves cross, with adjustment.

Multiple Regression | Factors Associated With Dementia Caregiver Burden

Multiple regression with 8 prespecified factors for burden and quality of life in family caregivers of people with dementia, with principal components.

Multiple Regression | Monthly Antimicrobial Use and Resistance Over Time

Multiple regression of monthly antimicrobial use and the proportion of resistant Pseudomonas aeruginosa, after unit root tests and differencing.

Cox Regression | Recurrence After 2 Methods of Atrial Fibrillation Ablation

Cox regression comparing recurrence after 2 methods of catheter ablation for atrial fibrillation, with 6 subgroups read from tests of interaction.

Canonical Correlation Analysis | Psychosocial Scales and Diabetes Self-Care

Canonical correlation analysis of 4 psychosocial scales and 5 self-care behaviors in type 2 diabetes, with the size checked by 10-fold cross-validation.