Description Usage Arguments Details Value Author(s) Examples
Obtains statespace from the data
1 | StateSpace(d,newnamstates)
|
d |
Biograph object (e.g. Bdata) or vector of state sequences (e.g. Bdata$path) |
newnamstates |
The preferred sequence of states. |
StateSpace derives statespace from the character vector 'path' in the Biograph object. In that vector, each state is uniquely identified by a single character (ASCII). The function finds the different characters. The sequence of states is determined by characters popping up first, second, etc. You may impose a preferred sequence by specifying the argument newnamstates. If no preferred sequence exists, newnamstates is missing from the argument list. The results are stored in two variables: numstates (number of states) and namstates (names of the states). The function also returns an object identifying the absorbing state (if any). A state that is entered but not left is an absorbing state.
namstates |
Names of the states in the state space |
absorbstates |
List of absorbing states. It is NULL if there is no absorbing state. |
Frans Willekens
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.