Get or set variables with a given status in a graph. Variables in dagitty graphs can
have one of several statuses. Variables with status exposure and
outcome are important when determining causal effects via the functions
with status latent are assumed
to be unobserved variables or latent constructs, which is respected when deriving
testable implications of a graph via the functions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
the input graph, of any type.
character vector; names of variables to receive the given status.
character, one of "exposure", "outcome" or "latent".
setVariableStatus first removes the given status from all variables in the graph
that had it, and then sets it on the given variables.
For instance, if
value="X" are given, then
X will be the only exposure in the resulting graph.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.