I am using the apriori algorithm in r to find frequent itemsets. Now I want to know if a sample will produce the same frequent itemsets as the whole data set will, and I was wondering if there exists a way to compare these two.
itemset = apriori(allTransactions, parameter = list(support = 0.01, target="frequent itemsets", maxlen = 100));
and I want to compare this (accuracy, recall, precision etc) to
itemsetSample = apriori(sampleTransactions, parameter = list(support = 0.01, target="frequent itemsets", maxlen = 100));
Thanks!