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

From |
moleps islon <moleps2@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
st: matrix question |

Date |
Sat, 8 Aug 2009 16:47:13 +0200 |

I'm all new to the world of matrices and cannot figure out how to use them properly. What I'm trying to do is to loop through a bunch of variables, tabulating them using estpost tab and save certain cells ([1,1..2] & [2,2]) into a new vector and append this vector to my result matrix. e.g. after the estpost tab command I've got two vectors (copied from e(pct) and e(cumpct)) A(1,2,3,4) & B(2,4,6,7). What I need now is to create a new vector containing A[1,1..2] & B[1,4] and append it to my matrix J. In the end matrix J should have one vector for each of the variables and be displayed... I'm sure this is easy, but I'm new to this and cannot figure out the notation used in the manuals. Reg, M * * 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: matrix question***From:*Tirthankar Chakravarty <tirthankar.chakravarty@gmail.com>

- Prev by Date:
**st: RE: RE: what does _N mean under by varlist in the -egen- and -gen-?** - Next by Date:
**Re: st: matrix question** - Previous by thread:
**st: stata 11 mi and user written mim and ice commands** - Next by thread:
**Re: st: matrix question** - Index(es):

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