powered by
intervention.table(x, variables, condition)
variables
condition
Under certain causal assumptions this is the interventional distribution $p(x \,|\, do(v))$ (i.e. if the direct causes of $v$ are precisely $c$.)
condition.table
margin.table
set.seed(413) p = array(rdirichlet(1, rep(1,16)), rep(2,4)) intervention.table(p, 3, 2)
Run the code above in your browser using DataLab