Compute the Adjustment Identification Distance (AID) between two
graphs using the gadjid Rust package.
Usage
aid(truth, guess, type = c("oset", "ancestor", "parent"), normalized = TRUE)Value
A numeric representing the AID between the two graphs, if
normalized = TRUE, or an integer count if normalized = FALSE.
Examples
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
#> [1] 0.1086869