[R] Piecewise linear regression with RMA

2007-02-28 Thread amsegura
Hi, I'm working in crustacean maturity, using breakpoint analysis. I used total length and Carapace length (linearly related) to find a break point, wich is actually the size at maturity. Both sizes are measured with error, so Modell II aplies. Piecewise regression uses model I to find

Re: [R] Piecewise Linear Regression

2005-05-31 Thread Achim Zeileis
On Mon, 30 May 2005 19:38:58 -0400 (EDT) Abhyuday Mandal wrote: Hi, I need to fit a piecewise linear regression. x = c(6.25,6.25,12.50,12.50,18.75,25.00,25.00,25.00,31.25,31.25,37.50,37. 50,50.00,50.00,62.50,62.50,75.00,75.00,75.00,100.00,100.00) y =

[R] Piecewise Linear Regression

2005-05-30 Thread Abhyuday Mandal
Hi, I need to fit a piecewise linear regression. x = c(6.25,6.25,12.50,12.50,18.75,25.00,25.00,25.00,31.25,31.25,37.50,37.50,50.00,50.00,62.50,62.50,75.00,75.00,75.00,100.00,100.00) y =

Re: [R] Piecewise Linear Regression

2005-05-30 Thread Sean Davis
, May 30, 2005 7:38 PM Subject: [R] Piecewise Linear Regression Hi, I need to fit a piecewise linear regression. x = c(6.25,6.25,12.50,12.50,18.75,25.00,25.00,25.00,31.25,31.25,37.50,37.50,50.00,50.00,62.50,62.50,75.00,75.00,75.00,100.00,100.00) y = c

Re: [R] Piecewise Linear Regression

2005-05-30 Thread roger koenker
It is conventional to fit piecewise linear models by assuming Gaussian error and using least squares methods, but one can argue that median regression provides a more robust approach to this problem. You might consider the following fit: x = c