平均順位の全対比較の Dunn 検定です。R の dunn.test::dunn.test(x, g, method, altp) と同等です。段階的な調整では、各 p 値に、その順位に応じた係数を掛ける (または変換する) うえで、1 を上限とします。dunn.test と同じく、単調性は強制しません (pAdjust とは異なります)。等しい p 値は、並び順で最初のものの順位を共有するため、同じ調整後の値になります (dunn.test は比較の順に同順位をつけます)。
dunn.test::dunn.test(x, g, method, altp)
pAdjust
const x = [1.2, 2.3, 1.8, 2.9, 3.1, 3.6, 4.0, 4.4, 5.2];const g = ["a", "a", "a", "b", "b", "b", "c", "c", "c"];const r = dunnTest(x, g, { method: "bonferroni" });r.comparisons; // ["a - b", "a - c", "b - c"]r.PAdjusted; // [0.26956874231849964, 0.01093553713730346, 0.26956874231849964] コピー
const x = [1.2, 2.3, 1.8, 2.9, 3.1, 3.6, 4.0, 4.4, 5.2];const g = ["a", "a", "a", "b", "b", "b", "c", "c", "c"];const r = dunnTest(x, g, { method: "bonferroni" });r.comparisons; // ["a - b", "a - c", "b - c"]r.PAdjusted; // [0.26956874231849964, 0.01093553713730346, 0.26956874231849964]
平均順位の全対比較の Dunn 検定です。R の
dunn.test::dunn.test(x, g, method, altp)と同等です。段階的な調整では、各 p 値に、その順位に応じた係数を掛ける (または変換する) うえで、1 を上限とします。dunn.test と同じく、単調性は強制しません (pAdjustとは異なります)。等しい p 値は、並び順で最初のものの順位を共有するため、同じ調整後の値になります (dunn.test は比較の順に同順位をつけます)。