kernels {quantspec} | R Documentation |
Kernel function.
Description
Implementations of kernel functions
Usage
W0(x)
W1(x)
W2(x)
W3(x)
WDaniell(x, a = (pi/2))
WParzen(u)
Arguments
x |
real-valued argument to the function; can be a vector |
a |
real number between 0 and |
u |
real number |
Details
Daniell kernel function W0
:
Epanechnikov kernel W1
(i. e., variance minimizing kernel function of order 2):
Variance minimizing kernel function W2
of order 4:
Variance minimizing kernel function W3
of order 6:
Kernel yield by convolution of two Daniell kernels:
Parzen Window for lagEstimators
Examples
plot(x=seq(-8,8,0.05), y=W0(seq(-8,8,0.05)), type="l")
plot(x=seq(-8,8,0.05), y=W1(seq(-8,8,0.05)), type="l")
plot(x=seq(-8,8,0.05), y=W2(seq(-8,8,0.05)), type="l")
plot(x=seq(-8,8,0.05), y=W3(seq(-8,8,0.05)), type="l")
plot(x=seq(-pi,pi,0.05), y=WDaniell(seq(-pi,pi,0.05),a=(pi/2)), type="l")
plot(x=seq(-2,2,0.05),y=WParzen(seq(-2,2,0.05)),type = "l")
[Package quantspec version 1.2-4 Index]