Dear statalisters,
sorry that i have to post this question again, because i need your help!
I need to calculate a matrix product that has the following form
B = G'WG
where G is a n x k matrix and W 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(W)
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:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/