powered by
Compute the context specific interventional discrepeancy of a staged tree with respect to a reference staged tree.
cid(object1, object2, FUN = mean)
A list with components:
wrong a stages-like structure which record where object2 wrongly infer the interventional distance with respect to object1.
wrong
object2
object1
cid the value of the computed CID.
cid
an object of class sevt.
sevt
a function that is used to aggregate CID for each variable. The default mean will obtain the CID as defined in Leonelli and Varando (2021).
mean
Leonelli M., Varando G. Context-Specific Causal Discovery for Categorical Data Using Staged Trees https://arxiv.org/abs/2106.04416
model1 <- stages_bhc(full(Titanic)) model2 <- stages_bhc(full(Titanic, order = c("Survived", "Sex", "Age", "Class"))) cid(model1, model2)$cid cid(model1, model2)$wrong
Run the code above in your browser using DataLab