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, statalist.org is already up and running.


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

Re: st: option problems with byhist (interlaced histogram)


From   Austin Nichols <austinnichols@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: option problems with byhist (interlaced histogram)
Date   Tue, 29 Nov 2011 13:47:22 -0500

Patricia Biedermann <patricia.biedermann@yahoo.com> :

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
<patricia.biedermann@yahoo.com> 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/


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