Description Usage Arguments Details Value Author(s) References See Also Examples
Function to plot a weighted kernel density estimate.
1 2 3 4 |
y |
the observed, contaminated data. |
eval |
grid on which the deconvolution density estimate be calculated. |
sigma |
the standard deviation of the contaminating (normal) distribution. |
h |
the bandwidth to be used for the weighted kernel density estimate |
w |
the weights to be used. |
gamma |
the regularisation parameter to be used; either a scalar
for methods |
.
method |
method to be used to solve the quadratic programming
problem involved in calculating the weights; if |
RUG |
logical; if |
COMPARE |
logical; if |
XLAB |
label for the x axis. |
YLAB |
label for the y axis. |
COL |
colours in which the density estimates should be drawn. |
LTY |
line type in which the density estimates should be drawn. |
LWD |
line width with which the density estimates should be drawn. |
YLIM |
limits for the y axis. |
If "eval"
is not specified, it defaults to
seq(min(y)-0.1*sd(y), max(y)+0.1*sd(y), length=100)
.
If "w"
is not specified, it defaults to w.hat(y, sigma=sigma, h=h, gamma=gamma, METHOD=method)
.
If "h"
is not specified, it defaults to bw.SJ(y, method="dpi")
.
Invisible NULL
. This function is called for its side effect of
creating a plot.
Martin L Hazelton m.hazelton@massey.ac.nz
Berwin A Turlach Berwin.Turlach@gmail.com
Hazelton, M.L. and Turlach, B.A. (2009). Nonparametric density deconvolution by weighted kernel estimators, Statistics and Computing 19(3): 217–228. http://dx.doi.org/10.1007/s11222-008-9086-7.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.