1
$\begingroup$

I am recently working on Missing Value Imputation. The dataset I am using is Mammographic Mass data set found from here. Now, the dataset contains missing values in multiple columns. I need some ideas how I can build a model or use any technique to impute the missing values.

$\endgroup$
1

2 Answers 2

0
$\begingroup$

A common approach is Multivariate Imputation by Chained Equations (MICE). A paper about the topic can be found here.

There are several statistical softwares, which are able to perform MICE. Below you can find an example in R, in which I used the package mice to impute some example data.

# Example data
N <- 1000
x1 <- rnorm(N)
x2 <- x1 + rnorm(N)
x3 <- rnorm(N)
x4 <- x2 + x3 + rnorm(N)
x5 <- rnorm(N)

# Insert missings
x1[rbinom(N, 1, 0.1) == 1] <- NA
x2[rbinom(N, 1, 0.2) == 1] <- NA
x3[rbinom(N, 1, 0.05) == 1] <- NA
x4[rbinom(N, 1, 0.1) == 1] <- NA
x5[rbinom(N, 1, 0.3) == 1] <- NA

# Data with missings
data <- data.frame(x1, x2, x3, x4, x5)

# Imputation
library("mice")
imp <- mice(data, m = 1)
# m = 1 specifies a single imputation, standard would be m = 5 for multiple imputation
# The imputation method could be specified with 'method = ' - standard is pmm
# The predictor matrix could be specified with 'predictorMatrix'

# Completed data
data_imp <- complete(imp)
$\endgroup$
0
0
$\begingroup$

A very flexible tool for missing data imputation is Gaussian mixture model. It's advantage is that it can use all, even incomplete records for the learning process. For more information: https://www.hindawi.com/journals/mpe/2015/548605/

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.