Re: [R] Predictions from the Segmented Package

2013-02-12 Thread oli tills
z > To: oti...@hotmail.com > CC: r-help@r-project.org > Subject: Re: [R] Predictions from the Segmented Package > > > > Since no-one else seems to have responded to your question, I'll > chip in with my two bob's worth: > > (1) You can probably get what you

Re: [R] Predictions from the Segmented Package

2013-02-06 Thread Rolf Turner
Since no-one else seems to have responded to your question, I'll chip in with my two bob's worth: (1) You can probably get what you might want to get from predict() by looking at X$fitted.values --- where X is the object returned by segmented(). (2) But predict() is probably the wrong way to

[R] Predictions from the Segmented Package

2013-02-05 Thread oli tills
Hi, I would like to calculate the area under segmented regression lines (single breakpoints). I had thought that I could do this using the predict() function to ascertain some key x y values in order to determine the dimensions for two trapezoids (under each segment of my regression). However,