求助论坛各位大佬,我老板给我的数据不知道为什么就变成mi set格式了。我现在要把他的长格式转化成宽格式,但是stata似乎不让我这么做。
sort hhid_2017 a2001
keep hhid_2017 a2001 a2003
keep if a2001==1 | a2001==2
duplicates drop hhid_2017 a2001,force
reshape wide a2003, i(hhid_2017) j(a2001)
仅仅是最简单的几个命令,stata也报红
no; data are mi set
Use mi reshape to perform reshape on these data. mi reshape has the same syntax as
reshape.
Perhaps you did not type reshape. In that case, the command you typed calls reshape
and it is not appropriate for use with mi data. Use mi extract or mi xeq to select
the data on which you want to run the command, which is probably m=0.
请问有大佬知道这个是为什么嘛?我的数据为什么变成了mi set格式呀,有办法把数据变成原来的格式嘛