Skip to contents

Methods

Methods for interacting with distributions.

Probability functions

Cumulative distribution, probability density, quantile, and random generation functions. These are equivalent to the p/d/q/r functions commonly used in R for probability distributions.

cdf() stable
The cumulative distribution function
density(<distribution>) stable
The probability density/mass function
quantile(<distribution>) stable
Distribution Quantiles
generate(<distribution>) stable
Randomly sample values from a distribution

Summary statistics

mean(<distribution>) stable
Mean of a probability distribution
median(<distribution>) stable
Median of a probability distribution
variance() covariance(<numeric>) stable
Variance
variance(<distribution>) stable
Variance of a probability distribution
covariance() stable
Covariance
covariance(<distribution>) stable
Covariance of a probability distribution
skewness() stable
Skewness of a probability distribution
kurtosis() stable
Kurtosis of a probability distribution
likelihood() log_likelihood() stable
The (log) likelihood of a sample matching a distribution

Distribution properties

family(<distribution>) experimental
Extract the name of the distribution family
parameters() experimental
Extract the parameters of a distribution
support() experimental
Region of support of a distribution
is_distribution() stable
Test if the object is a distribution
has_symmetry() experimental
Check if a distribution is symmetric

Intervals and regions

hilo(<distribution>) stable
Probability intervals of a probability distribution
hilo() stable
Compute intervals
is_hilo()
Is the object a hilo
hdr(<distribution>) maturing
Highest density regions of probability distributions
hdr()
Compute highest density regions
is_hdr()
Is the object a hdr

Probability distributions

Probability distributions for modeling random variables.

Continuous distributions

Continuous probability distributions.

dist_beta() stable
The Beta distribution
dist_burr() stable
The Burr distribution
dist_cauchy() stable
The Cauchy distribution
dist_chisq() stable
The (non-central) Chi-Squared Distribution
dist_exponential() stable
The Exponential Distribution
dist_f() stable
The F Distribution
dist_gamma() stable
The Gamma distribution
dist_gev() stable
The Generalized Extreme Value Distribution
dist_gh() stable
The generalised g-and-h Distribution
dist_gk() stable
The g-and-k Distribution
dist_gpd()
The Generalized Pareto Distribution
dist_gumbel() stable
The Gumbel distribution
dist_hypergeometric() stable
The Hypergeometric distribution
dist_inverse_exponential() stable
The Inverse Exponential distribution
dist_inverse_gamma() stable
The Inverse Gamma distribution
dist_inverse_gaussian() stable
The Inverse Gaussian distribution
dist_laplace() stable
The Laplace distribution
dist_logistic() stable
The Logistic distribution
dist_lognormal() stable
The log-normal distribution
dist_multivariate_normal() stable
The multivariate normal distribution
dist_multivariate_t() stable
The multivariate t-distribution
dist_normal() stable
The Normal distribution
dist_pareto() stable
The Pareto Distribution
dist_student_t() stable
The (non-central) location-scale Student t Distribution
dist_studentized_range() stable
The Studentized Range distribution
dist_uniform() stable
The Uniform distribution
dist_weibull() stable
The Weibull distribution

Discrete distributions

Discrete probability distributions.

dist_bernoulli() stable
The Bernoulli distribution
dist_binomial() stable
The Binomial distribution
dist_categorical() stable
The Categorical distribution
dist_geometric() stable
The Geometric Distribution
dist_logarithmic() stable
The Logarithmic distribution
dist_multinomial() stable
The Multinomial distribution
dist_negative_binomial() stable
The Negative Binomial distribution
dist_poisson() stable
The Poisson Distribution
dist_poisson_inverse_gaussian() stable
The Poisson-Inverse Gaussian distribution

Miscellaneous distributions

Degenerate and non-standard probability distributions.

dist_degenerate() stable
The degenerate distribution
dist_missing() maturing
Missing distribution
dist_percentile() stable
Percentile distribution
dist_sample() stable
Sampling distribution
dist_wrap() maturing
Create a distribution from p/d/q/r style functions

Distribution modifiers

Modifiers which change the nature of a distribution.

dist_inflated() stable
Inflate a value of a probability distribution
dist_mixture() maturing
Create a mixture of distributions
dist_transformed() maturing
Modify a distribution with a transformation
dist_truncated() stable
Truncate a distribution

Object constructors

Constructor functions for developers to use in extending the package.

new_dist() maturing
Construct distributions
new_hilo() stable
Construct hilo intervals
new_hdr()
Construct hdr intervals
new_support_region()
Construct support regions