Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: scatterplot with equation line
From
Scott Merryman <[email protected]>
To
[email protected]
Subject
Re: st: scatterplot with equation line
Date
Fri, 1 Nov 2013 09:24:12 -0500
See -help twoway function-
For example:
sysuse auto
scatter price mpg || function y = 11000 - 400*x + 5*x^2, range(10 40)
Scott
On Fri, Nov 1, 2013 at 9:17 AM, Alice Guerra <[email protected]> wrote:
> Dear Statalists,
>
> how can I do a scatterplot with a specific equation line?
>
> In particular, I would like to plot a scatter with a regression line
> that does not derive from an OLS, but from a dummy regression (so, I
> cannot use lfit).
>
> Thank you for your help and for your time
>
> Best regards
>
> Alice Guerra
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/