toMAG {dagitty} | R Documentation |
Given a DAG, possibly with latent variables, construct a MAG that represents its marginal independence model.
toMAG(x)
x |
the input graph, a DAG |
toMAG( "dag { ParentalSmoking->Smoking
{ Profession [latent] } -> {Income->Smoking}
Genotype -> {Smoking->LungCancer} }")