Re: [R] piecewise regression and lm() question

2015-02-11 Thread Duncan Murdoch
On 11/02/2015 4:30 PM, Goldschneider, Jill wrote: > I was playing with some examples of piecewise regression using lm() and have > come across a behavior I'm uncertain about. > Below is simple 3-segment dataset. I compare predicted output of a model > created by one call to lm() to that of 3 mod

[R] piecewise regression and lm() question

2015-02-11 Thread Goldschneider, Jill
I was playing with some examples of piecewise regression using lm() and have come across a behavior I'm uncertain about. Below is simple 3-segment dataset. I compare predicted output of a model created by one call to lm() to that of 3 models created by 3 calls to lm(). In case A and B, the resul