Mark van der Loo
Mark van der Loo
Ratio imputation is based on a weighted single regressio regression Y = bX with weights 1/X. Would be nice to have a `impute_ratio` function. Also `lm` makes a different choice...
by predicting with `predict.all=TRUE` we get the matrix of predictions. Row-wise aggergation can be customized (but it may cost a lot of memory as the matrix of predictions equals nrow(newdata)...
This generalizes the (grouped) median approach. Needs dependency on the [quantreg](https://CRAN.R-project.org/package=quantreg) package.
It is currently not possible to compare `character` variables with `factor` variables. This should be added w/o breaking the design principle that prevents the package from making copies of data.
Need to update so cran is not swamped when a dependency tests using `gower`.