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: AW: RE: AW: Graph Box Question
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
Subject
st: AW: RE: AW: Graph Box Question
Date
Sun, 8 Aug 2010 19:00:23 +0200
<>
Also see NJC`s http://www.stata-journal.com/sjpdf.html?articlenum=gr0023 re
-separate-...
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Reg Jordan
Gesendet: Sonntag, 8. August 2010 18:45
An: [email protected]
Betreff: st: RE: AW: Graph Box Question
Thanks so much, Martin. Your suggestion did the trick. Much appreciated.
reg
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Martin Weiss
Sent: Sunday, August 08, 2010 11:01 AM
To: [email protected]
Subject: st: AW: Graph Box Question
<>
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, 1976"'
graph box firstsepa1 secondsepa1, legend(rows(2))
*************
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Reg Jordan
Gesendet: Sonntag, 8. August 2010 16:37
An: [email protected]
Betreff: st: Graph Box Question
I have data collected during the years 2000 -2009. I want to boxplot one of
the data variables, but I've hit a roadblock attempting to plot only that
variable for certain years.
How would I boxplot data for: (1) years 2000 - 2003, and (2) for years, say,
2000, 2003, and 2007? Thanks for your assistance.
Reg Jordan
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/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/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/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/statalist/faq
* http://www.ats.ucla.edu/stat/stata/