Description Usage Arguments Value Author(s) Examples

This auxiliary function determines the stationary distribution from a transition matrix.

1 | ```
stationary(P)
``` |

`P` |
a transition matrix, i.e., a square matrix where all rows sum to 1. |

the stationary probability vector.

Leonhard Held

1 2 3 4 5 | ```
Cgrouped_norm <- contactmatrix(normalize = TRUE)
Cgrouped_norm
(p <- stationary(Cgrouped_norm))
(Cpowered <- make_powerC(Cgrouped_norm)(1e6))
stopifnot(all.equal(Cpowered[1,], p))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.