syn.ranger: Synthesis with a fast implementation of random forests

View source: R/functions.syn.r

syn.rangerR 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 n.

x

a matrix (n x p) of original covariates.

xp

a matrix (k x p) of synthesised covariates.

smoothing

smoothing method for numeric variable. See syn.smooth.

proper

for proper synthesis (proper = TRUE) a model is fitted to a bootstrapped sample of the original data.

...

additional parameters passed to ranger.

Details

...

Value

A list with two components:

res

a vector of length k with synthetic values of y.

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


synthpop documentation built on Aug. 31, 2022, 5:06 p.m.