Is there a way to generate figure (twoway lfit) with constant excluded in the regression?
Using two simple variables, I did a regression without constant term (which is identical measuring the correlation).
The regression result is as below. The estimated coefficient is negative, indicating negative correlation.

When I do twoway lfit, however, the figure shows positive relation. I believe that this is because lfit includes constant term.

To double check my guess, I did the regression again using constant term included. As expected, the estimated coefficient is positive in this case.

In short, is there a way to perform "twoway lift" with constant term excluded? Is there user written ado command?
Thanks for your help a lot.
Using two simple variables, I did a regression without constant term (which is identical measuring the correlation).
The regression result is as below. The estimated coefficient is negative, indicating negative correlation.
When I do twoway lfit, however, the figure shows positive relation. I believe that this is because lfit includes constant term.
To double check my guess, I did the regression again using constant term included. As expected, the estimated coefficient is positive in this case.
In short, is there a way to perform "twoway lift" with constant term excluded? Is there user written ado command?
Thanks for your help a lot.
Comment