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

Description Usage Arguments Value Author(s) Examples

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

1
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.

Author(s)

Frans Willekens

Examples

1
2
3
	d <- c(300,250,340)  # dates in CMC
	f<- Sequences.ind.0 (d,c('A','B','C'))
   

Biograph documentation built on May 1, 2019, 8:48 p.m.