Description Usage Arguments Value Author(s) Examples
This function will calculate the appropriate kernel weights for a vector. This is useful when, for instance, one wishes to perform local regression.
1 |
X |
input x values. This variable represents the axis along which kernel weighting should be performed. |
center |
the point from which distances should be calculated. |
bw |
the bandwidth. |
kernel |
a string indicating the kernel to use. Options are |
A vector of weights with length equal to that of the X
input (one weight per element of X
).
Drew Dimmery <drewd@nyu.edu>
1 2 3 4 5 6 7 8 |
Loading required package: sandwich
Loading required package: lmtest
Loading required package: zoo
Attaching package: 'zoo'
The following objects are masked from 'package:base':
as.Date, as.Date.numeric
Loading required package: AER
Loading required package: car
Loading required package: carData
Loading required package: survival
Loading required package: Formula
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.