View source: R/1b-base-model-function.R
inclusions_stages | R Documentation |
Display the relationship between two staged tree models over the same variables.
inclusions_stages(object1, object2)
object1 |
an object of class |
object2 |
an object of class |
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
).
a list with inclusion relations between stage structures for each variable in the models.
mod1 <- stages_bhc(full(PhDArticles[, 1:5], lambda = 1)) mod2 <- stages_fbhc(full(PhDArticles[, 1:5], lambda = 1)) inclusions_stages(mod1, mod2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.