warping(haerdle) | R Documentation |
smoothed histogram by WARPing
warping(x, h, M, kernel)
x |
vector of points |
h |
bin width |
M |
number of small bins |
kernel |
code for kernel. 1 = uniform, 2 = triangle (ASH), 3 = Epanchenikov, 4 = quartic, 5 = triweight, 6 = Gaussian |
matrix with two columns as the bin midpoints and heights.
`Smoothing Techniques with Implementation in S', Wolfgang Haerdle, Springer, 1991
data(dat.mixed) # Figure 1.19 and p.40 plot(warping(dat.mixed,1.2,10,1), type="l")