Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: RE: Creating an X,Y variable from X and Y columns
From
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
st: RE: Creating an X,Y variable from X and Y columns
Date
Tue, 24 Aug 2010 21:36:34 +0100
You can do this by producing a string variable, but I doubt that's what you want. I guess that you want to do matrix algebra, for which there is a limited -matrix- language in Stata and a much more versatile matrix-centred language in Mata.
Nick
[email protected]
Martin Pszczola
I am wondering if it is possible to take two columns of values (X and Y) and combine them into one, new variable that is X, Y? For example, say I have 5 variables for X and Y each. X=1 0 1 1 1 Y=0 0 1 1 1 and I want to create a new variable X,Y= 1,0 0,0 1,1 1,1 1,1.
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/