NEWS | R Documentation |
Delaporte package
The distributional functions now return NaN
where the passed alpha
, beta
, or lambda
is close to 0 (less than machine epsilon). Within vectors, valid triplets should still return proper values. The approximate versions of qdelap
and rdelap
do not handle 0 properly, and an error is thrown directing the user to the exact version. Thanks are due to Jonathan Cairns and Jin-Rui Xu for their help in testing.
Faster versions of the approximate qdelap
and rdelap
have been implemented.
Tests for near 0 handling on exact version.
The old approximation versions of qdelap
and rdelap
can still be used by passing oldapprox = TRUE
. This will be removed eventually.
Reverted back to 2.2-3 as change to trapping zeros caused serious downstream issues. Will work on more elegant correction shortly (thanks to Mikhail Spivakov, Jonathan Cairns, and Jin-Rui Xu).
In the next release (3.0.0), passing FALSE to exact
in rdelap
and qdelap
will use the method described in section 3.9 of Karlis & Xekalaki (2005) to generate approximately Delaporte random variates much more quickly for large n
and large values of the parameters. However, when implemented, this will break reproduceability even for specifically set seeds. The new code is commented out in the function.
Change non-exact qdelap
mode to numeric instead of integer to handle returned Inf
.
Refactor NEWS to more closely comply with keep a changelog suggestions.
Check for any parameters not strictly greater than 0 (thanks to Mikhail Spivakov and Jonathan Cairns).
Explicitly import code from package stats
.
Updated code in unit tests to reflect change in testthat
package (move to expect_equal
).
Minor tweaks to prose and grammar and expanded description.
Updated DESCRIPTION file to comply with recent changes.
Trapped machine precision issues when calling right-tailed version of cumulative distribution function (thanks to Mikhail Spivakov and Jonathan Cairns).
Update documentation to reflect rounding procedure when non-integer passed as value.
Vectorized d/p/q/rdelap
; alpha
, beta
, and lambda
can now be vectors.
Added more robust tests.
Minor optimizations for speed.
Corrected lower.tail
and log.p
which were not implemented properly.
Adjusted unit test so it can be run more easily on 32 bit machine with limited memory.
Fixed spelling and other prose.
Added function to calculate method of moments estimates for the parameters. These estimates should also serve as good starting points for maximum likelihood estimation.
Added unit testing.
Minor cleanup after Rcpp update (remove Makevar files; tweak documentation).
Updating for changes made to Rcpp 0.11.0. Previous versions may no longer compile properly and the current version may no longer work with older versions of Rcpp.
Change "Depends" to "LinkingTo" in line with CRAN philosophy on package dependencies.
Update documentation to give rough estimate as to when "exact = FALSE" should be used (rarely).
Have R code be written in a consistent style.
Update README now that CRAN uses it as well.
Minor grammar and typography tweaks to documentation.
Poisson-negative binomial approximation to quantile and random variate functions.
This greatly speeds up calculation for large α, β, or λ.
Converted NEWS to NEWS.Rd.
Added repository and bug report URL to DESCRIPTION.
Help documentation corrections, comments, and tweaks.
Initial version.