search for: selgmented

Displaying 2 results from an estimated 2 matches for "selgmented".

Did you mean: segmented
2024 Jul 26
1
Automatic Knot selection in Piecewise linear splines
...ution, maybe just for completeness: Similar to "earth", "segmented" also fits piecewise linear relationships with the number of breakpoints being selected by the AIC or BIC (recommended). #code (example and code from Martin Maechler previous email) library(segmented) o<-selgmented(y, ~x, Kmax=20, type="bic", msg=TRUE) plot(o, add=TRUE) lines(o, col=2) #the approx CI for the breakpoints confint(o) #the estimated breakpoints (with CI's) slope(o) #the estimated slopes (with CI's) However segmented appears to be less efficient than earth (although with reas...
2024 Jul 16
2
Automatic Knot selection in Piecewise linear splines
>>>>> Anupam Tyagi >>>>> on Tue, 9 Jul 2024 16:16:43 +0530 writes: > How can I do automatic knot selection while fitting piecewise linear > splines to two variables x and y? Which package to use to do it simply? I > also want to visualize the splines (and the scatter plot) with a graph. > Anupam NB: linear splines, i.e. piecewise