Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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

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

dagitty

Graphical Analysis of Structural Causal Models

v0.3-1
GPL-2
Authors
Johannes Textor, Benito van der Zander, Ankur Ankan
Initial release
2021-01-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.