Presentation is loading. Please wait.

Presentation is loading. Please wait.

Missing Values Raymond Kim Pink Preechavanichwong Andrew Wendel October 27, 2015.

Similar presentations


Presentation on theme: "Missing Values Raymond Kim Pink Preechavanichwong Andrew Wendel October 27, 2015."— Presentation transcript:

1 Missing Values Raymond Kim Pink Preechavanichwong Andrew Wendel October 27, 2015

2 I.Intro Missing Values and Bias II.Simulations and Imputation III.Deletion Methodology IV.Not Missing at Random

3 Initial Steps Why is our data missing? What is the characteristic of our missing data? How will that affect the bias? Mean? Std? https://www.utexas.edu/cola/prc/_files/cs/Missing-Data.pdf

4 OLS Unbiased Estimator

5 Initial Steps 1.Identify the reason for missing data  Marriage, graduation, death, etc. 2.Understand the distribution of missing data  Certain groups more likely to have missing values 3.Decide on the best method of analysis  Deletion methods – Listwise, pairwise deletion  Single Imputation Methods – Mean substitution, dummy variable, single regression  Model based methods – Maximum likelihood and multiple imputation 4.Power and Bias  Too many missing variables reduces power  Introduction of bias in your estimator https://www.utexas.edu/cola/prc/_files/cs/Missing-Data.pdf

6 Missing Values and Bias Are missing values moving us away or closer to the true DGP?

7 Conditional Distribution MCAR (missing completely at random) Probability ( Y = Missing | X,Y) = Probability (Y=Missing) Probability that Y is missing does not depend on X or Y MAR (missing at random) Probability ( Y = Missing | X,Y) = Probability (Y=Missing | X) Probability that Y is missing depends on X but not Y NMAR (not missing at random) Probability ( Y = Missing | X,Y) = Probability (Y=Missing | X,Y) Probability that Y is missing depends on Y and possibly on X Statistical Models- A.C. Davison- Cambridge University Press

8 Normal Data MCAR NMAR MAR Statistical Models- A.C. Davison- Cambridge University Press

9 Bias Matrix – Does Bias Exist? DeletionMean Imputation None (but reduced power) None< 0 Conditional None Unconditional Yes Conditional Yes < 0 Unconditional Yes Yes Statistical Models- A.C. Davison- Cambridge University Press

10 Working with Missing Data Deletion Maximum Likelihood Multiple Imputation Single Imputation MCAR Maximum Likelihood Multiple Imputation Single Imputation MAR Sensitivity Analysis Pattern Mixture Models Selection Model Maximum Entropy NMAR https://www.utexas.edu/cola/prc/_files/cs/Missing-Data.pdf

11 Listwise and Pairwise Deletion Missing values are MCAR MAR BIASED NMAR Conditonal UNBIASED MCAR MAR

12 Single Imputation Replace missing data with mean or mode Introduces bias in estimated variance Mean Mode Substition Create indicator (1=missing, 0=not missing) Impute missing values to a constant Dummy Variable Control Replace missing values with predicted score from a regression Overestimates model fit Conditional Mean Substitution https://www.utexas.edu/cola/prc/_files/cs/Missing-Data.pdf

13 PRESENTATION TITLE HERE Simulations and Imputation

14 Imputing Values Deal with missing data by generating values for those that are missing. Use a variety of methods to impute these values varying in accuracy and complexity. We will focus on single imputation methods and a few multiple imputation methods.

15 Mean Imputation We can use the mean in place of the missing values This will retain the mean from the dataset This will also cause a negative bias in the variance

16 Regression Mean Imputation Instead of using the mean, we can use regression to give us predicted values for those missing. This may allow us to achieve better estimates http://missingdata.lshtm.ac.uk/

17 Multiple Imputations A more complex way to impute missing values. Imputes and analyzes data to replace missing values within the data set. http://www.stefvanbuuren.nl/mi/MI.html

18 A Few R Methods How can we do this in R?  Amelia  mi  There are many others, and some can be used to treat specific conditions for certain data sets.

19 Amelia Amelia is an algorithm that bootstraps data and uses that data in a multiple imputation process. http://gking.harvard.edu/files/gking/files/amelia_jss.pdf?m=1360040717

20 mi “mi” imputes missing values using Bayesian regression methods, which are run a number of times and analyzed for convergence. This method is very customizable, but is also very costly https://cran.r-project.org/web/packages/mi/mi.pdf

21 Additional Resources Additional packages that can be used in R can be found here: http://www.stefvanbuuren.nl/mi/Software.html

22 Imputation Summary  In order to use imputation based methods we need to first understand the data and the reason for the “missingness” of the data.  By knowing this we can fit the method that we feel is most appropriate to our data set.  Single imputation methods can give us quick and easy answers to our missing values, but they also bias statistics like the variance.  Multiple imputation methods can handle the bias better but are complex and require more specialized R packages or software

23 PRESENTATION TITLE HERE Deletion Methodology

24 Bias 0 means no bias there is a systematic tendency for the estimate to be larger than the parameter it is estimating. there is a systematic tendency for the estimate to be smaller than the parameter it is estimating. Credit: email from Dr.Westfall

25 Listwise Vs Pairwise Deletion What are they? They are methods that discard data. How do they work? Listwise (Complete-case analysis): Excluding all units for which the outcome or any of the inputs are missing. Pairwise (Available-case analysis): Excluding a pair which contains one ore two missing values from data set. What is the difference? Pairwise attempts to minimize the loss that occurs in listwise deletion. Credit: http://www.stat.columbia.edu/~gelman/arm/missing.pdf]

26 Listwise Vs Pairwise Deletion (Cont’) Listwise deletion Pairwise deletion

27 Listwise Vs Pairwise Deletion (Cont’) Pros and Cons of Listwise and Pairwise deletions: Listwise : The sample after deletion may not be representative of the full sample. Reducing power and type II error rates increase. Tendency to get bias results. Pairwise: Preserved or increase statistical power in the analyses. The result will be the same if the data has two variables (columns) Bias (over or underestimated) Credit: https://www.statisticssolutions.com/missing-data-listwise-vs-pairwise/ Credit: http://files.eric.ed.gov/fulltext/ED281854.pdf

28 PRESENTATION TITLE HERE Not Missing at Random

29 Case of NMAR  Why are our values missing? High income individuals don’t report income  What is the characteristic of the missing data Missing values are NMAR

30 Meboot Package https://cran.r-project.org/web/packages/meboot/index.html

31 Evaluation of a Fund Manager While evaluating a fund manager for investment you notice that the fund did not include 2008 returns for its equity fund You highly suspect it is NMAR – It was left out because returns were bad

32 Evaluation of a Fund Manager You find out that the equity fund normally held stocks representative of the entire stock market Distribution of the missing data may follow the overall US equity market

33 Meboot Maximum Entropy https://cran.r-project.org/web/packages/meboot/index.html

34 Meboot Maximum Entropy NMAR missing values requires the most assumptions Minimizing bias for NMAR depends heavily on your model setup There is no “right” answer, we do not know the true DGP All we can do is minimize bias with well grounded assumptions

35 Questions? THANK YOU!

36


Download ppt "Missing Values Raymond Kim Pink Preechavanichwong Andrew Wendel October 27, 2015."

Similar presentations


Ads by Google