Description Usage Arguments Value Author(s) Examples
Weighted 2D kernel density estimation
1 |
x |
Dimension 1 |
y |
Dimension 2 |
w |
Weight variable |
h |
vector of bandwidths for x and y directions. Defaults to normal reference bandwidth (ks::hpi). A scalar value will be taken to apply to both directions. |
adjust |
Bandwidth adjustment |
n |
Number of grid points in each direction. Can be scalar or a length-2 integer vector. |
lims |
The limits of the rectangle covered by the grid as c(xl, xu, yl, yu). |
A list of three components.
x, y
The x and y coordinates of the grid points, vectors of
length n.
z
An n[1] by n[2] matrix of the weighted estimated density:
rows correspond to the value of x, columns to the value of y.
Jose Alquicira-Hernandez
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.