Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: label graphs


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   RE: st: label graphs
Date   Fri, 22 Dec 2006 19:06:10 -0000

Others have interpreted the question differently, 
but my guess is that you need to use frequency weights. 

By the way, it is a distraction to give examples
that are not legal syntax. 

histogram column_1 [fw=column_2] 

Nick 
[email protected] 

Lucy Shum
 
> Maybe my initial question is better illustrated as follows:
> 
> Column 1   Column 2
> 1		4			
> 3		10
> 4		21
> 5		4
> 6		3
> 
> So, I want to graph the frequency which is represented by 
> Column 2, but the
> x-axis to be expressed by figures in column 1. 
> 
> Currently, when I put in .tw hist column 2, by(column 1)it gives me 5
> individual graphs. What I would like to get is one single 
> graph, column 1 as
> the x-axis label with the 'frequency' to be expressed by 
> figures in column
> 2. Do-able?

*
*   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