toPersonPeriod: Converting into person-period format.

Description Usage Arguments Value Author(s) See Also Examples

Description

Converts the STS sequences of a state sequence object into person-period format.

Usage

1
toPersonPeriod(seqdata)

Arguments

seqdata

A state sequence object as returned by seqdef.

Value

A data frame with three columns: id, state and timestamp.

Author(s)

Matthias Studer

See Also

seqformat .

Examples

1
2
3
4
5
6
7
data(mvad)
mvad.labels <- c("employment", "further education", "higher education",
    "joblessness", "school", "training")
mvad.scodes <- c("EM", "FE", "HE", "JL", "SC", "TR")
mvad.seq <- seqdef(mvad, 15:86, states = mvad.scodes, labels = mvad.labels)

mvad2 <- toPersonPeriod(mvad.seq[1:20,])

TraMineRextras documentation built on April 15, 2017, 10:55 a.m.