compute_necessity(): compute whether X was necessary for Y in the actual world.
Source:R/ns.R
compute_necessity.RdWe check whether intervening on X in the actual world flips the value of Y.
R/ns.R
compute_necessity.RdWe check whether intervening on X in the actual world flips the value of Y.