getSELWeights | R Documentation |
This function constructs SEL weights with appropriate trimming for numerical stability and optional renormalisation so that the sum of the weights be unity
getSELWeights(x, bw = NULL, ..., trim = NULL, renormalise = TRUE)
x |
A numeric vector (with many close-to-zero elements). |
bw |
A numeric scalar or a vector passed to 'kernelWeights'. |
... |
Other arguments pased to |
trim |
A trimming function that returns a threshold value below which the weights are ignored. In common applications, this function should tend to 0 as the length of |
renormalise |
Logical; passed to 'sparseVectorToList'. |
A list with indices of large enough elements.
getSELWeights(1:5, bw = 2, kernel = "triangular")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.