Learn R Programming

⚠️There's a newer version (0.5-9) of this package.Take me there.

DPQ (version 0.3-5)

Density, Probability, Quantile ('DPQ') Computations

Description

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. -- This is for the use of researchers in these numerical approximation implementations, notably for my own use in order to improve R`s own pbeta(), qgamma(), ..., etc: {'"dpq"'-functions}. -- We plan to complement with 'DPQmpfr' to be suggested later.

Copy Link

Version

Install

install.packages('DPQ')

Monthly Downloads

599

Version

0.3-5

License

GPL (>= 2)

Maintainer

Martin Maechler

Last Published

October 21st, 2019

Functions in DPQ (0.3-5)

b_chi

Compute \(E[\chi_\nu] / \sqrt{\nu}\) useful for t- and chi-Distributions
ppoisson

Direct Computation of 'ppois()' Poisson Distribution Probabilities
newton

Simple R level Newton Algorithm, Mostly for Didactical Reasons
qbetaAppr

Compute (Approximate) Quantiles of the Beta Distribution
lsum

Properly Compute the Logarithm of a Sum
dchisqApprox

Approximations of the (Noncentral) Chi-Squared Density
lbeta

(Log) Beta Approximations
log1mexp

Compute f(a) = \(\mathrm{log}\)(1 - \(\mathrm{exp}\)(-a)) Numerically Optimally
lgamma1p

Accurate log(gamma(a+1))
pl2curves

Plot 2 Noncentral Distribution Curves for Visual Comparison
format01prec

Format Numbers in [0,1] with "Precise" Result
pnbeta

Noncentral Beta Probabilities
pnchi1sq

(Probabilities of Non-Central Chi-squared Distribution for Special Cases
pnchisqAppr

(Approximate) Probabilities of Non-Central Chi-squared Distribution
qtAppr

Compute Approximate Quantiles of Non-Central t Distribution
dgamma.R

Gamma Density Function Alternatives
logcf

Continued Fraction Approximation of Log-Related Series
dgamma-utils

Utility Functions for dgamma() -- Pure R Versions
log1pmx

Accurate log(1+x) - x
DPQ-package

DPQ
numer-utils

Numerical Utilities - Functions, Constants
pbetaRv1

Pure R Implementation of Old pbeta()
r_pois

Compute Relative Size of i-th term of Poisson Distribution Series
algdiv

Compute log(gamma(b)/gamma(a+b)) when b >= 8
qchisqAppr

Compute Approximate Quantiles of the Chi-Squared Distribution
qgammaAppr

Compute (Approximate) Quantiles of the Gamma Distribution
qnchisqAppr

Compute Approximate Quantiles of Noncentral Chi-Squared Distribution
qnormAppr

Approximations to 'qnorm()', i.e., \(z_\alpha\)
dnt

Non-central t-Distribution Density - Algorithms and Approximations
pnchisqWienergerm

Wienergerm Approximations to (Non-Central) Chi-squared Probabilities
pnt

Non-central t Probability Distribution - Algorithms and Approximations
lssum

Compute Logarithm of a Sum with Signed Large Summands
logspace.add

Logspace Arithmetix -- Addition and Subtraction
dtWV

Noncentral t Distribution Density by W.V.