Hi together,
after recieving very good help I would like to ask you again for your help.
I have two variables (ArticleNumber and Price) and I want to calculate how often prices changed within each article. I have scanner data so I have many different cases per each article with different prices that have been paid. What I would like to do is to add a new variable each case that indicates the number of different prices for the corresponding ArticleNumber.
I used "bysort Article_Nu: distinct Price" . I got the result, but I have no idea how to generate a new variable.
Thank you in advance for your help!
after recieving very good help I would like to ask you again for your help.
I have two variables (ArticleNumber and Price) and I want to calculate how often prices changed within each article. I have scanner data so I have many different cases per each article with different prices that have been paid. What I would like to do is to add a new variable each case that indicates the number of different prices for the corresponding ArticleNumber.
I used "bysort Article_Nu: distinct Price" . I got the result, but I have no idea how to generate a new variable.
Thank you in advance for your help!
Comment