Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
st: mata matrix permutation
From
yoad shefi <[email protected]>
To
[email protected]
Subject
st: mata matrix permutation
Date
Sun, 16 Feb 2014 20:48:18 -0600
I have a matrix in mata that has 3000 columns, but consists of 3
distinct blocks (each with 1000 columns).
I'm trying to change the order of the columns so that I get a
consecutive set of columns one from each block - 1, 1001, 2001, 2,
1002, 2002, 3, 1003, 2003 ....., 999,1999,2999, 1000, 2000, 3000.
Is there an easy way to do this in mata?
any help would be appreciated,
Thanks,
Yoad
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/