compose: Building a new probability distribution from an old.

Description Usage Arguments Value Author(s) Examples

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

1
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

1
2
3
joint <- compose(uniformdistribution(), "binomialdistribution", 5)
joint2 <- compose(discretedistribution(1:6), "discretedistribution", 
     1:6, matrix(c(1:36), 6, 6))

lestat documentation built on May 2, 2019, 2:09 p.m.