synthpop (version 1.5-1)

syn.rf: 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 n.

x

a matrix (n x p) of original covariates.

xp

a matrix (k x p) of synthesised covariates.

smoothing

smoothing method for continuous variables.

proper

...

ntree

number of trees to grow.

additional parameters passed to randomForest.

Value

A vector of length k with synthetic values of y.

Details

...

References

...

See Also

syn, syn.bag, syn.cart, randomForest