Calculate-Association-Rules: Calculate Association Rules

Calculate Association RulesR Documentation

Calculate Association Rules

Description

Calculate Association Rules using the apriori algorithm (as implemented in the arules package). This function lets the user decide on the number of rules to produce and estimates parameters to produce those results.

Usage

Association_Rules(sbs.trait.attributes, lhs, rhs, N)

Arguments

sbs.trait.attributes

Matrix where each collumn is a trait attribute and each row a genome. Presence or absence is indicated with either a one (1) or zero (0).

lhs

A vector containing one or multiple terms for the left-hand-side (antecedent) of the association rules. For more information see https://en.wikipedia.org/wiki/Association_rule_learning.

rhs

A vector containing one or multiple terms for the right-hand-side (consequent) of the association rules. For more information see https://en.wikipedia.org/wiki/Association_rule_learning.

N

The number of association rules to create (e.g. N = 100 will result in 100 association rules).

Author(s)

JJM van Steenbrugge


Jorisvansteenbrugge/TcT documentation built on Sept. 26, 2022, 6:50 a.m.