Jonckheere-Terpstra test of equal distributions against ordered alternatives. Equivalent to
DescTools::JonckheereTerpstraTest() in R. Computes JonckheereTerpstraTest(x, g, alternative, exact) (with g
an ordered factor) or, with variant: "clinfun", clinfun's jonckheere.test(x, g, alternative) (whose
two-sided p-value is 2 min(p_increasing, p_decreasing, 0.5); DescTools caps it at 1 instead of 0.5). Pairs with a missing value are dropped (with variant: "clinfun", also those with an infinite value, as clinfun does).
Jonckheere-Terpstra test of equal distributions against ordered alternatives. Equivalent to
DescTools::JonckheereTerpstraTest()in R. ComputesJonckheereTerpstraTest(x, g, alternative, exact)(withgan ordered factor) or, withvariant: "clinfun", clinfun'sjonckheere.test(x, g, alternative)(whose two-sided p-value is2 min(p_increasing, p_decreasing, 0.5); DescTools caps it at 1 instead of 0.5). Pairs with a missing value are dropped (withvariant: "clinfun", also those with an infinite value, as clinfun does).