Generates univariate synthetic data using a fast implementation of
random forests. It uses ranger function
from the ranger package.
syn.ranger(y, x, xp, smoothing = "", proper = FALSE, ...)A list with two components:
a vector of length k with synthetic values of y.
the model fitted to the observed data that was used to produce synthetic values.
an original data vector of length n.
a matrix (n x p) of original covariates.
a matrix (k x p) of synthesised covariates.
smoothing method for numeric variable. See
syn.smooth.
for proper synthesis (proper = TRUE) a model is fitted
to a bootstrapped sample of the original data.
additional parameters passed to
ranger.
...
...
syn, syn.rf,
syn.bag, syn.cart,
ranger, syn.smooth