Developer(s) | Institute for Land Reclamation and Improvement (ILRI) |
---|---|

Written in | Delphi |

Operating system | Microsoft Windows |

Available in | English |

Type | Statistical software |

License | Proprietary Freeware |

Website | SegReg |

In statistics and data analysis, the application software **SegReg** is a free and user-friendly tool for linear segmented regression analysis to determine the breakpoint where the relation between the dependent variable and the independent variable changes abruptly.^{[1]}

SegReg permits the introduction of one or two independent variables. When two variables are used, it first determines the relation between the dependent variable and the most influential independent variable, where after it finds the relation between the residuals and the second independent variable. Residuals are the deviations of observed values of the dependent variable from the values obtained by segmented regression on the first independent variable.

The breakpoint is found numerically by adopting a series tentative breakpoints and performing a linear regression at both sides of them. The tentative breakpoint that provides the largest coefficient of determination (as a parameter for the fit of the regression lines to the observed data values) is selected as the true breakpoint. To assure that the lines at both sides of the breakpoint intersect each other exactly at the breakpoint, SegReg employs two methods and selects the method giving the best fit.

SegReg recognizes many types of relations and selects the ultimate type on the basis of statistical criteria like the significance of the regression coefficients. The SegReg output provides statistical confidence belts of the regression lines and a confidence block for the breakpoint.^{[2]} The confidence level can be selected as 90%, 95% and 98% of certainty.

To complete the confidence statements, SegReg provides an analysis of variance and an Anova table.^{[3]}

During the input phase, the user can indicate a preference for or an exclusion of a certain type. The preference for a certain type is only accepted when it is statistically significant, even when the significance of another type is higher.

ILRI ^{[4]} provides examples of application to magnitudes like crop yield, watertable depth, and soil salinity.

A list of publications in which SegReg is used can be consulted.^{[5]}

When only one independent variable is present, the results may look like:

- X < BP ==> Y = A
_{1}.X + B_{1}+ R_{Y} - X > BP ==> Y = A
_{2}.X + B_{2}+ R_{Y}

where BP is the breakpoint, Y is the dependent variable, X the independent variable, A the regression coefficient, B the regression constant, and R_{Y} the residual of Y.
When two independent variables are present, the results may look like:

- X < BP
_{X}==> Y = A_{1}.X + B_{1}+ R_{Y} - X > BP
_{X}==> Y = A_{2}.X + B_{2}+ R_{Y} - Z < BP
_{Z}==> R_{Y}= C_{1}.Z + D_{1} - Z > BP
_{Z}==> R_{Y}= C_{2}.Z + D_{2}

where, additionally, BP_{X} is BP of X, BP_{Z} is BP of Z, Z is the second independent variable, C is the regression coefficient, and D the regression constant for the regression of R_{Y} on Z.

Substituting the expressions of R_{Y} in the second set of equations into the first set yields:

- X < BP
_{X}and Z < BP_{Z}==> Y = A_{1}.X + C_{1}.Z + E_{1} - X < BP
_{X}and Z > BP_{Z}==> Y = A_{1}.X + C_{2}.Z + E_{2} - X > BP
_{X}and Z < BP_{Z}==> Y = A_{2}.X + C_{1}.Z + E_{3} - X > BP
_{X}and Z > BP_{Z}==> Y = A_{2}.X + C_{2}.Z + E_{4}

where E_{1} = B_{1}+D_{1}, E_{2} = B_{1}+D_{2}, E_{3} = B_{2}+D_{1}, and E_{4} = B_{2}+D_{2} .

As an alternative to regressions at both sides of the breakpoint (threshold), the method of partial regression can be used to find the longest possible horizontal stretch with insignificant regression coefficient, outside of which there is a definite slope with a significant regression coefficient. The alternative method can be used for segmented regressions of Type 3 and Type 4 when it is the intention to detect a tolerance level of the dependent variable for varying quantities of the independent, explanatory, variable (also called predictor).^{[6]}

The attached figure concerns the same data as shown in the blue graph in the infobox at the top of this page. Here, the wheat crop has a tolerance for soil salinity up to the level of EC=7.1 dS/m instead of 4.6 in the blue figure. However, the fit of the data beyond the threshold is not as well as in the blue figure that has been made using the principle of minimization of the sum of squares of deviations of the observed values from the regression lines over the whole domain of explanatory variable X (i.e. maximization of the coefficient of determination), while the partial regression is designed only to find the point where the horizontal trend changes into a sloping trend.

**^**Statistical principles of segmented regression with break-point**^**determination of the confidence interval of the break-point**^**F-tests in the analysis of variance for segmented linear regression**^***Drainage research in farmers' fields: analysis of data*, 2002. Contribution to the project “Liquid Gold” of the International Institute for Land Reclamation and Improvement (ILRI), Wageningen, The Netherlands. [1]**^**List of publications using SegReg**^**Free software for partial regression