[R] How to find the interception point of two linear fitted model in R?

2009-10-21 Thread FMH
Dear All, Let have 10 pair of observations, as shown below. ## x - 1:10 y - c(1,3,2,4,5,10,13,15,19,22) plot(x,y) ## Two fitted  models, with ranges of [1,5] and [5,10], can be easily fitted separately by lm function as shown below:

Re: [R] How to find the interception point of two linear fitted model in R?

2009-10-21 Thread Paul Johnson
On Wed, Oct 21, 2009 at 12:09 PM, FMH kagba2...@yahoo.com wrote: Dear All, Let have 10 pair of observations, as shown below. ## x - 1:10 y - c(1,3,2,4,5,10,13,15,19,22) plot(x,y) ## Two fitted  models, with ranges of [1,5] and [5,10], can be