k.epa | R Documentation |
This function computes the rescaled Epanechnikov kernel for a given value s
and bandwidth g
:
K\left(\frac{s}{g}\right) = \frac{3}{4g} \left( 1 - \left(\frac{s}{g}\right)^2 \right) I\left(\left|\frac{s}{g}\right| \leq 1\right),
where I
is the indicator function (it takes the value 1 if the condition is true and 0 otherwise).
k.epa(g, s)
g |
A numeric value or vector which contains the bandwidth(s). |
s |
A numeric value or vector with the values of the variable in which the kernel will be evaluated. |
Rescaled Epanechnikov kernel for the given value s
and bandwidth g
.
k.epa(g=5,s=2)
k.epa(g=5,s=c(2,1.5))
k.epa(g=c(5,6),s=c(2,1.5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.