Download Package `TraMineR`
Transcript
actcal 5 ## distribution plot by sex (male) seqdplot(mvad.seq, group=mvad$male, border=NA) ## compute the LCS pairwise distance matrix ## among the first 10 sequences mvad.lcs <- seqdist(mvad.seq[1:10,], method="LCS") actcal Example data set: Activity calendar from the Swiss Household Panel Description This data set contains 2000 individual sequences of monthly activity statuses from January to December 2000. Usage data(actcal) Format A data frame with 2000 rows, 12 state variables, 1 id variable and 11 covariates. Details The data set is a subsample of the data collected by the Swiss Household Panel (SHP). The state column (variable) names are ‘jan00’, ‘feb00’, etc... and correspond to columns 13 to 24. There are four possible states: A = Full-time paid job (> 37 hours) B = Long part-time paid job (19-36 hours) C = Short part-time paid job (1-18 hours) D = Unemployed (no work) The data set contains also the following covariates: age00 educat00 civsta00 nbadul00 nbkid00 aoldki00 ayouki00 region00 com2.00 sex birthy (age in 2000) (education level) (civil status) (number of adults in household) (number of children) (age of oldest kid) (age of youngest kid) (residence region) (residence commune type) (sex of respondent) (birth year)