Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

Re: st: theory reg vs. qreg

From   Nick Cox <>
To   "" <>
Subject   Re: st: theory reg vs. qreg
Date   Mon, 29 Apr 2013 11:39:32 +0100

What you want is not at all clear. In fact, you seem confused about some basics.

 For example, if you fit a regression


it's not true that a2 = mean(x).

What do you mean by "deactivate" a coefficient?

-qreg y-

works; it's just a round-about way of calculating the median of -y-,
which you can do directly with -summarize-.


On 29 April 2013 11:23, Kasal Roman <> wrote:
> Please,
> the "reg" command gives me these results:
> A) Y1=b1
> B) Y2=a2*x+b2
> then
> Y2=mean(x)*x+b2=b1=Y1
> How is it with "qreg"? How could I deactivate the "a2" coefficient
> without a need to estimate two functions with the "qreg" command? How
> to get the result of "b1" just with the B) method through the "qreg"
> command? I know neither mean(x) nor median(x) fit.
*   For searches and help try:

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