Hi,
I have a dataset from the video game industry containing information about the revenue of video games, their rating and the release date (between 1995 and 2009). Now I want to generate a dummy variable named top_performer_rev that equals 1 if the game is within the top 20% for the game's release year based on its revenue and another variable, top_perfomer_qu that equals 1 if the game is within the top 20% measured by its rating, again for each release year.
I am not sure how to do that.
generate top_performer_rev = 0
replace top_performer_rev = 1 if ...?
I would really appreciate any help!
Thanks in advance,
Wani
I have a dataset from the video game industry containing information about the revenue of video games, their rating and the release date (between 1995 and 2009). Now I want to generate a dummy variable named top_performer_rev that equals 1 if the game is within the top 20% for the game's release year based on its revenue and another variable, top_perfomer_qu that equals 1 if the game is within the top 20% measured by its rating, again for each release year.
I am not sure how to do that.
generate top_performer_rev = 0
replace top_performer_rev = 1 if ...?
I would really appreciate any help!
Thanks in advance,
Wani
Comment