Hi-
I'm gettting the following error message when trying to use the segmented
function to look for breakpoints in my data.
Error in segmented.glm(glm, seg.Z = ~segmentdist, psi = 2, control =
seg.control(display = F), :
(Some) estimated psi out of its range
Here are some real data and the models I'm calling which gives the error
above.
[1] 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5 5.0 5.5 6.0 6.5 7.0 7.5 8.0 8.5
9.0 9.5
lm<-lm(data=df, segmentdist~dal)
lm(formula = segmentdist ~ dal, data = df)
Coefficients:
(Intercept) dal
13.77564 -0.06682
seg<-segmented(lm, seg.Z=~segmentdist, psi=2,
control=seg.control(display=F), model.frame=T)
The range of the data I'm looking for breaks in is min=0, max=44.5, so I
don't understand how my psi=2 could be out of range.
Thanks for your help,
Tim