Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Date: Thu, 12 Jun 2003 23:35:51 +0800

From   "Lee Chuntao" <>
To   <>
Subject   st: Date: Thu, 12 Jun 2003 23:35:51 +0800
Date   Thu, 12 Jun 2003 11:36:09 -0400 (EDT)

Dear Listers,

      Dear statalisters,

I need to calculate a matrix product that has the following form

B = G'YG

where G is a n x k matrix and Y is a k x k matrix.

suppose k=3, G=(a1,a2,a3), and my weight matrix is W, which is symmetric and
is used for all the observations.

I guess I need to use something like:

matrix glsaccum B = a1 a2 a3, glsmat(Y)

but stata's "matrix glsaccum" need two other options, which is group() and
row(), can anyone help me out?

Many Thanks

C. T. Lee

*   For searches and help try:

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