tableau: Tableau Notation for Markov

Description Usage Arguments Value References Examples

View source: R/tableau.r

Description

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

Usage

1
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

 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)

algstat documentation built on May 29, 2017, 10:34 p.m.

Related to tableau in algstat...