seq2qha: Recoding sequences for qualitative harmonic analysis

View source: R/seq2qha.R

seq2qhaR Documentation

Recoding sequences for qualitative harmonic analysis

Description

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

Usage

seq2qha(seqdata, periods)

Arguments

seqdata

a sequence object (see seqdef function).

periods

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

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

Author(s)

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

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

nicolas-robette/seqhandbook documentation built on April 9, 2023, 7:08 a.m.