seqi1epi.RdReturns whether each sequence comprises at least one episode in the states.
seqi1epi(seqdata)a sequence object (see seqdef function).
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.
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 <- seqi1epi(seqact)
head(stat)
#> epi1 epi2 epi3 epi4 epi5 epi6
#> 1 0 1 0 0 0 0
#> 2 1 1 1 0 0 0
#> 3 1 1 1 0 1 0
#> 4 1 1 0 0 0 1
#> 5 1 1 0 0 0 0
#> 6 1 1 0 0 1 0