ci_matrices | R Documentation |
Generate the sequence of all the conditional independences matrices of stages for a given variable in the model.
ci_matrices(object, var)
object |
an object of class |
var |
string, the name of one of the variables in |
A list with i-1
matrices, where i
is the depth
of variable var
in the tree.
mod <- sevt(list(A = c("a", "aa"),
B = c("b", "bb", "bbb"),
C = c("c", "cc")), full = TRUE)
stages(mod)["C", A = "a", B = c("b", "bb")] <- "stage1"
stages(mod)["C", A = "aa"] <- "stage2"
stages(mod)["C", A = "a", B = "bbb"] <- "stage2"
ci_matrices(mod, "C")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.