View source: R/functions.syn.r
syn.bag | R Documentation |
Generates univariate synthetic data using bagging. It uses
randomForest
function from the randomForest package with
number of sampled predictors equal to number of all predictors.
syn.bag(y, x, xp, smoothing = "", proper = FALSE, ntree = 10, ...)
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
|
...
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. |
...
syn
, syn.rf
, syn.cart
,
randomForest
, syn.smooth
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.