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

st: RE: RE: Line Graph


From   "Carter Ivan Rees" <CRees1@uwyo.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: Line Graph
Date   Thu, 21 Apr 2005 10:39:22 -0600

Scott,

Thank you, worked like a charm.

Carter

-----Original Message-----
From: Scott Merryman [mailto:smerryman@kc.rr.com] 
Sent: Thursday, April 21, 2005 10:33 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: RE: Line Graph

Here is one way:

. sysuse auto
(1978 Automobile Data)

. gen mpg2 = mpg

. collapse (count) mpg2 , by(mpg)

. line mpg2 mpg


Scott

> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of Carter Ivan Rees
> Sent: Thursday, April 21, 2005 11:10 AM
> To: statalist@hsphsun2.harvard.edu
> Subject: st: Line Graph
> 
> A simple and somewhat embarrassing question about a line graph.  I
would
> like to make a simple line graph of an age distribution.  Y-axis a
count
> or percentage and the x-axis my age variable.
> 
> How is this done?
> 
> Thanks.
> 
> Carter
> 


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


*
*   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–2025 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index