Learn R Programming

Biograph (version 1.0)

StateSpace: Get state space

Description

Obtains statespace from the data

Usage

StateSpace(survey)

Arguments

survey
data

Value

  • absorbstatesabsorbing states

Details

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 results are stored in two global variables: numstates (number of states) and namstates (names of the states). The function also returns an object identifying the absorbing state (if any).

References

willekens

Examples

Run this code
data(GLHS)
z<- StateSpace (GLHS)

Run the code above in your browser using DataLab