Description Usage Arguments Value
View source: R/mice.impute.ranger.R
Designed as an alternative to the the "rf"
method in the mice
package.
Imputes univariate missing data using random forests. It uses the same algorithm as
"mice.impute.rf"
(included in the mice
package, but is much faster because it uses
the ranger
package.
This function should not be called directly.
Instead, call this function through mice()
by specifying method = "ranger"
.
1 | mice.impute.ranger(y, ry, x, ntree = 10, wy = NULL, type = NULL, ...)
|
y |
Vector to be imputed |
ry |
Logical vector of length |
x |
the matrix of predictors, without intercept |
ntree |
the number of trees for the random forest algorithm. Default is 10. |
wy |
Logical vector of length |
type |
Not used. Needed for compatibility with mice |
... |
Other arguments passed to |
A vector of imputed values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.