Description Usage Arguments Value Examples

Simulate observations from a decomposable graphical model

1 | ```
dgm_sim_from_graph(g, lvls, nsim = 1000, cell_rate = 0.5)
``` |

`g` |
An adjacency list |

`lvls` |
Named list with levels of the discrete variables |

`nsim` |
Number of simulations |

`cell_rate` |
Control discrete cell probabilities |

This function returns a matrix of dimension where each row correspond
to a simulated observation from a DGM represented by `g`

.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |

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.