Learn R Programming

arulesSequences (version 0.2-1)

ruleInduction-methods: Induce Sequence Rules

Description

Induce a set of strong sequence rules from a set of frequent sequences, i.e. which (1) satisfy the minimum confidence threshold and (2) which contain the last element of the generating sequence as the right-hand side (consequent) sequence.

Usage

## S3 method for class 'sequences':
ruleInduction(x, transactions, confidence = 0.8, control = NULL)

Arguments

x
an object.
transactions
currently not used.
confidence
a numeric value specifying the minimum confidence threshold.
control
a list with logical components maximal specifying if rules should be induced from maximally frequent sequences only, and verbose if progress and runtime information should be displayed.

Value

  • Returns an object of class sequencerules.

See Also

Class sequences, sequencerules, function cspade.

Examples

Run this code
## continue example
example(cspade)

## mine rules
r2 <- ruleInduction(s2, confidence = 0.5,
			control    = list(verbose = TRUE))
summary(r2)
as(r2, "data.frame")

Run the code above in your browser using DataLab