seq2qha | R Documentation |
Recodes sequence data into the shape used for qualitative harmonic analysis.
seq2qha(seqdata, periods)
seqdata |
a sequence object (see |
periods |
numeric vector of the first positions of the periods used for recoding |
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).
Nicolas Robette
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.
data(trajact)
seqact <- seqdef(trajact)
qha <- seq2qha(seqact, periods=c(1,3,7,12,24))
head(qha)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.