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

st: RE: Re: Avplots


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Re: Avplots
Date   Thu, 6 Feb 2003 09:12:22 -0000

Alejandro Riaņo

> > My question is very simple..., it regards avplots, we
> > I do it after running a simple regress the range in
> > the graph axes dont correspond to the ones of my
> > variables. Do you know how can i create a scatterplot
> > of my data with the regression line included so I can
> > overcome this problem ?

Scott Merryman

> -twoway lfit mpg weight || scatter mpg weight-   will
> produce a very nice graph.
>
> or, with confidence intervals:
> twoway lfitci mpg weight  || scatter mpg weight
>
> As an alternative (Stata 7) you could use Nick Cox's -sparl-

Another alternative in Stata 7, in some ways more general
than -sparl-, is -regplot-. Both on SSC.

Nick
n.j.cox@durham.ac.uk

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