Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot impute categorical variables #11

Closed
AurelieMich opened this issue Mar 22, 2018 · 1 comment
Closed

Cannot impute categorical variables #11

AurelieMich opened this issue Mar 22, 2018 · 1 comment

Comments

@AurelieMich
Copy link

I am trying to impute a dataset that contains categorical (factors) and numerical variables and that has about 10 % missing values in each variable. I have been able to impute my dataset with missForest, but I get the error "Error: is.vector(x) is not TRUE" when it comes to imputing my factor variable.

Is there a way to impute factors with missRanger?

@mayer79
Copy link
Owner

mayer79 commented Mar 22, 2018

Thanks for playing with missRanger. I can confirm there is a bug if the variable with the least number of missings is a factor. To fix the problem, I have submitted missRanger 1.0.1 to CRAN just now. It will be available within short time.

@mayer79 mayer79 closed this as completed Mar 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants