compute_str_int_distance: Compute structural intervention distance

View source: R/graph_theory_functions.R

compute_str_int_distanceR Documentation

Compute structural intervention distance

Description

Compute the structural intervention distance between the DAG dag and the estimated DAG (or CPDAG) est_g. The structural intervention distance is defined as in the paper from Peters J., and Bühlmann P., https://www.mitpressjournals.org/doi/full/10.1162/NECO_a_00708. In general, the structural intervention distance is not symmetric, i.e., compute_str_int_distance(dag, est_g) != compute_str_int_distance(est_g, dag).

Usage

compute_str_int_distance(dag, est_g)

Arguments

est_g

Square binary matrix. The estimated DAG or CPDAG.

Value

Numeric — between 0 and 1. The structural intervention distance between the DAG dag and the DAG (or CPDAG) est_g.


nicolagnecco/causalXtreme documentation built on April 21, 2024, 4:22 a.m.