Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: dividing each column by the diagonal elements


From   Scott Merryman <scott.merryman@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: dividing each column by the diagonal elements
Date   Thu, 29 Dec 2011 10:16:08 -0600

It should look like:

mata
a = runiform(9,9)
a
b = a:/(diagonal(a))'
b
end

Scott


On Thu, Dec 29, 2011 at 10:00 AM, Scott Merryman
<scott.merryman@gmail.com> wrote:
> mataa = runiform(9,9)ab = a:/(diagonal(a))'bend
>
> Scott
*
*   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index