Description Usage Arguments Value Author(s) Examples
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.
1 |
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. |
Depends on the input; may be a multivariate discrete distribution, or a Binomialbeta distribution.
Petter Mostad <mostad@chalmers.se>
1 2 3 | joint <- compose(uniformdistribution(), "binomialdistribution", 5)
joint2 <- compose(discretedistribution(1:6), "discretedistribution",
1:6, matrix(c(1:36), 6, 6))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.