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
Identifying ICD-codes in 30 different variablesHi, I have a dataset containing one variable identifying study participants and 30 variables contai…
Comparing Means Between Two GroupsI would like to compare the means of Group A with those of Group B. How would I see if there is any …
Rename variable in tabHi, I would like to rename my variable just in a tab. I don't want to create a new variable or rena…
Error: Master Data not sorted by applying -glmdose-Dear Statalisters, I am looking for help on -glmdose-. code:mat def tp1=(0/6/12/24/60) glmdose m_…
predict fit, xbHi, what is the meaning of "predict fit, xb"?: Is it the value of the estimated variable? Thanks!…
Subscribe to:
Post Comments (Atom)
0 Response to Time variable in panel data
Post a Comment