rmultinom.cg {lcd} | R Documentation |
Generates a desired number of multinomial random samples from a given chain graph structure and a sequence of compatible block-recursive conditional distributions.
rmultinom.cg(n, amat, distn)
n |
the intended sample size, should be at least 1. |
amat |
the adjacency matrix of a chain graph. |
distn |
a sequence of block-recursive conditional distributions,
e.g. the one returned by get.multinom.dist . |
An n by p matrix with each row corresponding to a random sample.
Zongming Ma and Xiangrui Meng
Cowell, R. G., Dawid, A. P., Lauritzen, S. L. and Spiegelhalter, D. J. (1999) Probabilistic Networks and Expert Systems. pp.77-79. Springer-Verlag, New York.