seqeconstraint {TraMineR} | R Documentation |
Function used to set time constraint in several event sequences methods such as seqefsub
(searching frequent subsequences).
seqeconstraint(maxGap = -1, windowSize = -1, ageMin = -1, ageMax = -1, ageMaxEnd = -1)
maxGap |
The maximum time gap between to event |
windowSize |
The maximum window (subsequences time) |
ageMin |
Can be used to set a time period. If equal to -1 (default), it won't be considered. |
ageMax |
Can be used to set a time period. If equal to -1 (default), it won't be considered. |
ageMaxEnd |
Can be used to set a time period. If equal to -1 (default), it won't be considered. |
maxGap
, windowSize
, ageMin
, ageMax
and ageMaxEnd
. If so, two event should not be separated by more than maxGap
and the whole subsequence should be included in a maximum time of windowSize
.
The other parameters specify the start and end age of the subsequence, it should start between ageMin
and ageMax
and finish before ageMaxEnd
.
A constraint object containing one item per constraint type.