in this code:
SL.lib <- c("SL.mean")
imp.SL <- mice::mice( df_missing10, m = 5, maxit = 5,
method = "SuperLearner",
print = FALSE, SL.library = SL.lib)
i have error:
Error in names(newdata) <- sapply(1:ncol(newdata), function(n) { :
'names' attribute [2] must be the same length as the vector [0]
in this code: SL.lib <- c("SL.mean") imp.SL <- mice::mice( df_missing10, m = 5, maxit = 5, method = "SuperLearner", print = FALSE, SL.library = SL.lib) i have error: Error in names(newdata) <- sapply(1:ncol(newdata), function(n) { : 'names' attribute [2] must be the same length as the vector [0]