Hi, I am trying to do a linear regression but I want one of my variables to not generate a coefficient. E.g. what I want to do is fit for y=a+b+c but forcing the coefficient of b to be 1. Is this possible?
I have been fitting y-b=a+c but I have found that when I recalculate y it is not close to the value. I have assumed that by fitting y-b then the y part has become insignificant. In case it makes a difference I have been using lm rather than glm. Thanks in advance, Joe -- View this message in context: http://r.789695.n4.nabble.com/help-with-regression-tp3695245p3695245.html 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.