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

st: RE: Fixed intercept in linear regression, How?


From   "Li, Wenjun" <WLi1@Lifespan.org>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Fixed intercept in linear regression, How?
Date   Mon, 26 Aug 2002 14:20:11 -0400

How about 

(y-1) = b*x

and fit a regression model without constant?


Wenjun Li
Biostatistics Research Center
Tufts-New England Medical Center
750 Washington Street, #63
Boston, MA 02111
Tel (617) 636 1603  Fax (617) 636 5560 

		-----Original Message-----
		From:	Meng Lu [mailto:menglu@uclink.berkeley.edu]
		Sent:	Monday, August 26, 2002 2:18 PM
		To:	statalist@hsphsun2.harvard.edu
		Subject:	st: Fixed intercept in linear regression,
How?

		Hi all,

		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.

		Any idea?

		Best Regards,
		 
		Meng Lu <menglu@uclink.berkeley.edu>

		*
		*   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/
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index