I plan to consider minsup=0 (minimum support)
I want to generate all frequent item set, along with their confidence value being displayed.
As minsup=0, thus I need confidence between all pairs of items in the basket

Ex: I have 3 items(A,B,C) in the market basket with N transactions
I need confidence between (A,b); (B,c), (C,A) ;
How it can be achieved for m items in R or matlab

the first link here shows you how to do it in a GUI with very nice example. Hope it helps

If you need more info on the package ( to tweak the code by hand)

see

Michael Hahsler, et al. has authored and maintains two very useful R packages relating to association rule mining: the arules package and the arulesViz package. Furthermore, Hahsler has provided two very good example articles providing details on how to use these packages in Introduction to arules and Visualizing Association Rules.

Calls the C implementation of the Apriori algorithm by Christian Borgelt for mining frequent itemsets, rules or hyperedges.

Note: Apriori only creates rules with one item in the RHS (Consequent)!

Note: The default value in APparameter for minlen is 1. This means that rules with only one item (i.e., an empty antecedent/LHS) like {} => {beer} will be created. These rules mean that no matter what other items are involved the item in the RHS will appear with the probability given by the rule’s confidence (which equals the support). If you want to avoid these rules then use the argument parameter=list(minlen=2).

To find out what customers had purchased before buying ‘Whole Milk’. This will help you understand the patterns that led to the purchase of ‘whole milk’.

rules <- apriori (data=Groceries, parameter=list (supp=0.001,conf = 0.08), appearance = list (default=“lhs”,rhs=“whole milk”), control = list (verbose=F)) # get rules that lead to buying ‘whole milk’

Find out what events were influenced by a given event

In this case: the Customers who bought ‘Whole Milk’ also bought. In the equation, ‘whole milk’ is in LHS (left hand side).
rules <- apriori (data=Groceries, parameter=list (supp=0.001,conf = 0.15,minlen=2), appearance = list (default=“rhs”,lhs=“whole milk”), control = list (verbose=F)) # those who bought ‘milk’ also bought…