algstat (version 0.0.2)

tableau: Tableau Notation for Markov

Description

Print the tableau notation for a Markov move. See the reference provided, p. 13.

Usage

tableau(move, dim)

Arguments

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

Value

an object of class tableau

References

Drton, M., B. Sturmfels, and S. Sullivant (2009). Lectures on Algebraic Statistics, Basel: Birkhauser Verlag AG.

Examples

Run this code
## 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)

Run the code above in your browser using DataCamp Workspace