Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | George Murray <george.murray16@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | Re: st: Using scalars to create a histogram |
Date | Mon, 23 Sep 2013 02:32:36 +1000 |
Thanks. Didn't think of this. George. On Mon, Sep 23, 2013 at 2:00 AM, Nick Cox <njcoxstata@gmail.com> wrote: > Put them in a variable. E.g. > > gen y = . > qui forval i = 1/500 { > replace y = scalar(s`i') > } > > assuming that you have 500 or more observations. > > Nick > njcoxstata@gmail.com > > > On 22 September 2013 13:07, George Murray <george.murray16@gmail.com> wrote: >> Dear Statalist, >> >> Suppose I have scalars s1, s2, …, s500 (these are not the only scalars >> saved in the memory), and I wish to draw a histogram of these scalars. >> Can anyone suggest a method of doing this? >> >> Also, suppose I have scalar q1. Any suggestions on how to find how >> many s1,…,s500 are larger than q1? >> >> Thanks, >> >> George. >> >> * >> * 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/ * * 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/