warping(haerdle)R Documentation

smoothed histogram by WARPing

Description

smoothed histogram by WARPing

Usage

warping(x, h, M, kernel)

Arguments

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

Value

matrix with two columns as the bin midpoints and heights.

References

`Smoothing Techniques with Implementation in S', Wolfgang Haerdle, Springer, 1991

Examples

data(dat.mixed)
# Figure 1.19 and p.40
plot(warping(dat.mixed,1.2,10,1), type="l")


[Package Contents]