Skip to content

Density, Probability, Quantile ('DPQ') Computations

2packages depend
31.8Kdownloads / year
45.4%test coverage
13/13flavors OK

Overview

About

Computations for approximations and alternatives for the 'DPQ' (Density (pdf), Probability (cdf) and Quantile) functions for probability distributions in R. Primary focus is on (central and non-central) beta, gamma and related distributions such as the chi-squared, F, and t. -- For several distribution functions, provide functions implementing formulas from Johnson, Kotz, and Kemp (1992) doi:10.1002/bimj.4710360207 and Johnson, Kotz, and Balakrishnan (1995) for discrete or continuous distributions respectively. This is for the use of researchers in these numerical approximation implementations, notably for my own use in order to improve standard R pbeta(), qgamma(), ..., etc: {'"dpq"'-functions}.

Changes in 0.6-2

NEW FEATURES

  • New laBeta().

BUG FIXES

  • Re-add bib.ref. KenWG80.
  • Tweaks in R/beta-fns.R.
  • Ensure for all exported functions.

Misc

  • No longer export the Wienergerm utilities g2(), h(), hnt(), etc.
  • tests/ppois-ex.R should no longer fail on Linux arm64.
  • More speed up for man/dnt.Rd example when doExtra is false.
  • vignettes/qnorm-asymp.Rnw update to 2026; mention practical inference non-relevance.

From inst/NEWS.Rd in the release

Install

Health

CRAN checks
13OK
Slowest check: 9.3 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-09-09
  • NOTE8 OK, 5 NOTE2026-07-24
  • ERROR8 OK, 4 NOTE, 1 ERROR2026-07-23
  • NOTE12 OK, 1 NOTE2026-07-12
  • OK13 OK2026-06-27
Show 2 earlier changesHide 2 earlier changes
  • WARNING12 OK, 1 WARNING2026-06-14
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.6-2
READMENoVignettesYes · 4 · dynamicNEWSYes · mentions 0.6-2Citation fileNoWebsiteYes
Help pages
81includes a package overview page
Examples that run
94%76 run in a plain check · 1 only when donttest examples are enabled (R CMD check --as-cran) · 4 hold no code
Exported functions with examples
100%
Documented parameters
71%
Return-value docs
99%
Help pages citing references
84%

Downloads

31.8K
CRAN downloads in the past year
Rank #2,670 · ~87/day · ~2.6K/mo
Daily download trend is not available in this view yet.
1.8K30 days
5.6K90 days
31.8K1 year
Compare downloads with other packages →
Also on476 r2u10 autocran6.2K conda_forge127 c2d4u

Repository

PracticesBeta

Repository r-forge.r-project.org/scm/viewvc.php is linked, but repository-practices checks have not run for it yet. Checks are GitHub-only for now.

How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
7 external dependencies (excludes base and recommended)

Installing DPQ adds 1 package (0 with compiled code, 187 KB of source tarballs). Heaviest: sfsmisc 187 KB.

Depends (1)
R >= 4.1.0
Imports (5)
statsgraphicsmethodsutilssfsmisc
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
2direct
0indirect
Imports 2
Depends, Imports or LinkingTo, most downloaded first

Datasets

People & History

People (7)
Author, Maintainer since 0.3-3 (2019)
Contributor
src/{dpq.h, algdiv.c, pnchisq.c, bd0.c}
Contributor · added in 0.3-5
lsum(), lssum()
Contributor
src/qchisq_appr.c
Contributor
dtWV(), 2002
Contributor
pgamma C code, see PR#7307, Jan. 2005; further pdhyper()
Copyright holder · added in 0.3-5
src/qchisq-appr.c
Releases (19)

Pick two releases to compare their code metrics.

  • 0.6-2Latest
    record
    2026-09-06 · current release · diff ↗ ·
    removed 9 exports
    g2, gnt, h, h0, h1, h2, hnt, pntChShP94, pntChShP94.1
    added 1 export
    laBeta
  • R
    R 4.6.0 released · 2026-04-24
  • 0.6-1
    record
    2025-10-13 · diff ↗ ·
    added 9 exports
    gam1, gamln1., pbetaAS_eq20, pbetaAS_eq21, pbetaNorm2, .pbeta.eq20, .pbeta.eq21, .pbetaSeq20, .pbetaSeq21
  • 0.6-0
    record
    2025-07-08 · diff ↗ ·
    removed 1 export
    logcfR.
    added 4 exports
    dltgammaInc, lgammaP11, logcfR_vec, bd0_p1l1
  • R
    R 4.5.0 released · 2025-04-11
  • 0.5-9
    record
    2024-08-24 · diff ↗ ·
    added 14 exports
    pow, pow_di, .pow, gam1d, gamln1, pntVW13, pntGST23_T6, pntGST23_T6.1, pntGST23_1, Ixpq, pow1p, stirlerrC, expm1x, expm1xTser
  • R
    R 4.4.0 released · 2024-04-24
  • 0.5-8
    record
    2023-12-01 · diff ↗
  • 0.5-7
    record
    2023-11-03 · diff ↗
  • 0.5-6
    record
    2023-09-07 · diff ↗
  • 0.5-5
    record
    2023-06-23 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.5-4
    record
    2023-04-14 · diff ↗ ·
    added 3 exports
    qnormCappr, rexpm1, rlog1
  • 0.5-3
    record
    2022-12-01 · diff ↗ ·
    added 13 exports
    gammaVer, qnormAsymp, qnormUappr6, qntR, qntR1, qtNappr, qtU, qtU1, qtR, qtR1, chebyshevPoly, chebyshevEval, chebyshev_nc
  • 0.5-2
    record
    2022-06-11 · diff ↗ ·
    added 5 exports
    bpser, dpsifn, dpois_simpl, dpois_simpl0, stirlerr_simpl
  • R
    R 4.2.0 released · 2022-04-22
Show 11 earlier eventsHide 11 earlier events
  • 0.5-1
    record
    2021-12-13 · diff ↗
  • 0.5-0
    record
    2021-11-24 · diff ↗ ·
    added 5 exports
    frexp, ldexp, modf, ebd0C, .p1l1ser
  • 0.4-4
    record
    2021-05-27 · diff ↗ ·
    added 3 exports
    bd0_p1l1d1, bd0_p1l1d, bd0_l1pm
  • R
    R 4.1.0 released · 2021-05-18
  • 0.4-3
    record
    2021-05-05 · diff ↗ ·
    added 20 exports
    log1mexpC, log1pexpC, log1pmxC, lgamma1pC, lgammacor, logcfR, logcfR., qpoisR, bd0C, ebd0, p1l1, p1l1., p1l1p, p1l1ser, dbinom_raw, dnbinomR, dnbinom.mu, qbinomR, qnbinomR, pnormAsymp
  • 0.4-2
    record
    2020-11-09 · diff ↗ ·
    added 5 exports
    M_SQRT2, pnormL_LD10, pnormU_S53, qnormR, qnormR1
  • 0.4-1
    record
    2020-06-20 · diff ↗ ·
    added 27 exports
    Bern, .suppHyper, dhyperBinMolenaar, hyper2binomP, lfastchoose, f05lchoose, lgammaAsymp, phyper1molenaar, phyper2molenaar, phyperAllBin, phyperAllBinM, phyperApprAS152, phyperBin.1, phyperBin.2, phyperBin.3, phyperBin.4, phyperBinMolenaar, phyperBinMolenaar.1, phyperBinMolenaar.2, phyperBinMolenaar.3, phyperBinMolenaar.4, phyperIbeta, phyperPeizer, phyperR, phypers, pdhyper, phyperR2
  • R
    R 4.0.0 released · 2020-04-24
  • 0.3-5
    record
    2019-10-21 · diff ↗ ·
    added 1 export
    okLongDouble
  • 0.3-3
    record
    2019-10-02
  • R
    R 3.6.0 released · 2019-04-26

Package metadata

First published
2019-10-02
Total releases
19 / 7 yrs
License
GPL (>= 2) | file LICENSE OSI
Minimum R
≥ 4.1.0
Bundled data
1.1 KB / 1 file
Download size
2.0 MB
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("DPQ")
Maechler, M., R Foundation, R-core, Hofert, M., Ihaka, R., Viechtbauer, W., & Welinder, M. (2026). DPQ: Density, Probability, Quantile ('DPQ') Computations (Version 0.6-2) [Computer software]. https://doi.org/10.32614/CRAN.package.DPQ

This package has no citation file, so citation() returns this entry built from DESCRIPTION.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for DPQ version 0.6-2 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy