Description Usage Arguments Examples
Given a DAG, possibly with latent variables, construct a MAG that represents its marginal independence model.
1 | toMAG(x)
|
x |
the input graph, a DAG |
1 2 3 | toMAG( "dag { ParentalSmoking->Smoking
{ Profession [latent] } -> {Income->Smoking}
Genotype -> {Smoking->LungCancer} }")
|
mag {
Genotype
Income
LungCancer
ParentalSmoking
Smoking
Genotype -> LungCancer
Genotype -> Smoking
Income -> Smoking
ParentalSmoking -> Smoking
Smoking -> LungCancer
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.