Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Alfonso Sánchez-Peñalver <alfonso.statalist@gmail.com> |
To | Stata List <statalist@hsphsun2.harvard.edu> |
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 <scott.merryman@gmail.com> 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 <alice.guerra88@gmail.com> 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/