[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Substituting submatrix

From   Rachel <>
To   statalist <>
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.

*   For searches and help try:

© Copyright 1996–2022 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index