Synthesis with a fast implementation of random forests
syn.ranger.RdGenerates univariate synthetic data using a fast implementation of
random forests. It uses ranger function
from the ranger package.
Arguments
- y
an original data vector of length
n.- x
a matrix (
nxp) of original covariates.- xp
a matrix (
kxp) of synthesised covariates.- smoothing
smoothing method for numeric variable. See
syn.smooth.- proper
for proper synthesis (
proper = TRUE) a model is fitted to a bootstrapped sample of the original data.- ...
additional parameters passed to
ranger.