Pairwise Slopes

 

Menu location: Data_Transforming and Deriving_Pairwise_Slopes.

 

This function creates a column of all (n(n-1)/2) pairwise slopes from a pair of columns (Y the response variable and X the predictor variable):

 

X Y
1 2
2 3
3 6

 

Slopes (X, Y)

1

2

3

 

All possible (n(n-1)/2) XiYi...(i=1 to n) are compared with XjYj...(j=i to n) where i<>j. Slope is (Yi-Yj)/(Xi-Xj).

 

These values form intermediate steps in a number of nonparametric statistical methods. For example, in nonparametric linear regression (Theil type: Conover, 1999) the median slope would be 2 in the usual Y = bX +C, where C is the median intercept (i.e. median[Y - median b * X]).

 

StatsDirect will calculate the median slope and its confidence interval for you if you select this option when prompted. The results are stored in the column label of the relevant list of pairwise slopes. The confidence interval is calculated using the distribution of Kendall's T as described in Conover (Conover, 1999). Please note that the results may differ slightly from Conover's text because StatsDirect calculates the inverse of Kendall's T more accurately than the routines used to calculate Best's widely quoted 1974 table for this statistic.

 

A fuller nonparametric linear regression function is given in the nonparametric methods and regression sections.

 

 

Copyright © 2000-2019 StatsDirect Limited, all rights reserved. Download a free trial here.