Provides the generic function and a method to calculate the coverage (support of the left-hand-side) of rules.
coverage(x, transactions = NULL, reuse = TRUE) ## S4 method for signature 'rules' coverage(x, transactions = NULL, reuse = TRUE)
the set of rules.
the data set used to generate
reuse support and confidence stored in
Coverage (also called cover or LHS-support) is the support of the
left-hand-side of the rule
X => Y, i.e.,
supp(X). It represents a measure of
to how often the rule can be applied.
Coverage can be quickly calculated from the rule's quality measures (support and confidence) stored in the quality slot. If these values are not present, then the support of the LHS is counted using the data supplied in transactions.
Coverage is also one of the measures available via the function
A numeric vector of the same length as
x containing the
coverage values for the sets in
Other interest measures:
data("Income") ## find and some rules (we only use 5 rules here) and calculate coverage rules <- apriori(Income)[1:5] quality(rules) <- cbind(quality(rules), coverage = coverage(rules)) inspect(rules)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.