Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Producing a matrix of histograms


From   Nick Winter <[email protected]>
To   [email protected]
Subject   Re: st: Producing a matrix of histograms
Date   Thu, 22 Jul 2004 14:44:00 -0400

I think

. histogram bp , by(age ses, cols(5))

should do it for you... you may have to add the holes() suboption to the by() option, if there are unpopulated age-ses cells. For example:

. histogram headroom, by(foreign rep78, cols(5) holes(6 7) )

does this for the much-analyzed auto data.

Nick Winter


At 02:22 PM 7/22/2004 -0400, you wrote:

Hi, good people

I'd like to look at a series of histograms using a 'matrix' approach. What I actually want to do is to look at a response variable over a number of strata on one sheet of A4. For example, I'd like to look blood pressure by age group (4 levels) and social-economic status (5 levels) (of course, this is a rather simplified description of the actual problem). I could, of course, print out 20 histograms, but is it possible to print all these histograms on one page (for our purposes, the general shape (and differences) is what's important rather than specific details (which are, of course, also of interest) So basically, what I'd like is a 'matrix' of histograms with on one axis 'age' and on the other 'social economic status'. Is this possible? Failing that, is it possible to have a one row 'vector' of histograms for the lowest age group with other vectors for each of the other age groups?

I look forward to hearing any reactions. And I thank you.

Regards

Joseph McDonnell

__________________________________________________________________
Switch to Netscape Internet Service.
As low as $9.95 a month -- Sign up today at http://isp.netscape.com/register

Netscape. Just the Net You Need.

New! Netscape Toolbar for Internet Explorer
Search from anywhere on the Web and block those annoying pop-ups.
Download now at http://channels.netscape.com/ns/search/install.jsp
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
--------------------------------------------------------
Nicholas Winter 607.255.8819 t
Assistant Professor 607.255.4530 f
Department of Government [email protected] e
308 White Hall falcon.arts.cornell.edu/nw53 w
Cornell University
Ithaca, NY 14853-4601

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index