Skip to content

Extension: Imputation Models Vignette#20

Open
stefvanbuuren wants to merge 3 commits intogerkovink:masterfrom
stefvanbuuren:master
Open

Extension: Imputation Models Vignette#20
stefvanbuuren wants to merge 3 commits intogerkovink:masterfrom
stefvanbuuren:master

Conversation

@stefvanbuuren
Copy link
Contributor

This PR extends the "imputation models" vignette.

The mice package provides three helper functions to ensure that new data is compatible with trained imputation models:

Function Purpose
scan.newdata() Inspects a given dataset and reports mismatches with the trained models. Use this to diagnose potential issues before filling.
coerce.newdata() Transforms a dataset to match the expected structure based on a trained model. Use this to fix detected type mismatches.
make.newdata() Creates a skeleton newdata frame with the correct structure, types, and levels. Use this to start from scratch.

The changes currently reside in the version on the dev branch.

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

Successfully merging this pull request may close these issues.

1 participant