Description Usage Arguments Details Value Author(s) See Also Examples

Create counts in the form of a matrix from one state to the next state.

1 |

`State_rec` |
This is a list of the currents states can be in numeric, character or factor form |

`prob` |
This is a item that when set to true return ths probabilities instead of the counts in each cell |

`States` |
This is a item that when given is the list of states that you would like to use, Otherwise defaults to unique(State_rec) |

for plotting see transBub

Returns an n by n matrix, with n being the number of states. If states is not supplied, defaults to the number of unique values in State_rec. If prob is true, then these counts are transformed into probabilities, with the sum of each column equalling 1. The counts in each cell are based on the number of times a transistion from the state represented by the column to the state represented by the row occured. See transBub for plotting

Connor F. White

transBub

1 2 3 4 5 |

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.