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
)
A decomposable discrete markov random field as an igraph object
Named integer vector where each element is the size of the statespace of the corresponding variable
Number of simulations distributions from which the simulatios are drawn.
Logical. If true, probabilities in the underlying CPTs increases with as the number of levels increses.
Probability
Probability