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/