In the pmine()
function in PST
you can use lags. What is this lag? Does it mean that it ignores the lag
first positions in the sequence? Or does it mean that you allow for lags within the subsequences? From the documentation it is hard to understand what is actually meant by lag.
Asked
Active
Viewed 82 times
1

histelheim
- 4,938
- 6
- 33
- 63
1 Answers
1
The lag
parameter when searching patterns with the pmine()
function means that we look only for patterns that are preceded by at least lag
elements, i.e., for patterns with a context of length at least equal to lag
. The lag
first positions will not belong to find patterns, but they could belong to their context. So, they are not ignored.

Gilbert
- 3,570
- 18
- 28
-
To clarify, is this then counted from the beginning of the sequence in the data? It is essentially a way of saying: "please don't consider the first `lag` states, unless they are part of the context of a pattern"? – histelheim Feb 27 '17 at 01:41
-
1Yes, you can say it this way. We could also say, 'look for patterns (filling the conditions) starting after the first lag positions.' – Gilbert Feb 27 '17 at 07:56