inclusions_stages {stagedtrees} | R Documentation |
Inclusions of stages
Description
Display the relationship between two staged tree models over the same variables.
Usage
inclusions_stages(object1, object2)
Arguments
object1 |
an object of class |
object2 |
an object of class |
Details
Computes the relations between the stages structures of the two models.
The relations between stages of the same variable
are stored in a data frame with three columns
where each row represent
a relation between a stage of the first model (s1
) and
a stage of the second model (s2
).
The relation can be one of the following: inclusion (s1 < s2
or s1 > s2
; equal (s1 = s2
); not-equal (s1 != s2
).
Value
a list with inclusion relations between stage structures for each variable in the models.
Examples
mod1 <- stages_bhc(full(PhDArticles[, 1:5], lambda = 1))
mod2 <- stages_fbhc(full(PhDArticles[, 1:5], lambda = 1))
inclusions_stages(mod1, mod2)
[Package stagedtrees version 2.3.0 Index]