Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

Q00

Numerical Routine Q


Description

This function is used in the computation of \hat f^* and \hat F^*.

Usage

Q00(x, a, u, v, gamma, QFhat = FALSE)

Arguments

x

Number at which to compute q and/or Q.

a

Vector of length m with real entries.

u

Vector of length m with real entries.

v

Vector of length m with real entries.

gamma

Real number. Standard deviation to be used.

QFhat

Logical. Should Q be computed?

Value

The vector(s) q and/or Q.

Note

Taylor approximation is used if a is small. In addition, as described in Duembgen and Rufibach (2011) at the end of Appendix C, in extreme situations, e.g. when data sets contain extreme spacings, numerical problems may occur in the computation of the function q_γ (eq. (7) in Duembgen and Rufibach, 2011). For it may happen that the exponent is rather large while the difference of Gaussian CDFs is very small. To moderate these problems, we are using the following bounds:

exp(- m ^ 2 / 2) (Φ(δ) - Φ(-δ)) ≤ Φ(b) - Φ(a) ≤ exp(- m^2/2) cosh(mδ) ( Φ(δ) - Φ(-δ)

for arbitrary numbers a < b and m := (a + b) / 2, δ := (b - a) / 2.

However, the function Q00 is not intended to be invoked by the end user.

Author(s)

References

Duembgen, L. and Rufibach, K. (2011) logcondens: Computations Related to Univariate Log-Concave Density Estimation. Journal of Statistical Software, 39(6), 1–28. http://www.jstatsoft.org/v39/i06


logcondens

Estimate a Log-Concave Probability Density from Iid Observations

v2.1.5
GPL (>= 2)
Authors
Kaspar Rufibach <kaspar.rufibach@gmail.com> and Lutz Duembgen <duembgen@stat.unibe.ch>
Initial release
2016-07-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.