powered by
Compute the density of a given point of a distribution.
density_at(posterior, x, precision = 2^10, ...)probability_at(posterior, x, precision = 2^10, ...)
probability_at(posterior, x, precision = 2^10, ...)
Vector representing a posterior distribution.
The value of which to get the approximate probability.
Number of points of density data. See the n parameter in density.
n
Currently not used.
# NOT RUN { library(bayestestR) posterior <- distribution_normal(n = 10) density_at(posterior, 0) density_at(posterior, c(0, 1)) # }
Run the code above in your browser using DataLab