naniar
naniar copied to clipboard
Add imputation operation for neighbours as in MissingDataGUI
Add imputation operation for Neighbours, as in MissingDataGUI - Line154
There are actually two methods applied - these are:
-
impute_knn_avg
, and -
impute_knn_rand
These should take arguments, .tbl
and k
.
These still need some work, I need to add:
- [ ] proper handling for character/factor variables
- [ ] split impute_knn into _avg and _rand functions
- [ ] Look at adding
_at
and_if
scoped variants
Check out some similar imputation strategies in the same family here, as well as an interesting blog post here
This should be covered by #173