Notice: On March 31, it was **announced** that Statalist is moving from an email list to a **forum**. The old list will shut down on April 23, and its replacement, **statalist.org** is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

From |
Maarten Buis <maartenlbuis@gmail.com> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: theory reg vs. qreg |

Date |
Mon, 29 Apr 2013 14:15:01 +0200 |

On Mon, Apr 29, 2013 at 2:08 PM, Kasal Roman wrote: > Later I will put it here more detailed but its quite clear that on the > same dataset with a simple regression we get: > > Y1=Y2 when replaced "a2" for "mean(x)" in the equation Let me give you a simple counter example: *------------------ begin example ------------------ sysuse auto, clear reg gear_ratio reg price mpg sum mpg, meanonly di _b[_cons] + r(mean)*_b[mpg] *------------------- end example ------------------- * (For more on examples I sent to the Statalist see: * http://www.maartenbuis.nl/example_faq ) I am using the same dataset (auto.dta), but when I replace a2 with the mean(mpg) I get the mean price, and this (trivially) is not the same as the mean gear ratio. So your statement is only true if you are using the same dependent variable. Since you are using different symbols for the dependent variable in both models we have to assume you are using different dependent variables, and thus that your statement is trivially wrong. -- Maarten --------------------------------- Maarten L. Buis WZB Reichpietschufer 50 10785 Berlin Germany http://www.maartenbuis.nl --------------------------------- * * 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/

**Follow-Ups**:**st: Labels and pie charts***From:*"Patrick J. Flaherty" <repho@pipeline.com>

**References**:**st: theory reg vs. qreg***From:*Kasal Roman <kasalroman@gmail.com>

**Re: st: theory reg vs. qreg***From:*Nick Cox <njcoxstata@gmail.com>

**Re: st: theory reg vs. qreg***From:*Kasal Roman <kasalroman@gmail.com>

**Re: st: theory reg vs. qreg***From:*Nick Cox <njcoxstata@gmail.com>

**Re: st: theory reg vs. qreg***From:*Kasal Roman <kasalroman@gmail.com>

**Re: st: theory reg vs. qreg***From:*Nick Cox <njcoxstata@gmail.com>

**Re: st: theory reg vs. qreg***From:*Kasal Roman <kasalroman@gmail.com>

**Re: st: theory reg vs. qreg***From:*David Hoaglin <dchoaglin@gmail.com>

**Re: st: theory reg vs. qreg***From:*Kasal Roman <kasalroman@gmail.com>

- Prev by Date:
**Re: st: theory reg vs. qreg** - Next by Date:
**Re: st: theory reg vs. qreg** - Previous by thread:
**Re: st: theory reg vs. qreg** - Next by thread:
**st: Labels and pie charts** - Index(es):