Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: RE: [Mata] naming matrices in a loop
From
Antoine Terracol <[email protected]>
To
[email protected]
Subject
Re: st: RE: [Mata] naming matrices in a loop
Date
Sat, 20 Mar 2010 20:11:33 +0100
Thanks Kit, I'll have a look at it.
Antoine
On 20/03/2010 12:10, Kit Baum wrote:
<>
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/
*
* 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/