How can we do market basket analysis with R?

759    Asked by DavidPiper in Data Science , Asked on Sep 1, 2020
Answered by David Piper

apriori() is the function utilized for performing market basket analysis.

apriori(data, parameter = NULL, appearance = NULL, control = NULL)

where parameters are : The default behavior is to mine rules with minimum support of 0.1, minimum confidence of 0.8, maximum of 10 items (max len), and a maximal time for subset checking of 5 seconds (max time). Appearance: Appearance can be restricted. By default all of the items could appear unrestricted.control: Controls the algorithmic performance of the mining algorithm (item sorting, report progress (verbose), etc.)

Your Answer


Parent Categories