View source: R/causal_inference_functions.R
causal_metrics | R Documentation |
Evaluate the output of the causal inference method called by
causal_discovery
.
causal_metrics(simulated_data, estimated_graphs)
simulated_data |
List returned by
|
estimated_graphs |
List returned by
|
The evaluation is done with respect to
the structural intervention
distance (see compute_str_int_distance
).
and the
structural Hamming distance (see compute_str_ham_distance
).
List. The list is made of:
sid
Numeric — between 0 and 1 — (or NA
if
est_g
is NA
). The structural intervention distance between
the true DAG dag
and the estimated DAG (or CPDAG) est_g
.
See also compute_str_int_distance
.
shd
Numeric — between 0 and 1 — (or NA
if
est_cpdag
is NA
). The structural Hamming distance
between the true CPDAG (dag_to_cpdag(dag)
)
and the estimated CPDAG est_cpdag
.
See also compute_str_ham_distance
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.