Learn R Programming

causalDisco (version 1.0.1)

false_omission_rate: False Omission Rate

Description

Computes false omission rate from two PDAG caugi::caugi objects. It converts the caugi::caugi objects to adjacency matrices and computes false omission rate as FN/(FN + TN), where FN are false negatives and TN are truth negatives. If FN + TN = 0, 1 is returned. Only supports caugi::caugi objects with these edge types present -->, <-->, --- and no edge.

Usage

false_omission_rate(truth, est, type = c("adj", "dir"))

Value

A numeric in [0,1].

Arguments

truth

A caugi::caugi object representing the truth graph.

est

A caugi::caugi object representing the estimated graph.

type

Character string specifying the comparison type:

  • "adj": adjacency comparison.

  • "dir": orientation comparison conditional on shared adjacencies.

See Also

Other metrics: confusion(), evaluate(), f1_score(), fdr(), g1_score(), npv(), precision(), recall(), reexports, specificity()

Examples

Run this code
cg1 <- caugi::caugi(A %-->% B + C)
cg2 <- caugi::caugi(B %-->% A + C)
false_omission_rate(cg1, cg2, type = "adj")
false_omission_rate(cg1, cg2, type = "dir")

Run the code above in your browser using DataLab