Learn R Programming

dagitty (version 0.3-4)

toMAG: 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

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

Run the code above in your browser using DataLab