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

From |
Steven Ho <steven.ho@duke.edu> |

To |
"statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |

Subject |
st: How to form a vector for each line |

Date |
Wed, 14 Oct 2009 19:44:44 -0400 |

Hi, please help me with this. Suppose I have a data like this: a b c 3 4 3 2 3 4 2 5 6 2 0 4 What I want is something like this, of course the following command doesn't work gen arrayZ[_n]=( a[_n], b[_n], c[_n]) so that arrayZ[3] for example would be (2,5,6) ie. when I invoke Z[t] it will give me a VECTOR of t-th row I need this because I will do a whole bunch of operations to Z[t]Z[t]' How to achieve this? * * 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: AW: How to form a vector for each line***From:*"Martin Weiss" <martin.weiss1@gmx.de>

- Prev by Date:
**Re: st: New version of -bmjcip- on SSC** - Next by Date:
**Re: st: AW: creating two groups with identical distribution of one variable** - Previous by thread:
**st: re: standard error of a Wald estimator and -nlcom-** - Next by thread:
**st: AW: How to form a vector for each line** - Index(es):

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