Geoffrey,
Have you considered a loop e.g.,
matrix ALL = A1
foreach i of numlist 2/448{
matrix ALL = ALL\A`i'
}
-Brent
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Geoffrey Homer
Sent: Thursday, January 01, 2009 11:27 AM
To: [email protected]
Subject: st: row joining matrices in a loop
Hello All:
I've been labouring over a stata problem for quite a while now. I have
created a block diagonal matrix of instruments for each cross sectional
unit of my panel dataset, and would like to row join or stack them into
one large matrix. Each unit's instrument matrix is 8 columns and 5 rows,
and i would rather not have to manually join each unit's instrument matrix
by row as i have 448 units. Can anyone suggest a way to create my 5*448
row matrix other than
matrix ALL = [A1\A2....\A448}
thanks for all you responses in advance
geoffrey homer
univeristy of victoria
[email protected]
*
* 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/
*
* 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/