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: plotting histogram of a matrix column
From
Stefano Lombardi <[email protected]>
To
[email protected]
Subject
Re: st: plotting histogram of a matrix column
Date
Sun, 07 Jul 2013 18:58:23 +0200
Thank you very much.
Notice that the question is cross-posted at:
http://stackoverflow.com/questions/17513134/plotting-histogram-of-a-matrix-column-stata-12
Kind regards,
Stefano Lombardi
Il 07/07/2013 18:47, Nick Cox ha scritto:
There is one simple answer: copy your matrix column to a Stata
variable and use -histogram-. Anything else will just be roundabout or
approximate.
Nick
[email protected]
On 7 July 2013 17:33, Nick Cox <[email protected]> wrote:
You cross-posted this at
http://stackoverflow.com/questions/17513134/plotting-histogram-of-a-matrix-column-stata-12
The guidelines to posters about cross-posting to other forums are
quite explicit at
http://www.stata.com/support/faqs/resources/statalist-faq/#crossposting
and were drawn to members' attention in
http://www.stata.com/statalist/archive/2013-06/msg01206.html
Nick
[email protected]
On 7 July 2013 16:53, Stefano Lombardi <[email protected]> wrote:
Working in Stata12, I need to plot the histogram of the data contained in
the column of the matrix MAT.
I understand that, probably, a first step requires to use mm_histogram(), as
I did in the following example, but then I do not know how to proceed
(either in Stata or in Mata).
*---------------- start example ------------------
mata:
mata mlib index
MAT = uniform(100, 1)
hist_data = mm_histogram(MAT)
end
*----------------- end example -------------------
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/