Skip to content
Prev 306804 / 398506 Next

Annotate a segmented linear regression plot

On Oct 2, 2012, at 3:38 PM, Ben Harrison wrote:

            
I guess it depends on what you mean by "the location of segments". It's easy enough to retrun the x-values for the knots:

    o$psi[ , "Est."]

I do not see a `predicted.segmented` function, so might need to construct separate lm.predict estimates for values between the pairs of x-values if you meant you wanted the y-values for the knots.