amices / mice

Multivariate Imputation by Chained Equations
https://amices.org/mice/
GNU General Public License v2.0
447 stars 108 forks source link

error in mice #650

Closed mehrdad123qaderi closed 3 months ago

mehrdad123qaderi commented 4 months ago

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

stefvanbuuren commented 4 months ago

Thanks. This is not a full reprex, so please craft your code so that others can reproduce.

stefvanbuuren commented 3 months ago

No reprex. Superleaner is not a mice method, so the error may result from differences in implementation. Closing now.