Synthesis with a fast implementation of random forests
syn.ranger.Rd
Generates 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 (
n
xp
) of original covariates.- xp
a matrix (
k
xp
) 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
.