[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Fixed intercept in linear regression, How?
on 26/8/02 7:17 PM, Meng Lu at firstname.lastname@example.org wrote:
> I'd like to do a linear regression with the intercept fixed at 1, i.e.,
> y = 1 + bx
> I found it's quite simple in SAS and splus to do so, but I was not able
> to figure out how to fullfill this in stata.
If you consider the model you are testing, you are saying that y-1 is a
function of bx. So -replace- x with x-1, then use the -noconstant- option in
Stata to force omission of the intercept.
Of course, although you may be sure that the intercept is exactly 1, you
should check this assumption with the data. Using the -test- command, you
test _cons = 1
Measurement bias can mean that regressions that should not have an intercept
actually do. That's life...
Ronan M Conroy (email@example.com)
Lecturer in Biostatistics
Royal College of Surgeons
Dublin 2, Ireland
+353 1 402 2431 (fax 2329)
* For searches and help try: