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

Interface to specify variables to use/impute/ignore. #17

Closed
mayer79 opened this issue Jun 9, 2019 · 3 comments
Closed

Interface to specify variables to use/impute/ignore. #17

mayer79 opened this issue Jun 9, 2019 · 3 comments
Labels

Comments

@mayer79
Copy link
Owner

mayer79 commented Jun 9, 2019

missRanger uses all factors and numeric variables in the fitting process. This is annoying if there are id variables etc. that we want to ignore during imputation. Similarly, there might be situations where there is a fixed set of variables X used to fill missing values and a set of variables Y that should be imputed. What is the neatest way to pass this info to missRanger?

Suggestion:

  • impute = NULL (or character vector): Variables to impute. If NULL, use all.

  • impute_by = NULL (or character vector): Variables used to impute "impute". If NULL, use all.

  • impute_ignore: NULL (or character vector): Variables not to impute.

  • impute_by_ignore = NULL (or character vector): Variables not used to impute.

Any input is very welcome.

@mnwright
Copy link

What about a formula interface?

The default would be . ~ ., i.e. impute all by all.

One could use something like A + B ~ C + D or . -ID -y ~ . -ID.

Wouldn't that combine all of your suggestions above in one argument?

@mayer79
Copy link
Owner Author

mayer79 commented Jun 13, 2019

Awesome idea!

@mayer79
Copy link
Owner Author

mayer79 commented Jun 23, 2019

Ready for cran

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

No branches or pull requests

2 participants