Simulation of “forwards-backwards” multiple imputation technique in a longitudinal, clinical dataset

Catherine Welch 1 , Irene Petersen 1 ,

James Carpenter 2

1 Department of Primary Care and Population Health, UCL

2 Department of Medical Statistics, LSHTM

Acknowledgements

• Steering Group:

– Irwin Nazareth (UCL)

– Kate Walters (UCL)

– Ian White (MRC Biostatistics, Cambridge)

– Richard Morris (UCL)

– Louise Marston (UCL)

• This study was funded by the MRC

Overview

• Summary of motivation

• “Forwards-backwards” algorithm

• Issues that we have encountered

Introduction

• Most missing data techniques have been mainly designed for cross-sectional data

• “Forwards-backwards” multiple imputation (MI) algorithm has been developed to impute missing values in longitudinal databases

• We are in the process of applying this technique to The Health Improvement Network (THIN) primary care database

• Impute variables associated with incidence of cardiovascular disease (CVD)

Clinical databases

• Offer many opportunities that would be difficult and expensive to address using standard study design

• Designed for patient management

The Health Improvement Network (THIN)

• Primary care database

• Longitudinal records of patients consultation with

General Practitioner (GP) or nurse

• Data collected since early 90’s

• 7 million patients to over 400 practices

• Over 40 million person years of follow up

• Systematically structured coding (Read codes)

Cardiovascular disease

• Clinical databases powerful data source for research e.g. cardiovascular disease

• New risk prediction models have caused much debate

• NICE recommends further research is required to validate models

• Important to have good measures of risk factors and consider missing data

Aims of this project…

• Explore the extent of missing data on health indicators (height, weight, blood pressure, cholesterol, smoking status, deprivation, alcohol consumption and ethnicity )

• Develop models for imputation of missing data

Survival models

1. Baseline – at practice registration

2. Age specific – extract data recorded at a specific age

3. Non-age specific – risk is constant across all ages

4. Time varying effect – risk varies across ages

50 60

Registration

1 year following registration

Substantive model

• Include same variables as Framingham score plus deprivation (Townsend deprivation quintile) and BMI

• Poisson model to predict risk of Coronary heart disease

• Explanatory variables without missing data: age, sex, left ventricular hypertrophy (LVH), Type II diabetes

• With missing data: deprivation, weight, height, total serum cholesterol, high density lipoprotein (HDL) cholesterol, systolic blood pressure and smoking status

Imputation one year following registration

• Keep patients registered between 2005-2008 and with practice for at least one year

• Exclude patients that have coronary heart disease within the first year

• Average of all recorded measurements during the first year included in the analysis

• Select 50 practices with least missing data for systolic blood pressure and weight per person

• First step: understand structure and extent of missing data

Missing health indicator variables by age

100

90

80

70

60

50

40

30

20

10

0

16-24 25-34 35-44 45-54 55-64 65-74 75-84 85-94 95+

Age group (years)

Townsend score

Weight

Total cholesterol

Smoking status

Systolic blood pressure

Height

HDL cholesterol

72,759 patients registered to 50 practices between 2005 and 2008

Missing health indicator variables by age

100

90

80

70

60

50

40

30

20

10

0

16-24 25-34 35-44 45-54 55-64 65-74 75-84 85-94 95+

Age group (years)

Townsend score

Weight

Total cholesterol

Smoking status

Systolic blood pressure

Height

HDL cholesterol

72,759 patients registered to 50 practices between 2005 and 2008

Missing health indicator variables by age

100

90

80

70

60

50

40

30

20

10

0

16-24 25-34 35-44 45-54 55-64 65-74 75-84 85-94 95+

Age group (years)

Townsend score

Weight

Total cholesterol

Smoking status

Systolic blood pressure

Height

HDL cholesterol

72,759 patients registered to 50 practices between 2005 and 2008

Missing health indicator variables by age

100

90

80

70

60

50

40

30

20

10

0

16-24 25-34 35-44 45-54 55-64 65-74 75-84 85-94 95+

Age group (years)

Townsend score

Weight

Total cholesterol

Smoking status

Systolic blood pressure

Height

HDL cholesterol

72,759 patients registered to 50 practices between 2005 and 2008

Missing health indicator variables by age

100

90

80

70

60

50

40

30

20

10

0

16-24 25-34 35-44 45-54 55-64 65-74 75-84 85-94 95+

Age group (years)

Townsend score

Weight

Total cholesterol

Smoking status

Systolic blood pressure

Height

HDL cholesterol

72,759 patients registered to 50 practices between 2005 and 2008

Missing health indicator variables by gender

100

90

80

70

60

50

40

30

20

10

0

Female

Townsend score

Weight

Total cholesterol

Smoking status

Male

Gender

Systolic blood pressure

Height

HDL cholesterol

72,759 patients registered to 50 practices between 2005 and 2008

Problems with ‘ad-hoc’ imputation

• ‘Ad hoc’ imputation methods (e.g. complete case analysis, LOCF) result in bias results and potentially incorrect conclusions

• Multiple imputation is now established as an alternative method to deal with missing data

Multiple imputation

• Assume Missing At Random

• Use the relationship between the variables to impute a valid estimate for a missing value

• Multiple estimates are combined using Rubins

Rules to produce unbiased estimates of coefficients and standard errors

• This takes account of uncertainty and variation in the data

Multiple imputation model

• All variables in substantive model included in imputation model

• Exponential survival model so indicator for CHD and variable for time to event or censoring

• MI applied 5 times and results combined

Results for health indicators at baseline

Townsend score quintile, %

1 (least deprived)

2

3

4

5 (most deprived)

Height (m), mean (SE)

Weight (kg), mean (SE)

Systolic blood pressure (mmHg), mean (SE)

Total serum cholesterol (mmol l -1 ), mean (SE)

HDL cholesterol (mmol l -1 ), mean (SE)

Smoking status, % Smoker

Non-smoker

Complete case

13.72

14.05

24.77

30.46

17.00

1.70 (0.00041)

72.6 (0.06644)

123.8 (0.06707)

5.16 (0.01024)

1.40 (0.00401)

30.29

69.71

Imputed data

13.65

13.95

24.84

30.59

16.98

1.70 (0.00041)

72.8 (0.06583)

123.8 (0.05866)

5.05 (0.00882)

1.43 (0.00545)

30.32

69.68

Survival models

1. Baseline – at practice registration

2. Age specific – extract data recorded at a specific age

3. Non-age specific – risk is constant across all ages

4. Time varying effect – risk varies across ages

50 60

Registration

1 year following registration

Considerations when applying MI to longitudinal clinical data

• Longitudinal and dynamic structure of the data

• Imputing cross-sectionally is not appropriate

• Imputations need to produce a logical sequence of values over time

• Introduction of new quality measures which have improved data recording

Example of THIN data

1

1

1

1

1

1

1

1

Practice ID Sex Age

(years)

1

1

1

1

2

2

2

2

M

M

M

M

F

F

F

F

65

66

67

68

65

66

67

68

Cholesterol

(mmol/l)

3.4

3.6

3.6

4.0

5.2

?.?

6.0

6.0

Weight

(kg)

60

60

??

70

80

86

89

95

“Forwards-backwards” technique

• Based on the fully conditional specification method of MI

• Takes into account the dynamic, longitudinal structure of the data

• Does not require measurements at equally spaced time points

Nevalainen et al. Missing values in longitudinal dietary data: A multiple imputation approach based on a fully conditional specification. Statist. Med. 2009; 28 :3657 –3669

Fully conditional specification (FCS)

• Based on a flexible selection of univariate imputation distributions

• Impute one variable at a time using a distribution conditional on all the other variables

• Procedure iterates over the variables in cycles until assumed convergence

• Appropriate for non-normal distributions

A graphical illustration of the “forwardsbackwards” FSC procedure

Among-time iteration

Within-time iteration f ( X ij mis

| X i

1

, X i

,

 j

, X i

1

, Y ij

)

Example

1

1

1

1

1

1

1

1

Practice ID Sex Age

(years)

1

1

1

1

2

2

2

2

M

M

M

M

F

F

F

F

65

66

67

68

65

66

67

68

Cholesterol

(mmol/l)

3.4

3.6

3.6

4.0

5.2

?.?

6.0

6.0

Weight

(kg)

60

60

??

70

80

86

89

95

Example

1

1

1

1

1

1

1

1

Practice ID Sex Age

(years)

1

1

1

1

2

2

2

2

M

M

M

M

F

F

F

F

65

66

67

68

65

66

67

68

Cholesterol

(mmol/l)

3.4

3.6

3.6

4.0

5.2

?.?

6.0

6.0

Weight

(kg)

60

60

??

70

80

86

89

95

Example

1

1

1

1

1

1

1

1

Practice ID Sex Age

(years)

1

1

1

1

2

2

2

2

M

M

M

M

F

F

F

F

65

66

67

68

65

66

67

68

Cholesterol

(mmol/l)

3.4

3.6

3.6

4.0

5.2

?.?

6.0

6.0

Weight

(kg)

60

60

??

70

80

86

89

95

Example

1

1

1

1

1

1

1

1

Practice ID Sex Age

(years)

1

1

1

1

2

2

2

2

M

M

M

M

F

F

F

F

65

66

67

68

65

66

67

68

Cholesterol

(mmol/l)

3.4

3.6

3.6

4.0

5.2

?.?

6.0

6.0

Weight

(kg)

60

60

??

70

80

86

89

95

Example

1

1

Prac ID Sex Age

(years)

Cholesterol

66 (mmol/l)

Cholesterol

65 (mmol/l)

Cholesterol

67 (mmol/l)

Weight

66 (kg)

Weight

65 (kg)

Weight

67 (kg)

1

2

M

F

66

66

?.?

3.6

5.2

3.4

6.0

3.6

86

60

80

60

89

??

Example

1

1

1

1

1

1

1

1

Practice ID Sex Age

(years)

1

1

1

1

2

2

2

2

M

M

M

M

F

F

F

F

65

66

67

68

65

66

67

68

Cholesterol

(mmol/l)

3.4

3.6

3.6

4.0

5.2

5.8

6.0

6.0

Weight

(kg)

60

60

??

70

80

86

89

95

Apply “forwards-backwards” algorithm to

THIN

• Select patients registered to 50 THIN practice from 2005 to 2008

• Apply algorithm at all ages

• Extract imputations for 11,614 patients aged 60 years old

Preliminary results

Townsend score quintile, %

1

2

3

4

5

Height (m), mean (SE)

Weight (kg), mean (SE)

Systolic blood pressure (mmHg), mean (SE)

Total serum cholesterol (mmol l -1 ), mean (SE)

HDL cholesterol (mmol l -1 ), mean (SE)

Smoking status, % Smoker

Non-smoker

Complete case

30.05

24.56

18.69

14.86

11.83

1.68 (0.00130)

80.25 (0.23961)

136.18 (0.18086)

5.26 (0.01616)

1.44 (0.00667)

29.13

70.87

Imputed data

28.67

24.76

18.71

15.75

12.11

1.67 (0.00091)

79.39 (0.15976)

135.86 (0.21134)

5.40 (0.01482)

1.47 (0.00738)

27.92

72.08

11,614 patients aged 60 years old registered to 50 practices between 2005 and 2008

Discussion

• Potential to develop this method further

• Validation:

– using simulations

– investigate distributions of longitudinal values

– external information

• What would be the best way to include outcome in the “forwards-backwards” imputation model?

• Interactions

FCS using longitudinal data

• Y – fully observed outcome variable

• X = (X

1

, . . . , X q

) where X i

= (X i 1

, . . . , X ip

) , q repeated measures of p explanatory variables intended to be collected

• X obs and X mis denote the observed and the missing elements in

• Need the specify a suitable imputation model f (X mis

| X obs

,Y,θ)

X

• The FCS of the imputation model in which imputations are made one variable at a time using a series (j =1 , . . . , p) of conditional densities f ( X ij mis

| X

 i 1

,..., X i (

 j

1 )

, X i (

 j

1 )

,..., X ip

, Y ,

 ij

) denoted as f ( X mis ij

| X i

,

 j

, Y )

X

 i 1

,..., X i (

 j

1 ) have been imputed k+1 times

• X i

( j

1 )

,...,

X ip have been imputed k times.

X i mis

FCS using longitudinal data

X i obs

1

, X i obs

,

 j

, X i obs

1 and the outcome Y.

• Rather than condition only on the observed data, we mis generate appropriate values for X ij from the fully conditional imputation model f ( X ij mis

| X i

1

, X i

,

 j

, X i

1

, Y ij

)

• One iteration (within-time iteration) runs over the variables j =1 , . . . , p .

• The inter-correlation among repeatedly measured variables is also of importance, we have a second imputation iteration among the index i (among times).

FCS using longitudinal data