Learn R Programming

Biograph (version 2.0.6)

Sequences.ind.0: Sorts dates in ascending order and generates state sequence (path).

Description

Sorts dates in ascending order: earlier dates come first. The function also generates state sequences (life path or career path). The function is used in generating a Biograph object from raw data. The state sequence is the path variable of the Biograph object.

Usage

Sequences.ind.0 (d,namstates,absorb)

Arguments

d
Vector of dates
namstates
state labels (labels of single characters)
absorb
Vector of absorbing states

Value

namstates
Labels of the states in the state space.
d
Sorted dates
path
Character variable of state sequences. This variable is the 'path' variable in the Biograph object.

Examples

Run this code
	d <- c(300,250,340)  # dates in CMC
	f<- Sequences.ind.0 (d,c('A','B','C'))
   

Run the code above in your browser using DataLab