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 on April 23, and its replacement, is already up and running.

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

st: RE: RE: AW: Graph Box Question

From   "Nick Cox" <>
To   <>
Subject   st: RE: RE: AW: Graph Box Question
Date   Sun, 8 Aug 2010 17:58:32 +0100

What roadblock did you meet? 

Some combination of -if- and -over()- would seem sufficient for either


Reg Jordan

Thanks so much, Martin. Your suggestion did the trick. Much appreciated.

Martin Weiss

One idea would be to separate beforehand:

sysuse nlswork,clear
separate hours, by(inrange(year, 70,72)) gen(firstsepa) separate hours,
by(inlist(year, 70,73,76)) gen(secondsepa) label variable firstsepa1
`"Variable for Hours in Years 1970-1972"'
label variable  secondsepa1`"Variable for Hours in Years 1970, 1973,
graph box firstsepa1 secondsepa1, legend(rows(2))

Reg Jordan

I have data collected during the years 2000 -2009. I want to boxplot one
the data variables, but I've hit a roadblock attempting to plot only
variable for certain years.
How would I boxplot data for: (1) years 2000 - 2003, and (2) for years,
2000, 2003, and 2007? Thanks for your assistance.

*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index