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: Matrix manipulation
From
[email protected]
To
[email protected]
Subject
st: Matrix manipulation
Date
Wed, 23 Mar 2011 09:32:46 +0000
Hello everyone!
I have a short question working with matrices in Stata (not Mata - perhaps would be more advisable):
I'd like to divide each row by the respective entry in the first column of any nxk matrix.
Example:
A = 80 100 40
10 -6 7
Hence, after dividing by 80 and 10 we get:
B = 1 1.25 0.5
1 -0.6 0.7
Impossible? Any suggestions how to approach it?
Cheers,
Ulrich
Please access the attached hyperlink for an important electronic communications disclaimer: http://lse.ac.uk/emailDisclaimer
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/