Bookmark and Share

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]

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–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index