[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: RE: AW: cross products in mata
From
Edwin Leuven <[email protected]>
To
"[email protected]" <[email protected]>
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,.]'
edwin
*
* 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/
© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |