Description Usage Arguments Value Author(s) References See Also Examples
Calculates and plots highest density regions for a conditional density
estimate. Uses output from cde
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
den |
Conditional density in the same format as the output from
|
prob |
Probability coverage level for HDRs |
plot |
Should HDRs be plotted? If FALSE, results are returned. |
plot.modes |
Should modes be plotted as well as HDRs? |
mden |
Marginal density in the |
threshold |
Threshold for margin density. HDRs are not plotted if the
margin density |
nn |
Number of points to be sampled from each density when estimating the HDRs. |
xlim |
Limits for x-axis. |
ylim |
Limits for y-axis. |
xlab |
Label for x-axis. |
ylab |
Label for y-axis. |
border |
Show border of polygons |
font |
Font to be used in plot. |
cex |
Size of characters. |
... |
Other arguments passed to plotting functions. |
hdr |
array (a,b,c) where where a specifies conditioning value, b gives the HDR endpoints and c gives the probability coverage. |
modes |
estimated mode of each conditional density |
Rob J Hyndman
Hyndman, R.J., Bashtannyk, D.M. and Grunwald, G.K. (1996) "Estimating and visualizing conditional densities". Journal of Computational and Graphical Statistics, 5, 315-336.
1 2 |
This is hdrcde 3.2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.