Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: reshape and variable labels


From   "Benoit Dulong" <[email protected]>
To   [email protected]
Subject   st: reshape and variable labels
Date   Sun, 23 Feb 2003 20:53:56 -0500

------------------------------------------------------------------------
Before I reshape my data, I do not have any variable label.
After I reshape my data, every variable has a variable label.

For example, befor I reshape, 
codebook q3x gives
q3x ----------(unlabeled)

After I reshape (2 times)
codebook q3x41 gives
q3x41 --------1 q3x4
"1 q3x4" is the variable label of q3x41 !
Why a label, and why this label ?

Is this normal ?
Is it possible to reshape and get variables without labels ?

Thank you.
BD.
------------------------------------------------------------------------
*  first reshape
reshape wide q1x q2ax q2bx q3x q4x q5ax q5bx q6x fx /*
*/ , i(s t) j(r 1-8)

*  second reshape
*  variable -- x -- rater 1-8 -- trial 1-2
reshape wide /*
*/ q1x1 q2ax1 q2bx1 q3x1 q4x1 q5ax1 q5bx1 q6x1 fx1 /*
*/ q1x2 q2ax2 q2bx2 q3x2 q4x2 q5ax2 q5bx2 q6x2 fx2 /*
*/ q1x3 q2ax3 q2bx3 q3x3 q4x3 q5ax3 q5bx3 q6x3 fx3 /*
*/ q1x4 q2ax4 q2bx4 q3x4 q4x4 q5ax4 q5bx4 q6x4 fx4 /*
*/ q1x5 q2ax5 q2bx5 q3x5 q4x5 q5ax5 q5bx5 q6x5 fx5 /*
*/ q1x6 q2ax6 q2bx6 q3x6 q4x6 q5ax6 q5bx6 q6x6 fx6 /*
*/ q1x7 q2ax7 q2bx7 q3x7 q4x7 q5ax7 q5bx7 q6x7 fx7 /*
*/ q1x8 q2ax8 q2bx8 q3x8 q4x8 q5ax8 q5bx8 q6x8 fx8 /*
*/ ,i(s) j(t 1-2)

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index