以前也用过这个命令是正常的,但是这次老报错
这是输入的命令:reshape long 企业绩效 企业规模 股权集中度 数字金融 覆盖广度 使用深度 数字化程度 营业收入增长率 资产负债率 企业年龄, i(i) j(year)
显示是这个:
(note: j = 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021)
variable id does not uniquely identify the observations
Your data are currently wide. You are performing a reshape long. You specified i(i) and j(year). In the
current wide form, variable i 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);