CausalFX package. CausalFX problems are objects
of class cfx, and specify a causal inference task of estimating the effect
of a given treatment $X$ on a given outcome $Y$, with a corresponding dataset.
This function generates only binary data from a multinomial distribution.
simulateWitnessModel(p, q, par_max, M, no_sol = FALSE)TRUE, then latent variables are parents of both $X$
and $Y$, meaning no adjustment set will theoretically be found
(barring sampling variability) if a method such as covsearch
is applied.cfx.
no_sol is FALSE, they are parents of either $X$ or $Y$ but not both.
If no_sol is TRUE, then all latent variables are parents of both $X$ and $Y$ and as
such no adjustment set with observed variables will remove unmeasured confounding between treatment and outcome.
Remaining parents for observed variables are sampled uniformly at random from the pool of background
variables obeying the constraint on the maximum number of parents given by par_max.Given a graph structure, each variable $i$ is given a binary conditional distribution, defining the probability of $i$ being equal to 1 given its parents in the graph. This conditional distribution is generated randomly by a logistic regression model with pairwise interactions, where coefficients are generated by samples from independent Gaussians with zero mean and standard deviation 10 / number of parents.