[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: AW: cross products in mata

From   Edwin Leuven <>
To   "" <>
Subject   st: RE: AW: cross products in mata
Date   Mon, 6 Jul 2009 14:51:54 +0200

Martin wrote:
> help mf_cross

i have been there, but did not see how it can help me (perhaps i am overlooking something). 

for clarification: my weighting matrix W is not diagonal, and then there is the question whether i can avoid the loop:

xwx = J(st_nobs(), 1, .)
for (i=1; i<=st_nobs(); ++i) 
    xwx[i] = X[i,.]*W*X[i,.]'

*   For searches and help try:

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