Repository navigation
-
New
Empirical()distribution based on a randomsample. This is particularly useful when forecasts are represented by samples rather than by parametric distributions (#98 and #120 by Reto Stauffer). -
New
SinhArcsinh()distribution implementing the Sinh-Arcsinh distribution from Jones and Pewsey (2009, Biometrika) (#128 by Reto Stauffer). -
Fallback methods for all standard
distributions3methods such ascdf(),pdf(),quantile(),random(), and moments such asmean(),variance(),skewness(), andkurtosis(). These leverage those methods that are available but fill the gaps using numerical integration/differentiation (#120 by Reto Stauffer). -
New generic functions
score()andhessian()to compute the score (first derivative of the log-likelihood with respect to the parameters) and Hessian (corresponding second derivative). There are numeric fallback methods for general distribution objects and analytic methods for a few distributions. Thehessian()methods should typically have an argumentexpectedwhich allows to select whether the observed (expected = FALSE) or expected (expected = TRUE) Hessian should be computed. Some methods may only support one or the other specification and throw an error message otherwise (#124 and #128 by Reto Stauffer and Achim Zeileis). -
All distribution constructor functions such as
Poisson()andBinomial()now have default arguments for all distribution parameters. Typically, these new defaults are empty so that for examplePoisson()yields a Poisson distribution of length zero. Only those distributions which already previously had a default such asNormal(mu = 0, sigma = 1)yield a distribution of length one (#26 and #129 by Reto Stauffer). -
Methods for
crps()function from the scoringRules package for computing the (continuous) ranked probabiity score of a distribution. This is a useful proper scoring rule as an alternative to the log-likelihood. A numerical fallback method is provided as well (#88 and #120 by Reto Stauffer and Achim Zeileis). -
Streamline the
apply_dpqr()workhorse function to avoid unnecessary computations more carefully (#123 and #125 by Achim Zeileis). -
Reduce the hard dependencies:
ggplot2is now a "Suggests" dependency and the usage ofglueis replaced by base R functionsprintf()(#126 and #125 by Achim Zeileis). -
Avoid using
rlang::check_dots_used()multiple times when calling a single method. For generic functions fromdistributions3, such ascdf()andvariance()etc., the call torlang::check_dots_used()is directly in the generic. For generic functions defined elsewhere, namelyquantile()andmean()from base R andcrps()fromscoringRules, all methods callrlang::check_dots_used()themselves (#127 by Reto Stauffer).