wt_kern | R Documentation |
wt_kern
calculates the appropriate kernel weights for a vector.
This is useful when, for instance, one wishes to perform local regression.
It is based on the kernelwts
function in the "rdd" package.
This is an internal function and is typically not directly invoked by the user.
It can be accessed using the triple colon, as in rddapp:::wt_kern().
wt_kern(X, center, bw, kernel = "triangular")
X |
A numeric vector containing the the input |
center |
A numeric value specifying the point from which distances should be calculated. |
bw |
A numeric value specifying the bandwidth. |
kernel |
A string indicating which kernel to use. Options are |
wt_kern
returns a vector of weights with length equal to that of the X
input
(one weight per element of X
).
Drew Dimmery (2016). rdd: Regression Discontinuity Estimation. R package version 0.57. https://CRAN.R-project.org/package=rdd
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.