DPQmpfr-package {DPQmpfr} | R Documentation |
An extention to the 'DPQ' package, the computations for 'DPQ' (Density (pdf), Probability (cdf) and Quantile) functions for probability distributions in R. 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-0 |
Date: | 2020-06-12 |
Authors@R: | person("Martin","Maechler", role=c("aut","cre"), email="maechler@stat.math.ethz.ch") |
Description: | An extention to the 'DPQ' package, the computations for 'DPQ' (Density (pdf), Probability (cdf) and Quantile) functions for probability distributions in R. The functions here partly use the 'Rmpfr' package and hence the underlying MPFR and GMP C libraries. |
Depends: | R (>= 3.5.0) |
Imports: | DPQ, Rmpfr, gmp, stats, graphics, methods, utils |
License: | GPL (>= 2) |
Encoding: | UTF-8 |
Author: | Martin Maechler [aut, cre] |
Maintainer: | Martin Maechler <maechler@stat.math.ethz.ch> |
Repository: | R-Forge |
Repository/R-Forge/Project: | specfun |
Repository/R-Forge/Revision: | 140 |
Repository/R-Forge/DateTimeStamp: | 2020-06-16 16:00:51 |
Date/Publication: | 2020-06-16 16:00:51 |
Index of help topics:
DPQmpfr-package DPQ (Density, Probability, Quantile) Distribution Computations using MPFR dhyperQ Exact Hypergeometric Distribution Probabilites
Martin Maechler [aut, cre]
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)