2

I want to use the arules package of r for market basket analysis.

The issue is I do not have data for each transaction. My data is aggregated for every day. So I am thinking of comparing the quantity sold of each product.

How do I input this magnitude of quantity sold and use arules package with it?

  • This is difficult. arules currently only supports transactions weights via weclat(). – Michael Hahsler Apr 12 '16 at 03:25
  • @MichaelHahsler Can you please illustrate how to use weclat() for the same? Or is it that I can only give weights to transactions and not individual products? Thanks. – Paras Mehta Apr 12 '16 at 09:10
  • @PatrasMehta Correct, unfortunately only transaction weights are supported, but not item weights. I think the reason is that it is not clear how support of an itemset is defined, if each item has a different weight. – Michael Hahsler Apr 13 '16 at 14:02

0 Answers0