
Last chance! 50% off unlimited learning
Sale ends in
genmodel runs 4ti2's genmodel program to compute the configuration matrix A corresponding to graphical statistical models given by a simplicial complex and levels on the nodes.
genmodel(varlvls, facets, dir = tempdir(), quiet = TRUE,
shell = FALSE, ...)
a vector containing the number of levels of each variable
the facets generating the hierarchical model, a list of vectors of variable indices
Directory to place the files in, without an ending /
If FALSE, messages the 4ti2 output
Messages the shell code used to do the computation
Additional arguments to pass to the function
The configuration matrix of the model provided
# NOT RUN {
if (has_4ti2()) {
varlvls <- rep(2, 2)
facets <- list(1, 2)
genmodel(varlvls, facets)
genmodel(varlvls, facets, quiet = FALSE)
varlvls <- rep(3, 3)
facets <- list(1:2, 2:3, c(3,1))
genmodel(varlvls, facets)
# compare this to algstat's hmat function
}
# }
Run the code above in your browser using DataLab