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

st: matrix accum


From   "Maureen Paul" <[email protected]>
To   <[email protected]>
Subject   st: matrix accum
Date   Wed, 23 Oct 2002 14:43:47 +0100

Hi 
I am using the -matrix accum-command to programme some matrices. I am not altogether confident with what I am doing. Here is what I would like to achieve and what I am doing:

I want to programme the calculation of 1/3 SUM(xi)(i=1,..N)SUM(GijHij)(j=1,...,Y). Note, x=variable list. What I have done is to first calculate the SUM(GijHij)(j=1,...,Y), call the result, say GH. Then I use the following

matrix accum XGH= 1/3 varlist GH

So my question is, is this correct?

Thanks

*
*   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/



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