I have a data set that I cannot post for confidentiality reasons. I am attempting to impute missing values using aregImpute
in Hmisc
. However, I get an error something like this:
Error in aregImpute(): a bootstrap resample had too few unique values of the following variables:... "VARIABLE" has the following levels with < 5 observations: ... Consider using the group parameter to balance bootstrap samples
Can someone provide an example of aregImpute
using the group argument so I can see how the group argument is used in aregImpute
?
I don't really follow the documentation: https://www.rdocumentation.org/packages/Hmisc/versions/4.1-0/topics/aregImpute