Multiple Comparison p-Value Adjuster (Bonferroni, Holm, FDR)
Paste a list of p-values with labels and compare six correction methods side by side: adjusted values, which tests survive at your alpha, the working for each method and a plot.
Funziona nel tuo browser. I tuoi file non lasciano mai il dispositivo. Scopri come verificarlo
…
Come si usa
- 1Paste p-values
Enter one per line with an optional label, or import a CSV file.
- 2Set alpha and m
Choose the significance level and the total number of tests.
- 3Compare methods
See how many tests survive each correction and which ones.
- 4Sort the table
Click a heading to sort by label, rank or any adjusted column.
- 5Check the working
Pick a method to see ranks, multipliers and critical values, and view the plot.
- 6Export
Download the adjusted values as CSV, print the report or copy the summary.
Informazioni su questo strumento
Every test at the 5% level carries a one-in-twenty chance of a false positive. Run twenty tests on data with no real effects and you should expect one significant result by chance alone. Multiple comparison corrections deal with this by making each test stricter. They fall into two families. Bonferroni, Šidák, Holm and Hochberg control the family-wise error rate, the chance of even one false positive among all the tests. Benjamini-Hochberg and Benjamini-Yekutieli control the false discovery rate, the expected share of false positives among the results you call significant, which keeps more power when many tests are run, as in gene screens or large surveys. This adjuster reads p-values one per line with an optional label, tab-separated columns copied from a spreadsheet, a CSV file or several numbers on one line, and values written as <0.001 are taken as 0.001. It returns adjusted p-values for all six methods, matching R's p.adjust, so you compare each one directly with alpha. A summary shows how many tests survive each method and lists them. The main table sorts by any column and lets you hide methods. The steps tab shows the rank, multiplier, running maximum or minimum and critical value for the method you choose, and a plot draws the sorted p-values against the Bonferroni, Holm and Benjamini-Hochberg thresholds on a log or linear scale. You can also set the total number of tests higher than the number pasted.
Choosing a method
Holm is always at least as powerful as Bonferroni and makes no assumptions, so there is little reason to use plain Bonferroni except for simplicity. Hochberg is a little more powerful again but needs the tests to be independent or positively related. Use Benjamini-Hochberg when you are screening many hypotheses and can accept a known share of false leads, and Benjamini-Yekutieli when the tests may be negatively dependent. Decide on the method before looking at the results.
Worked example
The ten-outcome sample has raw p-values from 0.001 to 0.216, and five of them are below 0.05. Bonferroni multiplies each by 10, so only blood pressure (0.001 becomes 0.01) survives. Holm multiplies the smallest by 10, the next by 9 and so on, with a running maximum: cholesterol becomes 0.008 × 9 = 0.072, and again only one test survives. Hochberg agrees. Benjamini-Hochberg multiplies the i-th smallest by 10/i: blood pressure stays at 0.01 and cholesterol becomes 0.008 × 10/2 = 0.04, below 0.05, so two results survive; weight, waist and HbA1c all end up at 0.084. Benjamini-Yekutieli multiplies by a further 2.929 and keeps one. For the 15 p-values in Benjamini and Hochberg's 1995 paper, Bonferroni and Holm keep three and Benjamini-Hochberg keeps four.
Limits
Corrections assume you report every test you ran; leaving out the dull ones and adjusting the rest does not fix selective reporting, so set m to the true number of tests. The methods do not account for the size of effects or for planned and unplanned comparisons, and they are not a substitute for a pre-registered analysis plan.
Esempio svolto
Ten outcomes with five raw p-values under 0.05: Bonferroni and Holm keep one, Benjamini-Hochberg keeps two.
In breve
- Categoria: Matematica e scienze
- Funziona nel browser, senza registrazione né caricamento.
- Le informazioni che inserisci restano sul tuo dispositivo.
- Disponibile in inglese.
- Contenuto rivisto l'ultima volta il:
- Fonte ufficiale: Benjamini and Hochberg, Controlling the false discovery rate, JRSS B 57 (1995)
Domande frequenti
What is the difference between FWER and FDR?
The family-wise error rate is the chance of at least one false positive among all tests. The false discovery rate is the expected share of false positives among the tests you declare significant. FDR control is less strict and keeps more power when many tests are run.
Why can an adjusted p-value be 1?
Adjusted values are capped at 1 because a probability cannot be larger. A p-value of 0.3 multiplied by 10 tests would be 3, which is shown as 1.
Should I compare the adjusted p-values with alpha or with a smaller threshold?
With alpha. The adjustment already builds the correction in, so an adjusted p-value of 0.04 is significant at 0.05.
What if I only have some of the p-values?
Set the total number of tests m to the number you actually ran. The tool then adjusts the pasted values as if the others were present and larger.
Why do Holm and Hochberg give different numbers?
Holm steps down from the smallest p and stops at the first failure; Hochberg steps up from the largest and accepts all smaller ones once one passes. Hochberg rejects at least as many hypotheses but needs stronger assumptions.
Do the results match R?
Yes. The six methods follow the formulas in R's p.adjust function, including ties and the option to set n larger than the number of values.
