toMAG {dagitty}R Documentation

Convert DAG to MAG.

Description

Given a DAG, possibly with latent variables, construct a MAG that represents its marginal independence model.

Usage

toMAG(x)

Arguments

x

the input graph, a DAG

Examples

toMAG( "dag { ParentalSmoking->Smoking 
  { Profession [latent] } -> {Income->Smoking}
  Genotype -> {Smoking->LungCancer} }")

[Package dagitty version 0.3-4 Index]