Hey there,
I am working with a dataset on the video game industry comprising the variables name (of the team members in the development team), title ( of the game, i.e. project), release_date, developer (i.e. the firm developing the game), mobyscore (how the game was assessed), and title_project_size (size of the development team per project). I already generated the variables person_id and project_id.
What I want to do is to find out, how team composition changes compared to the previous period. Hence, I was thinking to compare each project's person_id in the current period to the previous one. To do so, I tried the following and wanted to summarize the "changes" of a project compared to the previous one and, moreover, to divide the outcome by the team_project_size:
Stata "responded" with :
Thank you all,
Katrin
(PS: I already requested to change my user name.)
I am working with a dataset on the video game industry comprising the variables name (of the team members in the development team), title ( of the game, i.e. project), release_date, developer (i.e. the firm developing the game), mobyscore (how the game was assessed), and title_project_size (size of the development team per project). I already generated the variables person_id and project_id.
What I want to do is to find out, how team composition changes compared to the previous period. Hence, I was thinking to compare each project's person_id in the current period to the previous one. To do so, I tried the following and wanted to summarize the "changes" of a project compared to the previous one and, moreover, to divide the outcome by the team_project_size:
. sort release_date
. gen change=0
. bys title: replace change = change + 1 if person_id != person_id [_n-1]
Stata "responded" with :
weights not allowedSo, obviously, this doesn't work. I would really appreciate, if someone could help me with that. I was also thinking about the xtset command, which didn't work as the variable release_date contains repeated time values within panel (as a developer may release various games at the same date).
r(101);
Thank you all,
Katrin
(PS: I already requested to change my user name.)
Comment