[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Substituting submatrix
From
Rachel <[email protected]>
To
statalist <[email protected]>
Subject
st: Substituting submatrix
Date
Thu, 23 Aug 2007 21:47:34 -0400
How can one efficiently replace a submatrix in Stata? For example,
suppose we have C, an 6x6 identity matrix and would like to subsitute
[3,4\5,6] as the upper left 2x2 submatrix.
I've tried mat C[1..2,1..2]=3,4\5,6
but this leads to a syntax error.
Thanks,
Rachel
*
* 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 |