Bookmark and Share

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   Alfonso Sánchez-Peñalver <[email protected]>
To   Stata List <[email protected]>
Subject   Re: st: scatterplot with equation line
Date   Fri, 1 Nov 2013 10:34:26 -0400

Hi,

you could always predict the expected value of the response variable after your regression and plot that as the line.

Best,

Alfonso

On Nov 1, 2013, at 10:24 AM, Scott Merryman <[email protected]> wrote:

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


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


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index