This function computes the probability density of the Polynomial Density-Quantile3 distribution given parameters (\(\alpha\) and \(\beta\)) computed by parpdq3
. The probability density function has not explicit form. The implementation here simply uses a five-point stencil to approciate the derivative of the cumulative distribution function cdfpdq3
and hence an eps
term is used and multipled to the scale parameter (\(\alpha\)) of the distribution. The distribution's canonical definition is in terms of the quantile function (quapdq3
).
pdfpdq3(x, para, paracheck=TRUE, h=NA, hfactor=0.2)
Probability density (\(f\)) for \(x\).
A real value vector.
The parameters from parpdq4
or vec2par
.
A logical switch as to whether the validity of the parameters should be checked. Default is paracheck=TRUE
. This switch is made so that the root solution needed for cdfpdq3
shows an extreme speed increase because of the repeated calls to quapdq3
.
The differential element of the stencil, if provided, otherwise hfactor
used.
A term multiplied to the \(\alpha\) parameter to set the \(h\) in the numerical derivative. Not optimal, but seems to work for a variety of chosen parameters for plotting the density function.
W.H. Asquith
Hosking, J.R.M., 2007, Distributions with maximum entropy subject to constraints on their L-moments or expected order statistics: Journal of Statistical Planning and Inference, v. 137, no. 9, pp. 2870--2891, tools:::Rd_expr_doi("10.1016/j.jspi.2006.10.010").
cdfpdq3
, quapdq3
, lmompdq3
, parpdq3