The matrix A has 17 rows and 8 columns because branch starts from 1 to 17 and class from 0 to 8.
So, i'm storing the r(sum_w) for every match.
But know i need to expand the
quietly summarize var8 if branch== `i' & class== `j' [iw=expansion]
quietly summarize var8 if branch== `i' & class== `j' area=`iregion' [iw=expansion]
with area, a variable designing areas in numbers that goes from 1 to 15.
But i don't know how to store the values in the matrix.
I thought of generating 15 matrices names, and inserting a forval iregion=1/15, but i didn't work.
Can you guide me on this?
Thanks for your time and interest.