Moments, parameters, linear moments (L-moments), and log-likelihood of a
distribution() object.
Arguments
- d
a
corehydro_distobject fromdistribution()ordist_fit().- data
numeric vector of observations.
Value
dist_moments() returns a named numeric vector (mean, median,
mode, sd, skewness, kurtosis, minimum, maximum; entries are
NaN where undefined). dist_params() returns the parameter vector named
with the family's short-form parameter names. dist_lmoments() returns
the first four L-moments (errors for families without L-moment support).
dist_log_likelihood() returns a single numeric value.
Examples
d <- distribution("Normal", c(100, 15))
dist_moments(d)
#> mean median mode sd skewness kurtosis minimum maximum
#> 100 100 100 15 0 3 -Inf Inf
dist_params(d)
#> µ σ
#> 100 15