DPQmpfr-package {DPQmpfr} | R Documentation |
An extension to the 'DPQ' package with computations for 'DPQ' (Density (pdf), Probability (cdf) and Quantile) functions, where the functions here partly use the 'Rmpfr' package and hence the underlying 'MPFR' and 'GMP' C libraries.
The DESCRIPTION file:
Package: | DPQmpfr |
Title: | DPQ (Density, Probability, Quantile) Distribution Computations using MPFR |
Version: | 0.3-1 |
Date: | 2021-05-17 |
Authors@R: | person("Martin","Maechler", role=c("aut","cre"), email="maechler@stat.math.ethz.ch", comment = c(ORCID = "0000-0002-8685-9910")) |
Description: | An extension to the 'DPQ' package with computations for 'DPQ' (Density (pdf), Probability (cdf) and Quantile) functions, where the functions here partly use the 'Rmpfr' package and hence the underlying 'MPFR' and 'GMP' C libraries. |
Depends: | R (>= 3.6.0) |
Imports: | DPQ (>= 0.4-3), Rmpfr, gmp, stats, graphics, methods, utils |
Suggests: | sfsmisc, Matrix |
SuggestsNote: | Matrix for its test-tools-1.R |
License: | GPL (>= 2) |
Encoding: | UTF-8 |
Author: | Martin Maechler [aut, cre] (<https://orcid.org/0000-0002-8685-9910>) |
Maintainer: | Martin Maechler <maechler@stat.math.ethz.ch> |
Repository: | R-Forge |
Repository/R-Forge/Project: | specfun |
Repository/R-Forge/Revision: | 208 |
Repository/R-Forge/DateTimeStamp: | 2022-04-25 16:45:26 |
Date/Publication: | 2022-04-25 16:45:26 |
Index of help topics:
DPQmpfr-package DPQ (Density, Probability, Quantile) Distribution Computations using MPFR dbetaD94 Ding(1994) (non-central) Beta Distribution Functions dhyperQ Exact Hypergeometric Distribution Probabilites dntJKBm Non-central t-Distribution Density pnormL_LD10 Bounds for 1-Phi(.) - Mill's Ratio related Bounds for pnorm() qbBaha2017 Accurate qbeta() values from Baharev et al (2017)'s Program stirlerrM Stirling Formula Approximation Error
Martin Maechler [aut, cre] (<https://orcid.org/0000-0002-8685-9910>)
Maintainer: Martin Maechler <maechler@stat.math.ethz.ch>
Packages DPQ
,
Rmpfr
are both used by this package.
## An example how mpfr-numbers "just work" with reasonable R functions: .srch <- search() ; doAtt <- is.na(match("Rmpfr:package", .srch)) if(doAtt) require(Rmpfr) nu.s <- 2^seqMpfr(mpfr(-30, 64), mpfr(100, 64), by = 1/mpfr(4, 64)) b0 <- DPQ::b_chi(nu.s) b1 <- DPQ::b_chi(nu.s, one.minus=TRUE) stopifnot(inherits(b0,"mpfr"), inherits(b1, "mpfr"), b0+b1 == 1, diff(log(b1)) < 0) plot(nu.s, log(b1), type="l", log="x") plot(nu.s[-1], diff(log(b1)), type="l", log="x") if(doAtt) # detach the package(s) we've attached above for(pkg in setdiff(search(), .srch)) detach(pkg, character.only=TRUE)