Description Usage Arguments Value Author(s) Examples
An object representing a multivariate discrete distribution is created, based on explicitly given possible values and probabilities for these.
1 | mdiscretedistribution(probs, nms=NULL)
|
probs |
This must be a matrix, or more generally an array with the same number of dimensions as the desired variable. The values in the matrix must be non-negative and represent the probabilities of the variable. |
nms |
If given, |
A multivariate discrete probability distribution.
Petter Mostad <mostad@chalmers.se>
1 2 3 | dist <- mdiscretedistribution(array(1:24, c(2,3,4)))
expectation(dist)
variance(dist)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.