Description Usage Arguments Details Value Examples
This function calls quantreg::akj
and formats its return
value as a list with x & y elements, consistent with other kernel
density estimation functions. It also provides arguments for
defining the x-grid that the PDF is estimated on.
1 2 |
x |
The data to estimate a PDF for. |
n |
The size of the x-grid to estimate the density on.
Defaults to twice the length of x, which is the default used by
|
extend |
The distance beyond the range of the data to extend
the x-grid. Defaults to 3 times the bandwidth calculated by
|
min.x |
The minimum value of x to compute the density on.
Defaults to the minimum data value minus |
max.x |
The maximum value of x to compute the density on.
Defaults to the maximum data value plus |
The documentation for akj
says that the data values are
assumed to be sorted. Although it doesn't appear to matter in
practice, this function sorts them just in case.
A list with following components:
x: the x-values where the density is estimated.
y: the estimated density values at each x.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.