This is a package of distributions I have found useful for Bayesian analysis. Distributions include:
All distributions include density, quantile, cdf, and generation functions, and all are unit tested.
library(devtools)
install_github('kuperov/bdist')
Plot a double generalized Pareto distribution:
library(bdist)
gdp.density <- function(x) dgdp(x, xi = 1, alpha = 2)
plot(gdp.density, from = -5, to = 5, col = 'blue',
main = expression("Double Generalized Pareto distribution:" ~
xi == 1~alpha == 2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.