compose {lestat} | R Documentation |
Building a new probability distribution from an old.
Description
The command can be used to generate a new distribution from an old, which is given as the first argument. The new distribution has the old as the marginal for the first variable. The conditional distribution for the second variable is specified with the remaining arguments.
Usage
compose(object, type, ...)
Arguments
object |
A probability distribution |
type |
A text string specifying the type of the conditional distribution given the old distribution. |
... |
Additional arguments specifying the conditional distribution. |
Value
Depends on the input; may be a multivariate discrete distribution, or a Binomialbeta distribution.
Author(s)
Petter Mostad <mostad@chalmers.se>
Examples
joint <- compose(uniformdistribution(), "binomialdistribution", 5)
joint2 <- compose(discretedistribution(1:6), "discretedistribution",
1:6, matrix(c(1:36), 6, 6))
[Package lestat version 1.9 Index]