amices / mice

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

Question about the imputation returns negative values. #413

Closed sunxi822 closed 3 years ago

sunxi822 commented 3 years ago

Hello everyone,

I am trying to impute missing data by using mice( ). It works well, but it returns negative values for a variable that should be positive. I don't know how to solve this problem.

Hope for anyone's reply. Many thanks!

gerkovink commented 3 years ago

Imputation method mice.impute.pmm() will never return values that are not observed, so using that method should solve your problem.