Description Usage Arguments Details Value Examples

This is a convenience function to quickly and clearly define a set of causal
models. Supply a list of formulas for each model, using either `c()`

. Formulas
should be of the form `child ~ parent`

and describe each path in your model.
Multiple children of a single parent can be combined into a single formula:
`child ~ parent1 + parent2`

.

1 | ```
define_model_set(..., .common = NULL)
``` |

`...` |
Named arguments, which each are a lists of formulas defining the paths of a causal model. |

`.common` |
A list of formulas that contain causal paths that are common to each model. |

This function uses `ggm::DAG()`

.

A list of models, each of class `matrix`

and `DAG`

.

1 2 3 4 5 | ```
(m <- define_model_set(
A = c(a~b, b~c),
B = c(b~a, c~b),
.common = c(d~a)))
plot_model_set(m)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.