Statalist The Stata Listserver


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

Re: st: Scatter Diagram with trend line


From   Robert A Yaffee <[email protected]>
To   [email protected]
Subject   Re: st: Scatter Diagram with trend line
Date   Mon, 08 May 2006 10:32:38 -0400

Jagath,
   Yes you can.  See the graphical command below.

twoway (scatter oil year)  (lfit oil year if s1973 !=0)  ///
(lfit oil year if s1973==0), ///
title(US Oil Production before and after 1973) ///
ytitle(Production in Quadrillian BTU) ///
xline(1973) text(13 1972 "1973", orientation(vertical))

    Bob Yaffee


Robert A. Yaffee, Ph.D.
Research Professor
Shirley M. Ehrenkranz
School of Social Work
New York University

home address:
Apt 19-W
2100 Linwood Ave.
Fort Lee, NJ
07024-3171
Phone: 201-242-3824
Fax: 201-242-3825
[email protected]

----- Original Message -----
From: Ronnie Babigumira <[email protected]>
Date: Monday, May 8, 2006 3:32 am
Subject: Re: st: Scatter Diagram with trend line

> -findit scatter- (btw, it helps if you mention what version of 
> Stata you are using as there are some differences in the 
> syntax especially for graphs)
> 
> Jagath Dissanayake wrote:
> > Hi,
> > Can you please let me know how to draw a scatter diagram with a 
> trend line on it?
> > Jagath
> > 
> > *
> > *   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/
> 
*
*   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