mdiscretedistribution {lestat} | R Documentation |
Create Object Representing a Multivariate Discrete Distribution
Description
An object representing a multivariate discrete distribution is created, based on explicitly given possible values and probabilities for these.
Usage
mdiscretedistribution(probs, nms=NULL)
Arguments
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, |
Value
A multivariate discrete probability distribution.
Author(s)
Petter Mostad <mostad@chalmers.se>
Examples
dist <- mdiscretedistribution(array(1:24, c(2,3,4)))
expectation(dist)
variance(dist)
[Package lestat version 1.9 Index]