Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Kit Baum <baum@bc.edu> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: RE: [Mata] naming matrices in a loop |
Date | Sat, 20 Mar 2010 07:10:40 -0400 |
<> On Mar 20, 2010, at 2:33 AM, Antoine wrote: > I've tried pointers, but I must be doing something wrong. Must have a > closer look at the manual. > > Since the matrices need not have the same dimensions, I cannot just > populate a larger matrix with the results. There is a worked example, with explanation, of the use of pointers to create a number of matrices (which indeed need not be of the same dimensions) in section 14.8, "Computing the seemingly unrelated regression estimator for an unbalanced panel", in An Introduction to Stata Programming. In this case one of the sets of matrices are the X'X matrices for each equation, and in SUR one can have different numbers of Xs in each equation, so the matrices are of different order. Kit Baum | Boston College Economics & DIW Berlin | http://ideas.repec.org/e/pba1.html An Introduction to Stata Programming | http://www.stata-press.com/books/isp.html An Introduction to Modern Econometrics Using Stata | http://www.stata-press.com/books/imeus.html * * 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/