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
Listing values and labelsI have a bunch of countries. They are coded as numbers (values) in an integer variable. For each val…
confidence interval for mean differenceDear Listers, I would like to know how to capture confidence interval for mean difference. I have …
Running regressions in a loopHi all, I have got a large dataset available which has 14 yearly datapoints for several independent…
Time Series RegressionHi all, I'm working on the following sample. Code: * Example generated by -dataex-. To install: s…
Time-series analysisHello everyone! I want to create a graph base on several rounds of ESS survey years. I have immigra…
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