Hi,
I have a 3D panel dataset looking at football matches. This dataset is at the individual (i), day(d) and match(m) level. There are usually 4 matches for every day (but this is not entirely consistent, because 2 days have <4 matches), and around 380-390 individuals for each football match.
I am currently trying to run a regression that estimates the likelihood of betting on the game that the individual has watched.
I have tried to group my variables as such:
egen newID=group(match ID)
xtset newID day
egen matchday=group(match day)
xtset matchday ID
egen newID=group(ID day)
xtset newID match
However, when I run the xtset command I get the same error - "repeated time values within panel"
I am struggling to understand why I cannot run the xtset command. My independent variable is the number of bets (a count variable that varies by the individual and the match). The day variable accounts for the fact that there are multiple games on each day.
Does anyone know where I might be going wrong?
I have a 3D panel dataset looking at football matches. This dataset is at the individual (i), day(d) and match(m) level. There are usually 4 matches for every day (but this is not entirely consistent, because 2 days have <4 matches), and around 380-390 individuals for each football match.
I am currently trying to run a regression that estimates the likelihood of betting on the game that the individual has watched.
I have tried to group my variables as such:
egen newID=group(match ID)
xtset newID day
egen matchday=group(match day)
xtset matchday ID
egen newID=group(ID day)
xtset newID match
However, when I run the xtset command I get the same error - "repeated time values within panel"
I am struggling to understand why I cannot run the xtset command. My independent variable is the number of bets (a count variable that varies by the individual and the match). The day variable accounts for the fact that there are multiple games on each day.
Does anyone know where I might be going wrong?
Comment