amices / mice

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

error in mice #650

Open mehrdad123qaderi opened 2 weeks ago

mehrdad123qaderi commented 2 weeks 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 2 weeks ago

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