You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An R package providing a collection of uncommon or reparameterized probability distributions. Many standard distributions (beta, gamma, log-normal) are wrapped with mean/standard-deviation parameterizations for convenience.
Installation
devtools::install_github("bamonroe/mdists")
Distributions
Mean-parameterized distributions
These let you specify distributions by their mean and standard deviation instead of shape parameters:
Convert normal-space mean/sd to log-space parameters
Example
library(mdists)
# Beta distribution specified by mean and sd
mdbeta(0.5, mu=0.3, sigma=0.1)
# Gamma random draws by mean and sd
mrgamma(100, mu=5, sigma=2)
# Beta-binomial probability
bbinom(n=10, k=3, a=2, b=5)
License
GPL-3
About
A collection of uncommon and reparameterized probability distributions for R