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]

st: plotting histogram of a matrix column


From   Stefano Lombardi <[email protected]>
To   [email protected]
Subject   st: plotting histogram of a matrix column
Date   Sun, 07 Jul 2013 17:53:48 +0200

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 -------------------

Thank you very much for any suggestion.

Stefano Lombardi
*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index