qd_todagitty | R Documentation |
Format an edgelist and send it to dagitty to identify variable adjustment sets.
qd_todagitty( edgelist, diagram_type = "dag", showplot = FALSE, send.global = FALSE, dagitty.obj.name = NULL, exposure, outcome, ... )
edgelist |
A vector of edge relationships. Must be strictly organized (see example for format). |
diagram_type |
Character identifying the diagram type. Defaults to |
showplot |
Logical indicating whether to produce a dagitty plot. Defaults to |
send.global |
Logical indicating whether to make the dagitty object available in the global environment. Defaults to |
dagitty.obj.name |
Character specifying the name of the dagitty object. Only used and required if |
exposure |
Character. Specify exposure of interest. (Required) |
outcome |
Character. Specifiy outcome of interest. (Required) |
... |
Pass arguments to |
The exposure
and outcome
options map to dagitty functions of the same name.
edges <- c("A -> { B C D }", "B -> C", "E -> { B C }") # must pass exposure and outcome arguments to dagitty::adjustmentSets() qd_todagitty(edges, exposure = "A", outcome = "C") qd_todagitty(edges, exposure = "A", outcome = "C", type = "minimal")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.