syn.rf {synthpop} | R Documentation |
Synthesis with random forest
Description
Generates univariate synthetic data using Breiman's random forest algorithm
classification and regression. It uses randomForest
function
from the randomForest package.
Usage
syn.rf(y, x, xp, smoothing = "", proper = FALSE, ntree = 10, ...)
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 ( |
ntree |
number of trees to grow. |
... |
additional parameters passed to
|
Details
...
Value
A list with two components:
res |
a vector of length |
fit |
the fitted model which is an object of class |
References
...
See Also
syn
, syn.rf
,
syn.bag
, syn.cart
,
randomForest
,
syn.smooth
[Package synthpop version 1.8-0 Index]