0

I am running the following NA imputation with mice, but I am getting some error

 mice(num, method = impMethod, predictorMatrix = predMatrix, maxit = 1,
    +      m = 20, levels_id = cluster, variables_levels = level)

 iter imp variable
  1   1  VAR1Error in if (stats::sd(weight.obs) > 0) { : 
  missing value where TRUE/FALSE needed

Do you possible, what might it depend on?

jrcalabrese
  • 2,184
  • 3
  • 10
  • 30
12666727b9
  • 1,133
  • 1
  • 8
  • 22
  • Please provide a reproducible example: https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example – jrcalabrese May 15 '23 at 19:49
  • Reproducible example is here https://stackoverflow.com/questions/76194054/how-to-impute-data-with-ml-lmer-method-in-miceadds – 12666727b9 May 16 '23 at 07:33

0 Answers0