syn.smooth
syn.smooth.Rd
Implements three different smoothing methods for numeric data.
Arguments
- ysyn
non-missing synthetic data to be smoothed.
- yobs
original data used by all methodds to determine number of decimal places and by method
"density"
to identify top-coding.- smoothing
a character vector that can take values
"spline"
,"density"
, or"rmean"
.- window
width of window for running mean.
- ...
additional parameters.
Details
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
).