seqe..
) for event sequences such as seqefsub
for searching frequent subsequences or seqeapplysub
for checking occurrences of subsequences.
seqeconstraint(maxGap = -1, windowSize = -1, ageMin = -1, ageMax = -1, ageMaxEnd = -1, countMethod = 1)
'COBJ'
method). Alternative counting methods
are 'CDIST_O'
, 'CWIN'
,
'CMINWIN'
or 'CDIST'
respectively. See details.maxGap
, windowSize
, ageMin
, ageMax
and
ageMaxEnd
. If so, two events should not be separated by more
than maxGap
and the whole subsequence should not exceed a
windowSize
time span.
The other parameters specify the start and end age of the subsequence,
it should start between ageMin
and ageMax
and finish
before ageMaxEnd
.
Parameters ageMin
, ageMax
and ageMaxEnd
are
interpreted as the number of positions (time units) from the beginning
of the sequence. There are 5 options for the countMethod
argument. (1) By default,
the count is the number of sequences that contain the subsequence ("COBJ"
method).
Alternatives are (2) "CDIST_O"
(counts all distinct occurrences in each sequence including possibly overlapping occurrences, i.e., occurrences sharing a same event occurrence), (3) "CWIN"
(number of slidden windows of length windowSize
that contain an occurrence of the subsequence),
(4) "CMINWIN"
(number of minimal windows of occurrence) and (5) "CDIST"
(distinct occurrences without event occurrences overlap). See
references.
Ritschard, G., A. Gabadinho, N.S. M
seqefsub
, seqeapplysub