Description Usage Arguments Details Value Author(s) References Examples
Left multiply a transition matrix to create its projection matrix.
1 | prjm(r_c, n)
|
r_c |
A transition matrix of numeric values representing conditional probabilities in the form of a two-way table:
| |||||||||||||||||||||||||
n |
The exponent, or number of times to pre-multiply |
Left-multiply a matrix a specified number of times and returns the projection matrix of r_c
, which has the same dimensions and grand sum.
Returns a projection matrix with the same dimensions and grand sum as r_c
.
Bjorn J. Brooks, Lars Y. Pomara, Danny C. Lee
PAPER TITLE.
1 2 3 4 5 6 7 8 9 10 11 12 | data(transitions) # Load example data
b <- brkpts(transitions$phenofr, # Find 10 probabilistically
10) # equivalent breakpoints
m <- xt(transitions, # Make transition matrix
fr.col=2, to.col=3,
cnt.col=4, brk=b)
pxy <- jpmf(m) # Joint distribution
cmd <- colSums(pxy) # Column marginal distribution
r_c <- cpf(pxy, # Transition matrix
margin='p(row|col)') # (row | col)
colSums(r_c) # Check that each column sums to 1
r_c.prj <- prjm(r_c,10^3) # Project matrix 1,000 steps
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.