Description Usage Arguments Value References Examples
Print the tableau notation for a Markov move. See the reference provided, p. 13.
1 |
move |
a markov move matrix, where the columns are moves in vector form (e.g. the output of markov) |
dim |
the dimensions of the table form of the move, oftentimes a vector of the number of levels of each variable in order |
an object of class tableau
Drton, M., B. Sturmfels, and S. Sullivant (2009). Lectures on Algebraic Statistics, Basel: Birkhauser Verlag AG.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | ## Not run:
# 2x2 independence example
# following convention, the first index indicates rows
varlvls <- c(2,2)
facets <- list(1,2)
( A <- hmat(varlvls, facets) )
markov(A)
markov(A, "vec")
markov(A, "tab", varlvls)
markov(A, "tab", varlvls, TRUE)
tableau(markov(A), varlvls)
# LAS example 1.2.12, p.17 (no 3-way interaction)
varlvls <- c(2,2,2)
facets <- list(c(1,2), c(1,3), c(2,3))
( A <- hmat(varlvls, facets) )
markov(A)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.