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

st: data manipulating question


From   Phuong Lan Nguyen <phuong@u.washington.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: data manipulating question
Date   Fri, 22 Oct 2004 16:46:27 -0700 (PDT)

Hi there,

I have a question about stata program and I hope you are able to help me. I have a series of numeric variables and want to group them into 1 variable. Details of my data is

var1 var2 var3
x y z

3 variables indicates 3 code of teaching experience of teachers. Now i want to group them into 1 variable:

new variable
var1 x
var2 y
var3 z

What command should I use to transform these variables?

thanks
-phuong

*
* 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index