# Adjust many p-values

`stats_adjust_p_values` · Runs: Built, not hosted · Level: Checked against a reference: R 4.4.3 p.adjust

Adjusts many p-values for multiple testing and counts the tests at or below the chosen level.

Research and education software; not medical advice, and not for diagnosis or treatment decisions. It computes from the inputs it receives. It does not check the person's data, design or sample.

[Catalogue](https://www.drybench.com/mcp/catalogue) / [Statistics](https://www.drybench.com/mcp/catalogue/statistics)

[Ask your assistant](https://www.drybench.com/mcp/connect) · [Open in Drybench Assay](https://www.drybench.com/assay/app)

```cite
Adjust many p-values (stats_adjust_p_values), Drybench MCP server 1.0.0; p-value-adjustment@1.0.1 (Checked against a reference); https://www.drybench.com/mcp/tools/stats-adjust-p-values
```

## What it is

Required: method (BH, BY, holm, bonferroni); level (0.01, 0.05, 0.1). Adjusts p-values for multiple testing as R's p.adjust does and counts adjusted values at or below the stated level, at full precision. Values outside \[0, 1\], text cells or fewer than two finite p-values withhold the adjustment; nothing is clipped.

Field: [Statistics](https://www.drybench.com/mcp/catalogue/statistics). It is the same calculation as [Drybench Assay](https://www.drybench.com/assay/app), called by an AI assistant through the server.

## What it does

**You give**

- `tests` (required): One entry per test: exact numeric p-value (null for blank cell, left out and counted) and optional label.
- `method` (required): Multiple-testing method: 'BH', 'BY', 'holm', or 'bonferroni'.
- `level` (required): Threshold for the atOrBelow count: 0.01, 0.05, or 0.1.

**A request and its answer**

Asked with

- `method`: BH
- `level`: 0.05

It answered (computed)

- `method`: BH
- `threshold`: 0.05

Computed by this tool when the page was built. The steps between are not recorded, so this is not a worked example. The reply carries more values than are shown here. One answer to one request, not a reference value.

**Limits**

- Every computed number a reply returns, other than an integer or an exact decimal, is rounded once to 12 significant figures: to the nearest, a change of at most 5 × 10⁻¹² of its value, except that a lower bound is rounded down and an upper bound up, a change of less than 1 × 10⁻¹¹; the method computes, and decides any pass or fail, on the unrounded value.
- No other limit is recorded for this tool.

Every reply also carries its app's limits line: "A C50 estimated here describes this assay under these conditions and is not a binding constant."

### Every input, with its units

3 inputs

- `tests` (required): One entry per test: exact numeric p-value (null for blank cell, left out and counted) and optional label.
- `method` (required): Multiple-testing method: 'BH', 'BY', 'holm', or 'bonferroni'.
- `level` (required): Threshold for the atOrBelow count: 0.01, 0.05, or 0.1.

## The calculation

The method's equations, constants and worked example.

### [Benjamini–Hochberg, Benjamini–Yekutieli, Holm and Bonferroni adjustment](https://www.drybench.com/methods/m/p-value-adjustment/1.0.1)

`p-value-adjustment@1.0.1`

No equation is recorded for this version.

Kind of method: not recorded.

Worked example: not recorded for p-value-adjustment\@1.0.1.

## Sources

No source is recorded for this tool's methods.

Read by AI-assisted sessions. No person has checked these readings.

## How it is checked

**Level:** Checked against a reference.

**Checked against:** R 4.4.3 p.adjust (BH, BY, Holm, Bonferroni) on 10 cases of the 0.11.0 fixture, up to m = 10,000: adjusted p within 1e-12 relative, counts, m and withheld states exact (2026-10-13). R only; SciPy not run.

**Cases:** No case set is linked to this version.

**Hostile inputs:** Sent 88 malformed, extreme and misspelt calls. None broke it, and every call with an undeclared argument, or with text in place of a number or a true/false value, was declined with a reason. Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

**Same answer:** Called twice and with its arguments in another order, it gave the same result. Run 2026-11-12-2 of 12 November 2026, server 0.11.0.

**Not checked:** Not recorded. Its absence does not mean everything was checked.

No independent scientist has yet reviewed this.

### What this project's records still lack

5 things

- A case worked by hand from the source's equation for p-value-adjustment\@1.0.1.
- The equation for p-value-adjustment\@1.0.1.
- The constants with their sources for p-value-adjustment\@1.0.1.
- A case set linked to this version for p-value-adjustment\@1.0.1.
- A record of what was not checked for p-value-adjustment\@1.0.1.

### Cite a number from this tool

the cite line

Every reply carries a cite line naming the tool, the server version, each method with its version and level, and the receipt. Quote it with any number taken from the reply.

```cite
stats_adjust_p_values, server 1.0.0; p-value-adjustment@1.0.1 (Checked against a reference); receipt 1bebda4ca06a/5e461b9af76f; methods https://www.drybench.com/methods/assay; page https://www.drybench.com/methods/tools/stats-adjust-p-values. Quote this line with any number taken from this reply.
```

### Changes to its methods

1 change

- [18 November 2026, p-value-adjustment\@1.0.1](https://www.drybench.com/methods/corrections#2026-11-18-p-value-adjustment101-1): Every row supplied is read, so a null p counts as a blank wherever it sits, the last row included, and moving a blank changes neither the counts nor any adjusted p. The engine reads an editor's table only to its last entry when the caller says the table is an editor's, as the app's panel and export do. The method takes version 1.0.1, because blank and rowsUsed are returned fields that moved; no adjusted p and no count of tests moved, and the Assay app's reading (rows: "entered") is unchanged.
