Contrast coefficients for the slope of a quantitative factor
Source:R/statpsych2.R
      slope.contrast.RdComputes the contrast coefficients that are needed to estimate the slope of a line in a one-factor design with a quantitative factor.
Examples
x <- c(25, 50, 75, 100)
slope.contrast(x)
#>      Coefficient
#> [1,]      -0.012
#> [2,]      -0.004
#> [3,]       0.004
#> [4,]       0.012
# Should return:
#      Coefficient
# [1,]      -0.012
# [2,]      -0.004
# [3,]       0.004
# [4,]       0.012