mdiscretedistribution {lestat} | R Documentation |
An object representing a multivariate discrete distribution is created, based on explicitly given possible values and probabilities for these.
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>
dist <- mdiscretedistribution(array(1:24, c(2,3,4)))
expectation(dist)
variance(dist)