| NEWS | R Documentation |
actuar News
CHANGES IN actuar VERSION 3.3-6
NEW FEATURES
?ruingains an example of mixtures of Erlang distributions for claims and interarrival times.
BUG FIXES
ruinnow works correctly for mixtures of Erlang distributions. Thanks to Paula Rocha Rodriguez paula.rocharodriguez@alum.uca.es for the report.varandsdfor individual data now correctly use the value of argumentna.rm(closes issue #5). Thanks to Ge Zhang for the report.pinvgaussandqinvgaussnow use a gamma approximation when the coefficient of variation is very small (ported from statmod v1.4.28).rinvgaussnow accurately handles large or infinite values for the mean or dispersion (ported from statmod v1.4.29).qinvgaussno longer takes an initial value outside the domain of convergence with the gamma approximation for small right tail probabilities (ported from statmod v1.4.30).
OTHER CHANGES
Replacement of a few API entry points for C API compliance introduced in R 4.5.0.
CHANGES IN actuar VERSION 3.3-5
NEW FEATURES
The
printmethods for objects of class"cm"and"summary.cm"now use the optiondeparse.cutoffto control the printing of the call tocm.
BUG FIXES
Appendix A of the “distributions” package vignette still listed the root
pareto2as an alias forpareto. Moreoever, the root for the Pareto II distribution was wrongly listed aspareto4.The equation for the mean of the zero-truncated Poisson distribution in the HTML version of the help page contained an inappropriate power 2 in the denominator. Thanks to Brad Biggerstaff bkb5@cdc.gov for the heads up.
OTHER CHANGES
Package vignettes now use Fira Sans for sans serif text.
CHANGES IN actuar VERSION 3.3-4
BUG FIXES
rcompoundwill now correctly retrieve the simulation models passed down from other functions as expression objects.One error message in
rmixturewas quoting the wrong argument.
CHANGES IN actuar VERSION 3.3-3
BUG FIXES
The generics
elevandogiveno longer rely on local variables added to the environment in which the method is evaluated byUseMethod. This “feature” should be removed from R in the next major release. Thanks to Luke Thierney luke-tierney@uiowa.edu for the direct notification and for the pointer to a fix.
USER VISIBLE CHANGES
rcomphierarcis now the base name for the simulation function of compound hierarchical models, whereassimulis an alias retained for backward compatibility.The alias
simpfforsimul(orrcomphierarc) is extinct.
CHANGES IN actuar VERSION 3.3-2
BUG FIXES
rcompound,rcomppoisandrmixtureevaluate their model arguments in the correct frame for a larger sets of circumstances, notably when called inside another function.?rmixtureprovides more information and examples on this matter for that function.
OTHER CHANGES
Package vignettes now use the STIX2 fonts for text and Fira Mono for code.
CHANGES IN actuar VERSION 3.3-1
BUG FIXES
Include prototypes for all C level functions to please
-Wstrict-prototypes.
CHANGES IN actuar VERSION 3.3-0
NEW FEATURES
Italian translations contributed by Daniele Medri dmedri@gmail.com.
Package help file; use
?actuarto read.New entry in the CITATION file for the paper in the Journal of Statistical Software presenting our implementation of the Feller-Pareto family of distributions.
CHANGES IN actuar VERSION 3.2-2
BUG FIXES
Replace deprecated (as of R 4.2.0) macro DOUBLE_EPS by DBL_EPSILON in C code.
CHANGES IN actuar VERSION 3.2-1
BUG FIXES
Fix incorrect usage of
all.equalin tests.
CHANGES IN actuar VERSION 3.2-0
NEW FEATURES
Generic versions of
varandsdwith methods for grouped data. The default methods (for individual data) call the standard functions of the stats package. Grouped data methods contributed by Walter Garcia-Fontes walter.garcia@upf.edu.Method of
summaryfor grouped data objects contributed by Walter Garcia-Fontes walter.garcia@upf.edu.Examples for the new methods for grouped data objects in
lossdistdemonstration R script.
BUG FIXES
Use
USE_FC_LEN_Tin the C prototypes of LAPACK functions to correspond to code produced by gfortran >= 7. The mechanism was introduced in R 3.6.2 and is planned to make its use obligatory in R 4.2.0.Miscellaneous fixes to formulas for grouped data in the documentation for
mean.grouped.dataandemm, as well as in the “modeling” package vignette.
CHANGES IN actuar VERSION 3.1-4
BUG FIXES
Due to its use of
log1mexpsince the previous release, the package depends on R >= 4.1.0.
CHANGES IN actuar VERSION 3.1-3
BUG FIXES
Carry over the new implementation of the Cornish-Fisher Expansion of base R used by
qlogarithmicandqpoisinvgauss.Fix computation of
[pq]zmpois,[pq]zmbinomand[pq]zmnbinomfollowing fixes to the underlying base R functions introduced in r80271 of R sources. With thanks to B.D. Ripley and Martin Maechler.
CHANGES IN actuar VERSION 3.1-2
BUG FIXES
qinvgaussnow returns a finite value when1.5/\code{shape} > 1000. Thanks to Bettina Grün bettina.gruen@wu.ac.at for the fix.A protection against rounding errors now ensures that
qzmlogarithmic(1 - pzmlogarithmic(x), lower.tail = FALSE) == xis alwaysTRUE.In
?dburr, the scale parameter appeared in the denominator of the density instead ofx. Thanks to Etienne Guy for the heads up.The package tests now correctly use
stopifnotwith argumentexprsexplicitly named.The formula for the moment of order
kfor grouped data in?emmfixed in version 2.3-3 for the LaTeX version is now also fixed for the text version. Thanks (again) to Walter Garcia-Fontes.
CHANGES IN actuar VERSION 3.1-1
BUG FIXES
rcompoundandrmixturenow correctly find objects defined higher in the call stack.
CHANGES IN actuar VERSION 3.1-0
BUG FIXES
rmixturenow randomly shuffles the variates by default and gains an argumentshuffle(TRUEby default). Usingshuffle = FALSErestores the previous behaviour where the output vector contains all the random variates from the first model, then all the random variates from the second model, and so on. When the order of the random variates is irrelevant, this cuts execution time roughly in half. Thanks to Adam Kałdus akaldus@wp.pl for the stimulating comments on this matter.
USER VISIBLE CHANGES
The number of variates returned by
rmixtureis now the length of argumentnif larger than 1, like otherr<dist>functions.rmixturenow checks the validity of its arguments.
CHANGES IN actuar VERSION 3.0-0
NEW FEATURES
Support functions
[dpqrm,lev]fparetofor the Feller-Pareto distribution and related Pareto distributions with a location parameter. The Feller-Pareto defines a large family of distributions encompassing the transformed beta family and many variants of the Pareto distribution. Using the nomenclature of Arnold (2015), the following distributions are now supported by actuar: Feller-Pareto, Pareto IV, Pareto III, and Pareto II. The Pareto I was already supported under the name Single Parameter Pareto. Contributed by Christophe Dutang, Vincent Goulet and Nicholas Langevin.The package now exposes through an API its 200+ C routines for probability functions and the beta integral. This is documented in a new section of the “distributions” package vignette. See file ‘include/actuarAPI.h’ in the package installation directory for the complete list of exported routines.
Improvements to the accuracy in the right tail of the
p<dist>andlev<dist>functions for most probability distributions of the transformed beta family. Achieved by replacingpbeta(u, a, b, lower.tail)foru > 0.5withpbeta(1 - u, b, a, !lower.tail)and an accurate computation ofu. Contributed by Nicholas Langevin.The C workhorse
betaint_rawbehindbetaintgains an additional argument to receive an accurate value of1 - x. Used extensively to improve accuracy of thelev<dist>functions for the transformed beta family. Contributed by Nicholas Langevin.The “distributions” package vignette now regroups distributions of the transformed beta families and the single parameter Pareto under the umbrella of the Feller-Pareto family of distributions. The vignette now also includes diagrams showing the interrelations between the members of this family, as well as between the members of the transformed gamma and inverse transformed gamma families.
Exhaustive regression tests for probability functions.
BUG FIXES
Improvements to the simulation algorithm for zero-modified discrete distributions in the
p_0^M < p_0case. Contributed by Nicholas Langevin.dpoisinvgaussno longer returnsNaNfor large values ofx. Solved by computing probabilities recursively instead of by callingbessel_k(the latter would overflow for largenuand propagateNaN). Computations are actually about twice as fast.ppoisinvgaussnow honors argumentlower_tail.qpoisinvgaussno longer fails withmu = Infandlog.p = TRUE.betaint(x, Inf, b)now returnsInfinstead ofNaN.betaint(.Machine$double.xmin, a, b), withb < 0, now returns 0 instead ofNaN.d<dist>andp<dist>functions for all continuous size distributions now handle limiting cases for infinite scale parameter, or for zero non-scale parameters, consistently with functions of base R.Affected functions are:
[dp]trbeta,[dp]burr,[dp]llogis,[dp]paralogis,[dp]genpareto,[dp]pareto,[dp]invburr,[dp]invpareto,[dp]invparalogisin the Transformed Beta family;[dp]trgamma,[dp]invtrgamma,[dp]invgamma,[dp]invweibull,[dp]invexpin the Transformed Gamma family;[dp]lgamma,[dp]gumbel,[dp]invgauss,[dp]genbeta.levinvexpno longer returnsNaNfor finite order.
BREAKING CHANGE
Support for the Pareto II distributions comes from functions
[dpqrm,lev]pareto2. These functions were aliases to[dpqrm,lev]paretoin previous version of actuar. The new functions are not backward compatible. Therefore, calls to the*pareto2functions of previous versions of actuar will return wrong results and should be replaced by calls to*paretofunctions.
DEFUNCT
Functions
[m,lev,mgf]invGaussthat were deprecated in version 2.0-0.
Note
Older news can be found in files ‘NEWS.2.Rd’ (2.x series), ‘NEWS.1.Rd’ (1.x series) and ‘NEWS.0.Rd’ (0.x series).