Compute the density value at a given point of a distribution (i.e., the value of the y axis of a value x of a distribution).
density_at(posterior, x, precision = 2^10, method = "kernel", ...)
| posterior | Vector representing a posterior distribution. |
|---|---|
| x | The value of which to get the approximate probability. |
| precision | Number of points of density data. See the |
| method | Density estimation method. Can be |
| ... | Currently not used. |
#> [1] 0.3687704#> [1] 0.3687704 0.2509099