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")
#> [1] "dag {\nm\nx\ny\nm -> y\nx -> y\n}\n" #> attr(,"class") #> [1] "dagitty"