View source: R/10-comparison-functions.R
cid | R Documentation |
Compute the context specific interventional discrepeancy of a staged tree with respect to a reference staged tree.
cid(object1, object2, FUN = mean)
object1 |
an object of class |
object2 |
an object of class |
FUN |
a function that is used to aggregate CID for each variable.
The default |
A list with components:
wrong
a stages-like structure which record where
object2
wrongly infer the interventional distance
with respect to object1
.
cid
the value of the computed CID.
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.