Code:
clear input int MatchID byte Result str8(Team Opponent) byte Home double(WINPCT OWINPCT) int season byte Matchday 8 0 "HIFK" "Ässät" 1 0 1 2005 2 11 0 "JYP" "Blues" 1 1 0 2005 2 8 1 "Ässät" "HIFK" 0 1 0 2005 2 14 0 "Ilves" "HPK" 1 0 1 2005 2 14 1 "HPK" "Ilves" 0 1 0 2005 2 12 1 "Pelicans" "Jokerit" 1 0 1 2005 2 11 1 "Blues" "JYP" 0 0 1 2005 2 12 0 "Jokerit" "Pelicans" 0 1 0 2005 2 end
Hello all,
at the moment I deal with seasonal ice hockey data and want to estimate a fixed and random effects logit regression model. For each Match my dataset contains two Observations and each team plays multiple times per season (some seasons have different amounts of Matchdays). Has anybody a suggestion on how to correctly use the xtset command in order to account for the fact that game j in season k can be correlated with game j +1 in season k. Furthermore, I am unsure whether using Team as a panel variable is correct, because of the two observations per Game.
I appreciate any helps on how to solve with this kind of problem, thank you!
With kind regards,
Malte
P.S: With the dataset Result = 1 if a team won a game and Home = 1 if a team played at home. I want to regress for example Result ~ Home + WINPCT + OWINPCT, and therefore need two observations per Match in order to be able to account for the opponents strength etc.

Comment