Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Keniajin Wambui <kiangati@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: Frequency Distribution |

Date |
Fri, 22 Feb 2013 13:01:58 +0300 |

Thanks Maarteen for that, is it possible to get a histogram Nick; The by() graph gives a different plot for every yr , but i guess this did the magic graph bar (count) nserial, over(yr) but now i want to show the missing values and the non missing on the same bar.. ie for nserial ; the bar for year 2000 shows the overall total mayb blue and the total of non missing mayb red On Fri, Feb 22, 2013 at 11:24 AM, Nick Cox <njcoxstata@gmail.com> wrote: > If this is what Kennedy/Keniajin wants, then I would be pleased too. > > Otherwise the complaint is unclear to me. Precisely why is the -by()- > graph not what you want? Do you want bars side-by-side? stacked > vertically? and so forth. > > Nick > > On Fri, Feb 22, 2013 at 8:09 AM, Maarten Buis <maartenlbuis@gmail.com> wrote: > >> 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 ) > > 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 > * > * 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/ -- 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/

**Follow-Ups**:**Re: st: Frequency Distribution***From:*Maarten Buis <maartenlbuis@gmail.com>

**Re: st: Frequency Distribution***From:*Nick Cox <njcoxstata@gmail.com>

**References**:**st: Frequency Distribution***From:*Keniajin Wambui <kiangati@gmail.com>

**Re: st: Frequency Distribution***From:*Maarten Buis <maartenlbuis@gmail.com>

**Re: st: Frequency Distribution***From:*Nick Cox <njcoxstata@gmail.com>

- Prev by Date:
**st: controling x-axis size in graph hbar.** - Next by Date:
**Re: st: controling x-axis size in graph hbar.** - Previous by thread:
**Re: st: Frequency Distribution** - Next by thread:
**Re: st: Frequency Distribution** - Index(es):