sim_data_from_dmrf | R Documentation |
Simulate data from a decomposable discrete markov random field
sim_data_from_dmrf(
graph,
lvls,
nsims = 1000,
increasing_prob = FALSE,
p1 = 0.8,
p2 = 1
)
graph |
A decomposable discrete markov random field as an igraph object |
lvls |
Named integer vector where each element is the size of the statespace of the corresponding variable |
nsims |
Number of simulations distributions from which the simulatios are drawn. |
increasing_prob |
Logical. If true, probabilities in the underlying CPTs increases with as the number of levels increses. |
p1 |
Probability |
p2 |
Probability |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.