Description Usage Arguments Details Value Author(s) See Also Examples
Computes the Nadaraya-Watson weights.
1 |
covariate |
Covariate values for obtaining weights. |
x |
Covariate value to compute the weight at. |
kernel |
A character string specifying the desired kernel. See details below for possible options. Defaults to "gaussian" where the gaussian density kernel will be used. |
bw |
A single numeric value to compute a kernel density bandwidth. |
Possible options for argument window are "gaussian", "epanechnikov", "tricube", "boxcar", "triangular", "quartic" or "cosine".
A vector with Nadaraya-Watson weights.
Luis Meira-Machado, Marta Sestelo and Gustavo Soutinho.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.