-
Notifications
You must be signed in to change notification settings - Fork 108
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
Request for Conditional imputation #152
Comments
There are several ways to do conditional imputation in Example: Suppose in
It is straightforward to adapt this script to other conditions. Would this address your problem? |
@stefvanbuuren, fully agree that the However, I believe that For that type of conditional imputation the suggestion above (altering the values post imputation using the Really, I'm thinking about Stata's conceptual framework with the separation of the imputation and estimation samples, and how to best consider/implement this within |
It's not entirely clear to me what problem you are trying to solve. If you develop a small example, I would be happy to think about how |
Closing in the anticipation of a reproducible example. Feel free to re-open. |
Proposal to consider adding a method to implement conditional imputation.
When comparing
mice()
capabilities to themi chained:
within Stata, Stata includes the ability to set conditional's such that only certain elements are imputed based on another column (which itself may be imputed).Within
mice()
we can specify a globalwhere
to skip imputing certain entries. However, this cannot handle the situation where the desire to skip imputing is conditional itself on another imputed entry.I imagine one way to address this would be to add a
pre
type argument akin to the currentpost
type argument, which the ability to adjust the missingness indicator matrix; but there might be a better (or moremice()
way of achieveing this).Another option would be to write custom
mice.impute.xxx
functions, but that seems extreme (and not very user friendly).Thoughts?
The text was updated successfully, but these errors were encountered: