hpdi()
Scientific results for this function.
In D02 the default transformation grid split the middle 80 percent highest-density region of a three-mode ridge case; a finer grid recovered the three reference regions. D02 results.
Known tied, truncated and disjoint test distributions returned the expected interval endpoints and achieved the requested minimum discrete mass. D01 results.
A distribution with several peaks can give several disjoint intervals. The mass parameter applies to the selected regions together; the result describes concentration of the supplied density rather than significance against a null model.
Uses the existing discrete density-threshold method: sort sampled densities, find the threshold reaching the requested fraction of their sum, and include all points tied at that threshold. Consequently, the selected mass can exceed the requested value. Densities need not sum to one.
Method references
Hyndman, R. J. (1996). Computing and Graphing Highest Density Regions. The American Statistician 50, 120-126. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1080/00031305.1996.10474359")}.
Interpretation and limits. A summed curve depends on its inputs, grid and normalisation. Selecting a subset changes the archaeological population being summarised. A highest-density interval describes concentrated probability mass, with no null-model adjustment.
Implementation arguments, return value and documented modes
| Argument | Formal default | Behaviour in this interface |
|---|---|---|
x |
— | A skyscapeR.spd or skyscapeR.pdf object, or one data frame/list with numeric components |
mass |
0.954 |
Probability mass, greater than zero and at most one. Default is 0.954. |
Return value
For a PDF object, a list of interval matrices, one per distribution,
even for a single distribution. For SPD or x/y input, one matrix.
Each matrix has columns start and end, with ordered endpoints
and one row per contiguous region, sorted by start.
Implementation. R/misc.R. Full function help · Uncertainty and orientation distributions outline · From a measured orientation to a declination distribution