We can basically use missForest package for imputing missing values in R(for both categorical and numeric).But this approach requires a complete response variable for training the forest. So,how to impute missing values in the test data set using this missForest package ,because we do not have any response variable in the test data set?
I have the fair idea about the missing values, It will works similar to Random forest to replace the values.
Impute the values with below code using the missForest
dataset <- missForest(dataset)
imputed data will be stored in dataset_newdata