[R] bilinear regression

From: Crabb, David <David.Crabb.1_at_city.ac.uk>
Date: Wed 19 Jul 2006 - 03:36:17 EST

I think this is an easy question, but I would be grateful for any advice on how to implement this in R.

I simply have a response variable (y) that I am trying to predict with one explanatory variable (x) but the shape of the scatter plot is distinctly bilinear. It would be best described by two straight lines. Is there a way of fitting a linear model to give me a bilinear fit and (more importantly) automatically determine the 'cut off' point? I would also want some statistic to convince myself that the bilinear fit is better.

Many thanks for your help.


Dr. David Crabb
Department of Optometry and Visual Science, City University,
Northampton Square, London EC1V OHB
Tel: 44 207 040 0191 d.crabb@city.ac.uk http://www.city.ac.uk/optometry/html/david_crabb.html

R-help@stat.math.ethz.ch 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. Received on Wed Jul 19 04:57:51 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 19 Jul 2006 - 06:21:29 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.