seqhandbook (version 0.1.0)

seq2qha: Recoding sequences for qualitative harmonic analysis

Description

Recodes sequence data into the shape used for qualitative harmonic analysis.

Usage

seq2qha(seqdata, periods)

Value

A data frame with one column by combination of period and state (i.e. number of columns = number of periods * number of states in the alphabet).

Arguments

seqdata

a sequence object (see seqdef function).

periods

numeric vector of the first positions of the periods used for recoding

Author

Nicolas Robette

References

Robette N., Thibault N. (2008). Comparing qualitative harmonic analysis and optimal matching. An exploratory study of occupational trajectories, Population-E, Vol. 64(3), 533-556. Deville J-C. (1982). Analyse de données chronologiques qualitatives: comment analyser des calendriers ?, Annales de l’INSEE, 45, 45-104. Deville J-C., Saporta G. (1980). Analyse harmonique qualitative, in Data analysis and informatics, E.Diday (ed.), Amsterdam, North Holland Publishing, 375-389.

Examples

Run this code
data(trajact)
seqact <- seqdef(trajact)
qha <- seq2qha(seqact, periods=c(1,3,7,12,24))
head(qha)

Run the code above in your browser using DataCamp Workspace