sim_data_from_dmrf: Simulate data from a decomposable discrete markov random...

View source: R/helper_sim.R

sim_data_from_dmrfR 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


jti documentation built on April 12, 2022, 9:05 a.m.