Bookmark and Share

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: graph - histogram 2 variables


From   Maarten Buis <[email protected]>
To   [email protected]
Subject   Re: st: graph - histogram 2 variables
Date   Mon, 25 Nov 2013 13:25:38 +0100

On Mon, Nov 25, 2013 at 1:12 PM, PAPANIKOLAOU P. wrote:
> Y1: the number of monthly days divided by 365.25
>
> Y2: the monthly proportion of people with the diseases
>
> How best would I check whether Y2 differs substantially from Y1?

scatter Y2 Y1

> How best could I use the histogram command to display both of these
> variables in the graph, whilst presenting the months on the horizontal
> axis?

You probably do not mean a histogram but a bar chart, see: -help graph
bar- and for more flexibility -help twoway bar-.

-- Maarten

---------------------------------
Maarten L. Buis
WZB
Reichpietschufer 50
10785 Berlin
Germany

http://www.maartenbuis.nl
---------------------------------
*
*   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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index