Closed blueskypie closed 8 months ago
the crash is provoked by randomForest() not missForest() however having Inf
in your data is generally not advisable as no regression method will be able to handle it (at least not without any tweaking/setting involved). Replacing it with NA
will also not help, as this would either provoke the exact same error from randomForest() or break the imputation process of missForest.
Bottomline: avoid having Inf
in your data.
if
xmis
inmissForest::missForest
containsInf
, it crashes with the following error:it'd be helpful to handle this case to avoid crash, e.g. change Inf to NA.