amices / mice

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

Add informative warning #606

Closed cjvanlissa closed 7 months ago

cjvanlissa commented 7 months ago

Add informative warning when all missing data patterns are dropped; closes #605

There is no problem here, but the message "No need for mice. This data set is completely observed" is confusing. It happens because md.patterns() is run on a data.frame with 0 rows. Now, I throw an informative error before this happens.