View source: R/functions.syn.r
syn.smooth | R Documentation |
Implements three different smoothing methods for numeric data.
syn.smooth(ysyn, yobs = NULL, smoothing = "spline", window = 5, ...)
ysyn |
non-missing synthetic data to be smoothed. |
yobs |
original data used by all methodds to determine number of
decimal places and by method |
smoothing |
a character vector that can take values |
window |
width of window for running mean. |
... |
additional parameters. |
Smooths numeric variables by three methods. Default is "spline"
that
uses a smoothing spline, others are "density"
that uses a Gaussian
kernel density estimator with bandwidth selected using the Sheather-Jones
'solve-the-equation' method (see bw.SJ
) and "rmean"
that smooths with a running mean of width "window"
(see
runningmean
).
A vector of smoothed values of ysyn
.
syn
, syn.sample
, syn.normrank
,
syn.pmm
, syn.ctree
, syn.cart
,
syn.bag
, syn.rf
, syn.ranger
,
syn.nested
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.