Description Usage Arguments Details Value References See Also Examples
Hard-coded functions, representing (runtime) function objects.
DO NOT CALL THESE FUNCTIONS.
CALL A CONSTRUCTOR, WHICH SHOULD RETURN A FUNCTION OBJECT.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
x, y, z |
Vectors giving the evaluation bins/points. |
a, b |
Integer or character vectors, giving the evaluation bins. |
log |
Logical, if true, return log-transformed densities. |
... |
Ignored. |
DO NO CALL THESE FUNCTIONS.
CALL A CONSTRUCTOR, WHICH SHOULD RETURN A FUNCTION OBJECT.
Uniform and binomial distributions allow evaluation values outside the supported region.
(PMFs/PDFs return zero mass/density, and CDFs return the corresponding values).
Poisson evaluation values need to be non-negative.
Categorical string evaluation values need to match group names, taken from the parameter matrix.
Categorical integer evaluation values, need to have:
x in [1, ngx], where ngx is the number of x groups (and rows of the parameter matrix).
y in [1, ngy], where ngy is the number of y groups (and columns of the parameter matrix).
In Dirichlet distributions, z is optional.
And the three variables should be in the interval (0, 1) and sum to one.
Note that kbvpdf objects (often labelled fh), can't be evaluated.
(However, the bvmat function can be used to compute density matrices).
Also note that the help pages, linked to in the see also section, have better examples.
PMFs return a numeric vector, giving mass.
P (X = x, Y = y)
PDFs return a numeric vector, giving density.
CDFs return a numeric vector, giving cumulative probability.
P (X <= x, Y <= y)
Refer to the vignette for an overview, references, theoretical background and better examples.
Uniform
For uniform distributions.
Binomial, Poisson and Categorical
For other probability distributions of discrete random variables.
Normal, Bimodal, Dirichlet and Nonparametric
For other probability distributions of continuous random variables.
1 2 3 4 5 6 7 |
x y density
[1,] -3 0 0.001768052
[2,] -2 0 0.021539279
[3,] -1 0 0.096532353
[4,] 0 0 0.159154943
[5,] 1 0 0.096532353
[6,] 2 0 0.021539279
[7,] 3 0 0.001768052
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.