Dear all,
I am writing my Master's thesis in Economics, and I am working on a data set on board of directors in the US over the past 10 years. Each director has a unique ID, and I can follow the director year-by-year. The problem arises, as I get the "repeated time values within panel r(451);" error when I try and set up my panel data.
This, I believe, is because a director can hold multiple directorships in different companies at the same time, why the year and the director ID is not unique as a match. To give an example, a director with ID "503" can be a director on the board of both "Eastman" and "TE" in year 2011.
Array [ATTACH]temp_15701_1568379118464_929[/ATTACH]
Is there a smart workaround? At the moment, I have the following code:
global t Time
global id ID
global ylist PD
global xlist Women ROA MTB LIQUID SOLV RISK IndD
*isid ID Time (to check for uniqueness)
describe $id $t $ylist $xlist
summarize $id $t $ylist $xlist
* Set data as panel data
sort $id $t
xtset $id $t
xtdescribe
xtsum $id $t $ylist $xlist
* Pooled OLS estimator
reg $ylist $xlist
* Population-averaged estimator
xtreg $ylist $xlist, pa
* Between estimator
xtreg $ylist $xlist, be
* Fixed effects or within estimator
xtreg $ylist $xlist, fe
Thanks in advance,
Emil
Related Posts with Panel data with repeated time values within panel r(451); due to multiple directorships
Conducting multinomial regression on multiply imputed variables for subset dataHi Is there a way to conduct multinomial regression for a weighted subsample datasets? For e.g. I us…
Date values are differentHello, I have values for the dates given in LB21B. I used the code egen LB21B_12=convertCMC(LB21B) w…
How can I get several variables' mean values at the smaeI want to create a vector containing several variables' mean values. But the summarize command only …
Testing dominance between Lorenz curvesHello Stata Experts, I will request information on the Stata code to test for dominance between two…
A conceptual question about when should I add fixed effect and cluster the fixed effect?Suppose I add a time-fixed effect to a panel data regression that I want to estimate using OLS. My q…
Subscribe to:
Post Comments (Atom)
0 Response to Panel data with repeated time values within panel r(451); due to multiple directorships
Post a Comment