sim_data_from_dmrf {jti} | R Documentation |
Simulate data from a decomposable discrete markov random field
Description
Simulate data from a decomposable discrete markov random field
Usage
sim_data_from_dmrf(
graph,
lvls,
nsims = 1000,
increasing_prob = FALSE,
p1 = 0.8,
p2 = 1
)
Arguments
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 |
[Package jti version 0.8.4 Index]