Dear all,
I am currently trying to define my first panel data set in Stata. For this, STATA (14.2) wants me to define a Panel ID variable and a Time variable. In my panel dataset I am looking at company transactions over 20 years. Accordingly, it happens that a company has also made more than one transaction per year. This brings us to the problem: Defining the panel ID variable is not a problem, since I can simply use the unique company ID, but when I define the time variable, STATA shows me the error that per time variable, i.e. in my case per year, each panel ID may only occur once.
Various scientific papers also consider several transactions of a company per year and still were able to calculate for example xtlogit, fe or xtlogit, re. When I do this, above error message appears from Stata. One way to handle this problem - as far as I know - are multilevel analysis (mixed, melogit). But this does not correspond exactly to the logic xtlogit, fe or xtlogit, re. Another solution approach would be to aggregate the data so that I only have one transaction of a company per year but this would distort my calculations.
Thus, how it is possible to run a xtlogit,fe or xtlogit, re in such a situation? How can I handle the definition problem with the time variable?
Thank you very much for your supprt!
Related Posts with Time variable in panel data
Data Editor - Toolbar QuestionGood morning, Is it possible to put the 'New Do-File Editor' toolbar icon on the Data Editor toolba…
Rotation in correspondence analysisRegards. How could I perform a rotation in a correspondence analysis in Stata? …
Outreg2 Questions relatd to the regression constant term, Missing R squared, and having Multiple tables in one docHi, Code: xtivreg ChgLCon (L.Underperformance_Peer=L2.Financial_Crisis) L.Cost_Income_Ratio L.HH_…
Graph align xtitle rightHi, I have been trying to move my xtitle in a graph towards the right instead of centered. I checked…
random selection between observationHi everyone, In the below dataset, I want to randomly delete one of the observations that has the sa…
Subscribe to:
Post Comments (Atom)
0 Response to Time variable in panel data
Post a Comment