以下是命令和结果,图一是原始数据,图二是跑完后的结果。很奇怪,每种数据没有变成一行,而是变成若干行。求教。
. reshape wide Score_, i(num neighborhood) j(terms_) string
(note: j = col com cs div gff hf hous jobs nightl outact pubsch wea)
Data long -> wide
-----------------------------------------------------------------------------
Number of obs. 1032 -> 500
Number of variables 4 -> 14
j variable (12 values) terms_ -> (dropped)
xij variables:
Score_ -> Score_col Score_com ... Score_w
> ea
-----------------------------------------------------------------------------
.
end of do-file