Build a causal DAG
Usage
morie_dag(edges, exposure, outcome, latent = character())Value
An object of class morie_dag: list with nodes, edges
(2-column matrix from/to), exposure, outcome, latent.
Examples
g <- morie_dag(
c(
"race -> placement", "race -> outcome",
"placement -> outcome"
),
exposure = "placement", outcome = "outcome"
)
morie_dag_identify(g)
#> $identified
#> [1] TRUE
#>
#> $estimand
#> [1] "backdoor"
#>
#> $adjustment_set
#> [1] "race"
#>
