Description Usage Arguments Details Value Side Effects Author(s) Examples

Wrapper functions to quickly generate discrete joint (or conditional) distributions using Dirichlets

1 |

`dim` |
the joint dimension of the probability table |

`d` |
number of dimensions |

`cond` |
optionally, vertices to condition upon |

`alpha` |
Dirichlet hyper parameter, defaults to 1 (flat density). |

`rprobdist`

gives an array of dimension `dim`

(recycled as necessary to have length `d`

, if this is
supplied) whose entries are probabilities drawn from a Dirichlet
distribution whose parameter vector has entries equal to
`alpha`

(appropriately recycled).

an array of appropriate dimensions

Uses as many gamma random variables as cells in the table, so will alter the random seed accordingly.

Robin Evans

1 2 3 4 5 6 7 |

rje42/rje documentation built on Dec. 10, 2018, 7:01 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.