I am trying to do multiple imputation with amelia R package in cross validation. There’s a problem with loop and it cannot continue runing…Can anyone help me to check where’s the problem and how to solve that? I’ve attached the workflow with a google drive link.
On the traing set I did normal 10 times imputation and get one complete data set with imputed values.
On the testing set I tried to firstly filter out the target column, combine the test set without target column with the training sets for imputation. Then I filtered out the results with imputed values and get the target column back for a complete test data set.
Then I use the imputed traings- and testing data to build a model using cross validation with decision tree.