I am currently trying to use hot deck data imputation to impute the DBC (psychometric test), but I keep getting the error:
Error in apply(data, 1, function(x) all(is.na(x))) :
dim(X) must have a positive length
My code is below:
hot.deck(data$DBC, m = 48, method = c( "p.draw"), cutoff = 48, sdCutoff = 1, optimizeSD = FALSE, optimStep = 0.1, optimStop = 5, weightedAffinity = FALSE, impContinuous = c("HD"), IDvars = NULL)