A convenience wrapper for dagitty::dagitty("dag...")

dag(...)

Arguments

...

a character vector in the style of dagitty. See dagitty::dagitty for details.

Value

a dagitty

Examples

dag("{x m} -> y")
#> dag { #> m #> x #> y #> m -> y #> x -> y #> }