Compute the relative or absolute support of an arbitrary collection of sequences among a set of transactions with additional sequence and temporal information.
1 2 3 4 5 6
an object of class
a character value specifying the scale of support (relative or absolute).
a named list with logical component
currently not used.
Provides support counting using either method ptree (default), or
idlists (for details see the reference in
parameter can be an object of class
SPparameter or a named list with corresponding
components. Note that constraints which do not relate to the timing
transactions are ignored.
If sequences are used for
transactions missing event times
are replaced with the order indexes of events.
The supporting sequences are all sequences (of transactions) of which the sequence representing the association is a subset of.
supportingTransactions does not support timing
numeric vector the elements of which
correspond with the elements of
supportingTransactions an object of class
tidLists containing one sequence ID list per
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
## continue example example(cspade) ## recompute support s <- support(s2, zaki, control = list(verbose = TRUE, parameter = list(maxwin = 5))) data.frame(as(s2, "data.frame"), support = s) ## use default method k <- support(s2, zaki, control = list(verbose = TRUE)) table(size(s2), sign(k - s)) ## the same s <- supportingTransactions(s2, zaki) itemFrequency(s)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.