Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Martin Pszczola <martinpsz@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: Creating an X,Y variable from X and Y columns |

Date |
Tue, 24 Aug 2010 15:28:16 -0500 |

Hi; 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. Any help would be appreciated. Thank you. Martin * * 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/

**Follow-Ups**:**st: RE: Creating an X,Y variable from X and Y columns***From:*"Martin Weiss" <martin.weiss1@gmx.de>

**st: RE: Creating an X,Y variable from X and Y columns***From:*Nick Cox <n.j.cox@durham.ac.uk>

- Prev by Date:
**st: repeated time values problem -svar** - Next by Date:
**st: RE: Creating an X,Y variable from X and Y columns** - Previous by thread:
**st: repeated time values problem -svar** - Next by thread:
**st: RE: Creating an X,Y variable from X and Y columns** - Index(es):