I have a dataset with different purchases for two different items from the same users. So the users purchased the two items at different points in time. I also have 3 different variables:
Low twice (Low, Mid,High for each product) within this dataset. So the product are broken up into these categories. For example, suppose I bought item X and its classified as a High price item. I then want to see if the same user bought an item Y at the same classification level (High). My end goal is to see if there is an association of a customer buying items at the same classification level across different items.
My first thought was to use a Chi square test but I am not sure this is the best way to do it. I am doing this in R. All of the data are binary variables. Here is an example of what the dataset looks like.
User Type High Mid Low 1 Product 1 0 1 0 1 Product 2 1 0 0 2 Product 1 0 1 0 2 Product 2 0 1 0 3 Product 1 0 0 1 3 Product 2 0 1 0