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 |
arne.weiss@uni-erfurt.de |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: using value of one variable to read value of specific other variable out of a list of variables |

Date |
Mon, 09 May 2011 19:30:05 +0200 |

Dear everyone,

x1 x2 x3 y 1 2 3 1 0 5 4 2

local a = y gen z = x`a'

Many thanks in advance! Arne -- Dr. Arne Robert Weiß

Fax: +49 361 737 4569

* * 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**:**Re: st: using value of one variable to read value of specific other variable out of a list of variables***From:*"Christian Holz (Stata list)" <statalist@holz.ca>

**st: RE: using value of one variable to read value of specific other variable out of a list of variables***From:*Nick Cox <n.j.cox@durham.ac.uk>

- Prev by Date:
**st: nokey for spearman** - Next by Date:
**st: RE: using value of one variable to read value of specific other variable out of a list of variables** - Previous by thread:
**st: nokey for spearman** - Next by thread:
**st: RE: using value of one variable to read value of specific other variable out of a list of variables** - Index(es):