Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: submatrix


From   behailu ayele <bbezabih@googlemail.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: submatrix
Date   Tue, 15 Nov 2011 09:36:27 +0000

dear statalisters,

I have problem extracting parts of a matrix I estimated.

my matrix e(b) is  9 by 9. Now I want to extract the first line and I did this.

matrix b=e(b)
and then
 matrix new==b[1,1..9]

my problem is  when i want to have a 3 by 9 matrix of the last three columns

is this not what I am supposed to do?

matrix new==b[7/9,1..9]


your help is ppraciated
thanks
behailu
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index