Description Usage Arguments Details Value Author(s) References Examples
Project a vector using a transition matrix.
1 | prjv(m, v)
|
m |
A matrix of numeric values in the form of a two-way table of frequencies:
| |||||||||||||||||||||||||
v |
A vector of numeric values with the same number of values as columns in |
prjv
calculates the...
Returns ...
Bjorn J. Brooks, Lars Y. Pomara, Danny C. Lee
PAPER TITLE.
1 2 3 4 5 6 7 8 9 10 11 12 13 | 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
rmd <- rowSums(pxy) # Row marginal distribution
cmd <- colSums(pxy) # Column marginal distribution
r_c <- cpf(pxy, # Transition matrix
margin='p(row|col)') # (row | col)
r_c.prj <- prjm(r_c,10^3) # Project matrix 1,000 steps
seqv <- prjv(r_c.prj,cmd) # Stable equilibrium vector
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.