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: Frequency Distribution


From   Maarten Buis <maartenlbuis@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Frequency Distribution
Date   Fri, 22 Feb 2013 09:09:05 +0100

You can use Nick Cox's -qplot- or -stripplot- for that. Type in Stata
-findit qplot- and -findit stripplot- to find them.

*------------------ begin example ------------------
sysuse auto
qplot weight, over(foreign)
stripplot weight, separate(foreign) stack width(200)
stripplot weight, over(foreign) stack width(200)
*------------------- end example -------------------
(For more on examples I sent to the Statalist see:
http://www.maartenbuis.nl/example_faq )

-- Maarten

On Fri, Feb 22, 2013 at 7:47 AM, Keniajin Wambui wrote:
> I want to create a frequency distribution of a variable serial number
> grouped by year in stata 12 I.C for windows. ie I have serial numbers
> collected from say from year 2000 to year 2012. i want to create a
> frequency plot of the serial numbers per year on one graph. How can I
> do it?
>
> i have tiried
> hist nserial ,frequency by(yr)
> but its giving graphs per year
>
> --
> Mega Six Solutions
> Web Designer and Research Consultant
> Kennedy Mwai
> 25475211786
> *
> *   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/



-- 
---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

http://www.maartenbuis.nl
---------------------------------
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index