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

st: fitting a regression line


From   Anuja <[email protected]>
To   [email protected]
Subject   st: fitting a regression line
Date   Wed, 29 Dec 2004 11:22:01 -0800 (PST)

Hi Statausers,

I am regressing Y on X, and then plotting the yhat
(the predicted values as the x axis ) and Y using 
twoway (scatter  pconsp road) (lfit pconsp road)

However I get a straight line, whereas the scatter
shows me a downward sloping trend. Any help will be
uselful in the plotting a line in accordance with the
scatter.

Many thanks,
Anuja

=====
WE ARE ALL IN THE GUTTER,SOME OF US LOOK AT THE STARS.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
*
*   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