seqeconstraint {TraMineR}R Documentation

Setting time constraint

Description

Function used to set time constraint in several event sequences methods such as seqefsub(searching frequent subsequences).

Usage

seqeconstraint(maxGap = -1, windowSize = -1, 
  ageMin = -1, ageMax = -1, ageMaxEnd = -1)

Arguments

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.

Details

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.

Value

A constraint object containing one item per constraint type.

See Also

seqefsub


[Package TraMineR version 1.1 Index]