[R] Linear Regression with lm Forcing the Slope to Equal 1
Christofer
bogaso.christofer at gmail.com
Sun Nov 18 04:15:41 CET 2007
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: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org] On
Behalf Of Tom La Bone
Sent: Sunday, November 18, 2007 7:00 AM
To: r-help at 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 at 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.
More information about the R-help
mailing list