Description Usage Arguments Details Value References See Also
Hard-coded functions, representing (runtime) function objects.
DO NOT CALL THESE FUNCTIONS.
CALL A CONSTRUCTOR, WHICH SHOULD RETURN A FUNCTION OBJECT.
THE RESULTING FUNCTION OBJECTS SHOULD HAVE THE SAME ARGUMENTS AS BELOW.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #categorical models
#(CAT/gMIX)
ph.gfh.rtf (g, ..., freq=FALSE, n) #PMF
ph.gFh.rtf (g, ..., freq=FALSE, n) #CDF
ph.gFht.rtf (p, ..., level.names=FALSE) #QF
#other discrete models
#(DKS)
ph.dfh.rtf (x, ..., freq=FALSE, n) #PMF
ph.dFh.rtf (x, ..., freq=FALSE, n) #CDF
ph.dFht.rtf (p) #QF
#univariate continuous models
#(CKS/EL/xMIX, UV/C)
ph.cfh.rtf (x) #PDF
ph.cFh.rtf (x) #CDF
ph.cFht.rtf (p) #QF
#multivariate continuous models
#(CKS, MV/MVC)
ph.cfh.rtf.mv (x) #PDF
ph.cFh.rtf.mv (x) #CDF
#chained quantile functions
ph.chFht.rtf (p)
|
g, x |
IN (DKS) MODELS: |
p |
A numeric vector of probabilities, between zero and one. |
freq |
Logical, if true, return frequencies rather than probabilities. |
level.names |
Logical, if true, return category names rather than category indices. |
n |
Sample size. |
... |
Ignored. |
DO NO CALL THESE FUNCTIONS.
CALL A CONSTRUCTOR, WHICH SHOULD RETURN A FUNCTION OBJECT.
If x or p are matrices, then the order of the columns should be the same as the order of the random variables in the model.
Also, if a bounded interval was used, then the quantiles need to be within the limits.
By default:
PMFs return a numeric vector, giving probability mass.
PDFs return a numeric vector, giving probability density.
CDFs return a numeric vector, giving cumulative probability (from zero to one).
Discrete quantile functions, return an integer vector of quantiles.
Continuous quantile functions, return a numeric vector of quantiles.
In the discrete case, setting freq=TRUE, scales the values to match the n, the sample size.
By default, n is the number of observation used, or the sum of the unscaled weights/frequencies.
In categorical quantile functions, setting level.names=TRUE, returns a character vector of levels names.
Chained quantile functions, return a numeric matrix of multivariate quantiles.
Refer to the vignette for an overview, references and better examples.
Discrete Kernel Smoothing, Continuous Kernel Smoothing
Categorical Distributions, Empirical-Like Distributions
Conditional Distributions with Mixed Input Types
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.