[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date index
][
Thread index
]
st: transpose of matrix
From
Kit Baum <
[email protected]
>
To
[email protected]
Subject
st: transpose of matrix
Date
Mon, 1 Aug 2005 12:36:59 -0400
Al wondered how to get a permutation matrix in Mata. Try help permutation.
: c
1
+------+
1 | .1 |
2 | .3 |
3 | .5 |
4 | .7 |
5 | .9 |
+------+
: p
1 2 3 4 5
+---------------------+
1 | 5 4 3 2 1 |
+---------------------+
: d=c[p,.]
: d
1
+------+
1 | .9 |
2 | .7 |
3 | .5 |
4 | .3 |
5 | .1 |
+------+
Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html
*
* 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/
Prev by Date:
st: Updated version of -gologit2- now available
Next by Date:
Re: st: how to test for multicollinearity with xtreg
Previous by thread:
st: transpose of matrix
Next by thread:
st: RE: transpose of matrix
Index(es):
Date
Thread
© Copyright 1996–2024 StataCorp LLC |
Terms of use
|
Privacy
|
Contact us
|
What's new
|
Site index