signTest

Sign test for differences between paired values. This is a very robust but very low power test. Alternatives are Alt.less, meaning elements of before are typically less than corresponding elements of after, Alt.greater, meaning elements of before are typically greater than elements of after, and Alt.twoSided, meaning that there is a significant difference in either direction.

  1. TestRes signTest(T before, U after, Alt alt = Alt.twoSided)
    signTest
    (
    T
    U
    )
    if (
    doubleInput!(T) &&
    &&
    is(typeof(before.front < after.front) == bool)
    )
  2. TestRes signTest(T data, double mu, Alt alt = Alt.twoSided)

Return Value

Type: TestRes

A TestRes with the proportion of elements of before that were greater than the corresponding element of after, and the P-value against the given alternative.

Meta