qianchen 发表于 2022-1-23 19:14
clear
input str6 code int 类别代码 str72 学历 int 次类别代码 long 人数 double 比例
"000001" 5000 ...
values of variable 学历 not unique within code
Your data are currently long. You are performing a reshape wide. You specified
i(code) and j(学历). There are observations within i(code) with the same value of
j(学历). In the long data, variables i() and j() together must uniquely identify the
observations.