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 |
Antoine Terracol <terracol@univ-paris1.fr> |

To |
statalist@hsphsun2.harvard.edu |

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/

**References**:**Re: st: RE: [Mata] naming matrices in a loop***From:*Kit Baum <baum@bc.edu>

- Prev by Date:
**Re: st: problem with squared term** - Next by Date:
**st: RE: risk ratio** - Previous by thread:
**Re: st: RE: [Mata] naming matrices in a loop** - Next by thread:
**st: DOLS Estimator and VEC Beta estimate** - Index(es):