One way of doing I think is to do it by 'hand'. In ls we minimizes SSE w.r.t. mu and beta. However in your case, you can concentrate only on minimizing SSE w.r.t. beta
Regards, -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom La Bone Sent: Sunday, November 18, 2007 7:00 AM To: r-help@r-project.org Subject: [R] Linear Regression with lm Forcing the Slope to Equal 1 Is there a way to do a linear regression with lm (having one predictor variable) and constrain the slope of the line to equal 1? Tom -- View this message in context: http://www.nabble.com/Linear-Regression-with-lm-Forcing-the-Slope-to-Equal-1 -tf4828804.html#a13815432 Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.