| aid | R Documentation |
Compute the Adjustment Identification Distance (AID) between two
graphs. AID counts how often the adjustment-identification strategy applied
to guess yields a causal inference that is incorrect relative to truth.
Implemented in caugi's Rust backend following Henckel, Würtzen & Weichwald
(2024), doi:10.48550/arXiv.2402.08616.
aid(truth, guess, type = c("oset", "ancestor", "parent"), normalized = TRUE)
truth |
A |
guess |
A |
type |
A character string specifying the type of AID to compute.
Options are |
normalized |
Logical; if |
A numeric representing the AID between the two graphs, if
normalized = TRUE, or an integer count if normalized = FALSE.
Other metrics:
hd(),
shd()
set.seed(1)
truth <- generate_graph(n = 100, m = 200, class = "DAG")
guess <- generate_graph(n = 100, m = 200, class = "DAG")
aid(truth, guess) # 0.0187
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.