Skip to content

Methods and checksMethods

How every result is reached and what it was checked against, app by app.

Methods and checks pages

Power and sample size

stats_power_sample_size is a tool of the Drybench MCP server. It runs the same engine and reporting rules as Drybench Assay.

What it answers

Required: test (two-sample, paired, one-sample, anova, proportions); solveFor (power, n); alpha (0.01, 0.05, 0.1). Plans a study: statistical power at n per group, or smallest integer n per group reaching target power (never a bare ceiling), for two-sided t tests, one-way ANOVA (planned group means), or two proportions. Returns the matching R call. Invalid inputs, zero effects, or unreachable power are withheld with their codes, and a power that cannot be computed as a number is withheld as POWER_UNRESOLVED.

Limits:

  • A C50 estimated here describes this assay under these conditions and is not a binding constant.
  • It computes from the inputs it receives. It does not check the person's data, design or sample.
  • 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.

Research and education software; not for diagnosis or treatment decisions.

Not medical advice. Nothing here is advice about any medicine, treatment or condition, and nothing here is an assessment of any person's variant, sample or molecule. Decisions made with it are yours.

Not a forecast. Stages, scores, rates, rankings and similarities shown here describe records as they stand, or historical averages; they are not a forecast for any molecule, trial, drug, company or target.

What this page can and cannot show

Weakest level among this tool's methods: Checked against a reference. Reference kind not recorded for 1 of 1 methods.

Not fully recorded, and not independently reviewed. Items marked "Not recorded" are missing from this project's records for the version named. Apart from any worked example shown, the cases and their values are not printed, so a reader cannot re-run these checks. No independent scientist has yet reviewed these methods or checks.

Open Drybench Assay · Drybench Assay: methods and checks · What the levels mean · Every assistant tool

Inputs

An omitted input takes the default its description states; the reply's inputsReceived shows what was given. Any input not listed here is refused.

  • test (string, required): Planned analysis: 'two-sample', 'paired', 'one-sample', 'anova', or 'proportions'. One of two-sample, paired, one-sample, anova, proportions.
  • solveFor (string, required): 'power' for power at n per group, or 'n' for smallest integer n per group reaching target. One of power, n.
  • n (integer, optional): Required when solveFor is 'power': planned sample size per group (pairs for paired).
  • target (number, optional): Required when solveFor is 'n': target power (0.8, 0.85, 0.9, or 0.95). One of 0.8, 0.85, 0.9, 0.95.
  • alpha (number, required): Two-sided significance level: 0.01, 0.05, or 0.1. One of 0.01, 0.05, 0.1.
  • delta (number, optional): t tests: difference to detect in measurement unit (paired: mean difference).
  • sd (number, optional): t tests and ANOVA: assumed positive standard deviation in measurement unit.
  • means (array of number, optional): ANOVA: planned group means (2 to 10 groups) in measurement unit.
  • p1 (number, optional): Proportions: first group proportion strictly in (0, 1).
  • p2 (number, optional): Proportions: second group proportion strictly in (0, 1).

What it withholds or refuses

A refusal, a withheld value or another named status is an answer: the reply gives the reason and no number in its place; an absent value is not zero. Invalid input means nothing ran.

Refusal codes: not recorded for stats_power_sample_size.

Values it withholds: not recorded for stats_power_sample_size.

Every reply adds: Assumes the stated effect and SD are true.

How to cite a number from it

Every reply carries a cite line. It names, in order: the tool and the server version; each method the call went through, with its version and level (and the limit beside a level where the method's record narrows it); the receipt, the first 12 characters of the hashes of the arguments and of the result; and the address where its methods are described. Quote it with any number taken from the reply.

The receipt identifies a computation; it is not a signature. It holds no time, so the same arguments on the same server and method versions give the same receipt, and anyone can call the tool again and compare; a later method version can change the output hash.

An example

The values asked and the values answered, computed by this tool when this page was built:

Asked with

  • test: two-sample
  • solveFor: n
  • target: 0.8
  • alpha: 0.05
  • delta: 1
  • sd: 1.2

It answered (computed):

  • test: two-sample
  • solveFor: n

The reply carries more values than are shown here.

Its cite line:

stats_power_sample_size, server 1.0.0; power-sample-size@1.0.2 (Checked against a reference); receipt d81886e8239f/713dfa4aa981; methods https://www.drybench.com/methods/assay; page https://www.drybench.com/methods/tools/stats-power-sample-size. Quote this line with any number taken from this reply.

Methods

Every method and reference the tool's replies cite, with its version and level. A reply names the methods that call went through.

Power and sample size for t-tests, one-way ANOVA and two proportions (two-sided)

  • Method: power-sample-size@1.0.2
  • Level: Checked against a reference. Reference kind: not recorded. This level uses the apps' wider definition on the levels page.
  • Reference: Lenth RV. Appl Stat 1989;38:185-189 (AS 243); Lenth RV. Appl Stat 1987;36:241-244 (AS 226); Frick H. Appl Stat 1990;39:311-312 (AS R84).
  • How it was checked: Checked against R 4.4.3 power.t.test, power.anova.test and power.prop.test (strict = FALSE; n solved at tolerance 1e-10) on 26 cases: power within 1e-8 (t, proportions) and 1e-7 (ANOVA), computed n within 1e-6 relative, the smallest integer n, flags and withheld states exact; SciPy nct, ncf and norm agree on all 19 cases with a number (2026-10-13).
  • What was not checked: not recorded for power-sample-size@1.0.2. Its absence does not mean everything was checked.
  • Method, sources and checks
  • On Drybench Assay's methods page: Power and sample size

No independent scientist has yet reviewed these checks. What the levels mean.

Changes to its methods

Where it runs

The local MCP server serves this tool; the hosted MCP connection does not.

Methods and checks