Construct a distribution from its family name and parameter vector. The
result is a lightweight object accepted by dist_pdf(), dist_cdf(),
dist_quantile(), dist_random(), dist_moments(), and friends. The 38
families of the USACE-RMC Numerics library that take a flat parameter vector
are all supported, from Normal and Gumbel through GeneralizedNormal
(the three-parameter LogNormal) and KappaFour; distribution_names()
returns them. The five composite families it lists under "structured" have
no flat parameter vector and are built by dist_truncated(),
dist_mixture(), dist_competing_risks(), dist_empirical(), and
dist_kde() instead.
Details
Parameters are positional, in the same order as the C# constructor for the
family (for example Normal takes c(mean, sd) and
GeneralizedExtremeValue takes c(location, scale, shape)). Use
dist_params() on a constructed object to see the parameter names.
See also
dist_fit() to estimate one from data, distribution_names().