在进行宽数据转换长数据时,总会出现
variable id does not uniquely identify the observations
Your data are currently wide. You are performing a reshape long. You specified i(Code GOV CEOduality) and j(year). In the current
wide form, variable Code GOV CEOduality should uniquely identify the observations. Remember this picture:
long wide
+---------------+ +------------------+
| i j a b | | i a1 a2 b1 b2 |
|---------------| <--- reshape ---> |------------------|
| 1 1 1 2 | | 1 1 3 2 4 |
| 1 2 3 4 | | 2 5 7 6 8 |
| 2 1 5 6 | +------------------+
| 2 2 7 8 |
+---------------+
Type reshape error for a list of the problem observations.
r(9);
请问这是怎么回事?研究的问题是独立董事背景对ROA(2011-2015年数据)的影响,自变量是不同背景独立董事比例,还有控制变量中存在5年数据相同的情况,求大神帮助!!!