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]
Re: st: option problems with byhist (interlaced histogram)
From
Austin Nichols <[email protected]>
To
[email protected]
Subject
Re: st: option problems with byhist (interlaced histogram)
Date
Tue, 29 Nov 2011 13:47:22 -0500
Patricia Biedermann <[email protected]> :
cap ssc install byhist, replace
sysuse auto, clear
ren rep78 occup
ren foreign casecontrol
byhist occup, by(casecontrol) disc tw1(title(Defaults))
byhist occup, by(casecontrol) percent tw1(color(blue) lwidth(3))
tw2(color(red) lwidth(3) title(Why lwidth 3?))
On Tue, Nov 29, 2011 at 1:38 PM, Patricia Biedermann
<[email protected]> wrote:
>
> I want to produce an interlaced histogram with two variables:
> 1. Variable: 1= Case; 2=Control (binary)
>
> 2. Varialbe: 1=Agriculture, 2=Employment; 3=Business, and so on... (categorical)
>
>
> I tried this command:
>
> byhist occup, by(casecontrol) percent tw1(color(blue) lwidth(3)) tw2(color(red) lwidth(3))
>
> so far it works very well, BUT I also wanted to put
>
> - title
> - legend
> - lables
>
> - etc.
> into the graph. everytime I try this, I got a error message. e.g: option
> title not allowed...so what can I do? Is there any other solution to
> make this graph?
>
> (the important thing is that it has to be ONE GRAPH!)
*
* 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/