Returns the number of episodes in the states.

seqinepi(seqdata)

Arguments

seqdata

a sequence object (see seqdef function).

References

Gabadinho, A., G. Ritschard, N. S. Müller and M. Studer (2011). Analyzing and Visualizing State Sequences in R with TraMineR. Journal of Statistical Software 40(4), 1-37.

Author

Nicolas Robette

Examples

data(trajact)
seqact <- seqdef(trajact)
#>  [>] 6 distinct states appear in the data: 
#>      1 = 1
#>      2 = 2
#>      3 = 3
#>      4 = 4
#>      5 = 5
#>      6 = 6
#>  [>] state coding:
#>        [alphabet]  [label]  [long label] 
#>      1  1           1        1
#>      2  2           2        2
#>      3  3           3        3
#>      4  4           4        4
#>      5  5           5        5
#>      6  6           6        6
#>  [>] 500 sequences in the data set
#>  [>] min/max sequence length: 37/37
stat <- seqinepi(seqact)
head(stat)
#>   nepi1 nepi2 nepi3 nepi4 nepi5 nepi6
#> 1     0     1     0     0     0     0
#> 2     1     1     2     0     0     0
#> 3     1     2     1     0     2     0
#> 4     1     2     0     0     0     1
#> 5     1     1     0     0     0     0
#> 6     1     2     0     0     1     0