dealing with missing data
play

Dealing with Missing Data Challenges and Solutions Nicole Erler - PowerPoint PPT Presentation

Dealing with Missing Data Challenges and Solutions Nicole Erler Department of Biostatistics, Erasmus Medical Center n.erler@erasmusmc.nl N_Erler www.nerler.com NErler 13 January 2020 Handling Missing Values is Easy! Functions


  1. Dealing with Missing Data Challenges and Solutions Nicole Erler Department of Biostatistics, Erasmus Medical Center � n.erler@erasmusmc.nl � N_Erler � www.nerler.com � NErler 13 January 2020

  2. Handling Missing Values is Easy! Functions automatically exclude missing values: ## [...] ## Residual standard error: 2.305 on 69 degrees of freedom ## (25 observations deleted due to missingness) ## Multiple R-squared: 0.09255, Adjusted R-squared: 0.02679 ## F-statistic: 1.407 on 5 and 69 DF, p-value: 0.2325 1

  3. Handling Missing Values is Easy! Functions automatically exclude missing values: ## [...] ## Residual standard error: 2.305 on 69 degrees of freedom ## (25 observations deleted due to missingness) ## Multiple R-squared: 0.09255, Adjusted R-squared: 0.02679 ## F-statistic: 1.407 on 5 and 69 DF, p-value: 0.2325 Imputation is super easy: library ("mice") imp <- mice (mydata) However ... 1

  4. Handling Missing Values Correctly is Not So Easy! Complete case analysis is usually biased 2

  5. Handling Missing Values Correctly is Not So Easy! Complete case analysis is usually biased ( Imputation ) methods make certain assumptions , e.g.: ◮ missingness is M(C)AR 2

  6. Handling Missing Values Correctly is Not So Easy! Complete case analysis is usually biased ( Imputation ) methods make certain assumptions , e.g.: ◮ missingness is M(C)AR ◮ the incomplete variable has a certain conditional distribution (e.g. normal) 2

  7. Handling Missing Values Correctly is Not So Easy! Complete case analysis is usually biased ( Imputation ) methods make certain assumptions , e.g.: ◮ missingness is M(C)AR ◮ the incomplete variable has a certain conditional distribution (e.g. normal) ◮ all associations are linear 2

  8. Handling Missing Values Correctly is Not So Easy! Complete case analysis is usually biased ( Imputation ) methods make certain assumptions , e.g.: ◮ missingness is M(C)AR ◮ the incomplete variable has a certain conditional distribution (e.g. normal) ◮ all associations are linear ◮ compatibility and congeniality 2

  9. Handling Missing Values Correctly is Not So Easy! Complete case analysis is usually biased ( Imputation ) methods make certain assumptions , e.g.: ◮ missingness is M(C)AR ◮ the incomplete variable has a certain conditional distribution (e.g. normal) ◮ all associations are linear ◮ compatibility and congeniality violation ➡ bias 2

  10. Imputation ??? Remind me, how did that imputation thing work again??? 3

  11. Imputation Imputation filling in missing values with (good) "guesses" 4

  12. Imputation Imputation filling in missing values with (good) "guesses" Important: Missing values ➡ uncertainty This needs to be taken into account!!! 4

  13. Imputation Imputation filling in missing values with (good) "guesses" Important: Missing values ➡ uncertainty This needs to be taken into account!!! Donald Rubin (in the 1970s): Represent each missing value with multiple imputed values Multiple Imputation Note: Imputation is not the only approach to handle missing values. (Also: maximum likelihood, inverse probability weighting, ...) 4

  14. Multiple Imputation multiple incomplete analysis pooled imputed data results results datasets 1. Imputation: impute multiple times ➡ multiple completed datasets 2. Analysis: analyse each of the datasets 3. Pooling: combine results, taking into account additional uncertainty 5

  15. Imputation Step Two main approaches Joint Model Multiple Imputation ◮ the "original" approach ◮ often using a multivariate normal distribution 6

  16. Imputation Step Two main approaches Joint Model Multiple Imputation ◮ the "original" approach ◮ often using a multivariate normal distribution Multiple Imputation with Chained Equations (MICE) ◮ also: Fully Conditional Specification ( FCS ) ◮ now often considered the gold standard 6

  17. Multiple Imputation with Chained Equations (MICE) For each incomplete variable, specify a model using all other variables : � �� � full conditionals ... x 1 x 2 x 3 x 4 NA NA ... � � NA NA ... � � NA NA ... � � . . . . . . . . . . . . 7

  18. Multiple Imputation with Chained Equations (MICE) For each incomplete variable, specify a model using all other variables : � �� � full conditionals ... x 1 x 2 x 3 x 4 x 1 ∼ x 2 + x 3 + x 4 + . . . NA NA ... � � x 2 ∼ x 1 + x 3 + x 4 + . . . NA NA ... � � NA NA ... x 3 ∼ x 1 + x 2 + x 4 + . . . � � . . . . . . . . x 4 ∼ x 1 + x 2 + x 3 + . . . . . . . . . . 7

  19. Multiple Imputation with Chained Equations (MICE) For each incomplete variable, specify a model using all other variables : � �� � full conditionals ... x 1 x 2 x 3 x 4 x 1 ∼ x 2 + x 3 + x 4 + . . . NA NA ... � � x 2 ∼ x 1 + x 3 + x 4 + . . . NA NA ... � � NA NA ... x 3 ∼ x 1 + x 2 + x 4 + . . . � � . . . . . . . . x 4 ∼ x 1 + x 2 + x 3 + . . . . . . . . . . For example: ◮ linear regression ◮ logistic regression ◮ ... 7

  20. Multiple Imputation with Chained Equations (MICE) MICE is an iterative algorithm: ... x 1 x 2 x 3 x 4 NA NA ... � � ◮ start with initial guess NA NA ... � � NA NA ... � � . . . . . . . . . . . . 8

  21. Multiple Imputation with Chained Equations (MICE) MICE is an iterative algorithm: ... x 1 x 2 x 3 x 4 NA NA ... � � ◮ start with initial guess NA NA ... � � ◮ update x 1 based on initial values of NA NA ... � � . . . . . . . . x 2 , x 3 , x 4 , . . . . . . . 8

  22. Multiple Imputation with Chained Equations (MICE) MICE is an iterative algorithm: ... x 1 x 2 x 3 x 4 NA NA ... � � ◮ start with initial guess NA NA ... � � ◮ update x 1 based on initial values of NA NA ... � � . . . . . . . . x 2 , x 3 , x 4 , . . . . . . . ◮ update x 2 based on new x 1 and initial values of x 3 , x 4 , . . . ◮ ... 8

  23. Multiple Imputation with Chained Equations (MICE) MICE is an iterative algorithm: ... x 1 x 2 x 3 x 4 NA NA ... � � ◮ start with initial guess NA NA ... � � ◮ update x 1 based on initial values of NA NA ... � � . . . . . . . . x 2 , x 3 , x 4 , . . . . . . . ◮ update x 2 based on new x 1 and initial values of x 3 , x 4 , . . . ◮ ... ◮ update x 1 again, based on updated x 2 , x 3 , x 4 , . . . ◮ ... 8

  24. Multiple Imputation with Chained Equations (MICE) MICE is an iterative algorithm: ... x 1 x 2 x 3 x 4 NA NA ... � � ◮ start with initial guess NA NA ... � � ◮ update x 1 based on initial values of NA NA ... � � . . . . . . . . x 2 , x 3 , x 4 , . . . . . . . ◮ update x 2 based on new x 1 and initial values of x 3 , x 4 , . . . ◮ ... ◮ update x 1 again, based on updated x 2 , x 3 , x 4 , . . . ◮ ... ◮ until convergence 8

  25. Multiple Imputation with Chained Equations (MICE) MICE is an iterative algorithm: ... x 1 x 2 x 3 x 4 NA NA ... � � ◮ start with initial guess NA NA ... � � ◮ update x 1 based on initial values of NA NA ... � � . . . . . . . . x 2 , x 3 , x 4 , . . . . . . . ◮ update x 2 based on new x 1 and initial values of x 3 , x 4 , . . . ◮ ... ◮ update x 1 again, based on updated x 2 , x 3 , x 4 , . . . ◮ ... ◮ until convergence Values from last iteration ➡ one imputed dataset 8

  26. MICE Makes Assumptions ( Imputation ) methods make certain assumptions , e.g.: ◮ missingness is M(C)AR ◮ the incomplete variable has a certain conditional distribution (e.g. normal) ◮ all associations are linear ◮ compatibility and congeniality 9

  27. Missing Data Mechanisms Missing Completely At Random (MCAR) Missing At Random (MAR) Missing Not At Random (MNAR) 10

  28. Missing Data Mechanisms Missing Completely At Random (MCAR) p ( R | X obs , X mis ) = p ( R ) questionnaire got lost in mail Missingness is independent of all data. Missing At Random (MAR) Missing Not At Random (MNAR) 10

  29. Missing Data Mechanisms Missing Completely At Random (MCAR) p ( R | X obs , X mis ) = p ( R ) questionnaire got lost in mail Missingness is independent of all data. Missing At Random (MAR) overweight participants are p ( R | X obs , X mis ) = p ( R | X obs ) less likely to report their chocolate consumption (and Missingness depends only on observed data. we know their weight) Missing Not At Random (MNAR) 10

  30. Missing Data Mechanisms Missing Completely At Random (MCAR) p ( R | X obs , X mis ) = p ( R ) questionnaire got lost in mail Missingness is independent of all data. Missing At Random (MAR) overweight participants are p ( R | X obs , X mis ) = p ( R | X obs ) less likely to report their chocolate consumption (and Missingness depends only on observed data. we know their weight) Missing Not At Random (MNAR) overweight participants are p ( R | X obs , X mis ) � = p ( R | X obs ) less likely to report their Missingness depends (also) on unobserved data. weight 10

  31. MICE Makes Assumptions ( Imputation ) methods make certain assumptions , e.g.: ◮ missingness is M(C)AR ◮ the incomplete variable has a certain conditional distribution (e.g. normal) ◮ all associations are linear ◮ compatibility and congeniality In case of MNAR: MICE ➡ bias 11

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend