Consider the one-degree-freedom test Lβ = 0, where L is a row vector of constants. The test statistic for a t test for this hypothesis is:
where s is the root mean square error. We reject the hypothesis at significance level α if the absolute value of the test statistic exceeds the 1 - α/2 quantile of the t distribution, t1-α/2, with degrees of freedom equal to those for error.
In a situation where the test of interest is a comparison of two group means, the literature talks about the least significant difference (LSD). In the special case where the model contains only one nominal variable, the formula for testing a single linear contrast reduces to the formula for the LSD:

Help created on 7/12/2018