Hi,
I have a dataset which I have imported from Excel into Stata with store and products
I haven't made any changes to the data so far.
I need to find a way to create a new variable that uniquely identifies combinations of stores and products. Eg two stores with 2 products each would result in 4 combinations in total and then see how many total combinations there are.
Please are you able to assist?. When I try, it seems to work but without a new variable where I do tab store product but I need a new variable.
Thank you!
I have a dataset which I have imported from Excel into Stata with store and products
I haven't made any changes to the data so far.
I need to find a way to create a new variable that uniquely identifies combinations of stores and products. Eg two stores with 2 products each would result in 4 combinations in total and then see how many total combinations there are.
Please are you able to assist?. When I try, it seems to work but without a new variable where I do tab store product but I need a new variable.
Thank you!
Comment