Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: absolute values of matrix elements [stata 8]


From   "R.E. De Hoyos" <[email protected]>
To   <[email protected]>
Subject   st: absolute values of matrix elements [stata 8]
Date   Fri, 11 Nov 2005 17:31:19 -0000

Statalist,

I am trying to transform a matrix A into matrix B where B's elements are the abolute values of A's.

B[i,j] = | A[i,j] |

I found Nick's -matodd- but it seems not to have an -abs- elementwise option. No

Many thanks,

Rafa
________________________
R.E. De Hoyos
Faculty of Economics
University of Cambridge
CB3 9DE, UK
www.econ.cam.ac.uk/phd/red29/ *
* 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