Re: [R] Interception point between two lines

2010-01-05 Thread Uwe Ligges
On 05.01.2010 14:37, FMH wrote: Dear All, Let mod2 and mod3 are two regression equations representing two distinct lines and i'm keen to find the intreception point between these two lines and the following are part of the codes. m1<- as.matrix(rbind(coef(mod2), coef(mod3)))

[R] Interception point between two lines

2010-01-05 Thread FMH
Dear All, Let mod2 and mod3 are two regression equations representing two distinct lines and i'm keen to find the intreception point between these two lines and the following are part of the codes.     m1 <- as.matrix(rbind(coef(mod2), coef(mod3))) a <- cbind(c(1,1), -m1