syn.ranger {synthpop} | R Documentation |
Synthesis with a fast implementation of random forests
Description
Generates univariate synthetic data using a fast implementation of
random forests. It uses ranger
function
from the ranger package.
Usage
syn.ranger(y, x, xp, smoothing = "", proper = FALSE, ...)
Arguments
y |
an original data vector of length |
x |
a matrix ( |
xp |
a matrix ( |
smoothing |
smoothing method for numeric variable. See
|
proper |
for proper synthesis ( |
... |
additional parameters passed to
|
Details
...
Value
A list with two components:
res |
a vector of length |
fit |
the model fitted to the observed data that was used to produce synthetic values. |
References
...
See Also
syn
, syn.rf
,
syn.bag
, syn.cart
,
ranger
, syn.smooth
[Package synthpop version 1.8-0 Index]