【发布时间】:2017-01-30 14:24:46
【问题描述】:
我需要reshape一个数据集,其原始形式如下:
schid m2s1q0_i m2s1q0_ii ... m2s1q0_x
1 6 2 3
schid teacher_id
1 5
1 2
...
1 3
我使用了这个代码:
reshape long m2s1q0_, i(schoolid) j(teacher_id)
但是,teacher_id 变量全部丢失。哪里出错了?
【问题讨论】:
-
从
help reshape,有一个选项字符串