At 15:10 02/02/04 +0000, Tumur Gunchinmaa wrote:
Dear all,
I am new to Stata and started using Stata 6.0.
I am having problems to reshape my data from wide to long form.
I have many variables.
Is there any way to reshape it without typing in "j"s.
Also when I type the command
.reshape long i(id)
Stata asks me to indentify "i". What does this mean?
There should definitely be a comma between the "reshape long" and the
"i(id)", as in
reshape long varnames, i(id)
Roger
[...]
I just want to add one bit of advice. Prior to the -reshape-, you should
-keep- only the variables you want to come through the
-reshape-. (Equivalently, -drop- the ones you don't want.) Keep those you
mention in the -reshape- command, plus any others you want retained (which
will be spread out as constants within each id-group.) If you neglect to
do this, you may end up with many excess variables (each spread out as
constants within id-groups), taking up lots of space, and adding
significant processing time to the -reshape-. The reshape help does not
say much about this.