Description Usage Arguments Value Author(s) References Examples
Return mode of a vector as calculated using KDE.
1 2 |
data |
One-dimensional vector of data. |
type |
Bandwidth selection: 1. "diffusion": Kernel Density Estimation Via Diffusion, Botev el al. 2010; 2. SJ: Sheater and Jones method; 3. nrd0: Silverman heuristic. |
weights |
Numeric vector of non-negative observation weights, of the same length as data. |
from |
Lower bound of values for KDE estimation. By default this is min(data)-0.1*diff(range(data)). |
to |
Upper bound of values for KDE estimation. By default this is max(data)+0.1*diff(range(data)). |
outplot |
If TRUE provides plot of the KDE and the mean, median and mode. |
... |
Additional arguments can be passed to plotting functions. For example use main="" to replace the title. |
mode |
Estimated mode value. |
xd |
Estimated values. |
fd |
Estimated density. |
h |
BAndwidth. |
Nikolaos Kourentzes
Kourentzes, Nikolaos, Devon K. Barrow, and Sven F. Crone. "Neural network ensemble operators for time series forecasting." Expert Systems with Applications 41.9 (2014): 4235-4244.
Botev, Z. I., J. F. Grotowski, and D. P. Kroese. "Kernel density estimation via diffusion." The Annals of Statistics 38.5 (2010): 2916-2957.
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.