Skip to content
Prev 279793 / 398506 Next

simple fit

R. Michael Weylandt <michael.weylandt <at> gmail.com> writes:
This seems backward.  The OP has the slope and wants the intercept.
Or:

  lm (y~1,offset=a*x,data= ...) 

or

  lm(y-a*x~1,data=...)  [not sure this will evaluate the full
expresson on the LHS but it might]