Ask Mallard
Core concept

Where sizing inputs come from

4 min read

Sizing combines clinical choices with evidence about your data; record the source and uncertainty of each input.

Fit

When it matters, and when it does not

It matters when

  • You need a target difference, event risk, spread, correlation or loss to follow-up assumption.
  • A published calculation uses a different population, outcome definition or follow-up period.

It matters less when

Before you start

What to check in your study

Decide these first
  1. The estimate and planning goalsummaryMeasureframingChoose a clinically worthwhile contrast or an acceptable interval width. State the error rate and target power when testing an effect.
  2. Evidence for each numerical assumptionUse comparable studies or local records. Label an unsupported value as assumed and explain how you will check it.
  3. Dependence and missing outcomesMatch the correlation to the design. For paired means, use the spread of within-person differences, not the spread of single measurements.
It rests on these
  1. The source population and measurements resemble your planned study.How to check: Compare eligibility, care, measurement scale and horizon. Examine a plausible range rather than trusting one estimate.
  2. A pilot estimate is uncertain.How to check: Small pilots give noisy estimates of spread and event risk. Plan sensitivity to that uncertainty.

Plain language

How it works

Clinical importance sets the target contrast; data inform nuisance inputs such as spread and baseline risk. Neither is whatever makes recruitment affordable. A prior study needs the same outcome definition and a comparable horizon.

How it works

The precision diagram holds the event proportion near one half and assumes independent observations. Other proportions, clustering and nonresponse change the width. Mallard checks required calculator inputs, but passing those checks does not establish where the values came from.

The decision in view
The half-width of a 95 percent Wilson interval for a proportion near 50 percent shrinks as the sample grows, roughly halving each time the sample size quadruples: about 13.4 percentage points at 50, 9.6 at 100, 6.9 at 200, 4.9 at 400 and 3.5 at 800.Precision for a proportion near 50%: interval half-width against sample size25501002004008000 pts5 pts10 pts15 pts20 ptsSample size (log scale)Half-width of the 95% interval13.4 pts9.6 pts6.9 pts4.9 pts3.5 ptsWilson interval. The app's precision calculator uses the simpler Wald width: a little wider for smallsamples, 13.9 points against 13.4 at 50, and the same to one decimal from 200 on. Clustering, nonresponseand a proportion far from 50% all change the width; a planned width is a target under stated assumptions.
Worked arithmetic. The inputs are round illustrative numbers, not results from any study; the outputs are calculated from them.

Worked example

A worked example

Invented for illustration
Setting
A team wants 80 complete outcome records.
Question
How many people should it approach under a simple loss assumption?
Approach
Assume 80 in 100 enrolled people provide the outcome. Divide the needed 80 by 0.8.
Result
Enrolling 100 people gives an expected 80 complete records, or 80 in 100. This is a planning expectation.
What it means
The count adjusts for expected loss only. It does not repair bias if missing outcomes depend on unseen values.

In practice

Recent studies PubMed search · not vetted

Searching PubMed…

Watch out

Common mistakes

The one to remember

A precise sample size can rest on uncertain inputs. Do not choose a larger effect, smaller spread or lower dropout just to fit the available sample.

  • Copying the observed treatment effect from a small pilot.Instead: Justify the target difference clinically. Use pilot data cautiously for spread, recruitment and other uncertain inputs.
  • Treating a typed number as an established fact.Instead: Keep its source, population and uncertainty beside it. Recalculate over plausible values.

Inside Mallard

How Mallard uses this

Mallard asks for inputs needed by the selected calculation. Missing required values can prevent a headline sample size.

No Mallard code example points to this page.
Atlas node concept.sizing_inputs, the id a plan cue records.

Related Learn pages

Related designs and methods

Evidence

Sources & further reading

  1. The size of a pilot study for a clinical trial should be calculated in relation to considerations of precision and efficiency. (opens in a new tab) · J Clin Epidemiol · doi 10.1016/j.jclinepi.2011.07.011
  2. Reporting of sample size calculation in randomised controlled trials: review. (opens in a new tab) · BMJ · doi 10.1136/bmj.b1732
Prepared with AI assistance. Primary methodological and empirical source records were checked by PMID for title, authors, year and DOI on 2026-11-06. These sources support the general methods; tests pin the separate claims about Mallard. No independent professional approval is claimed.
Last source review: 2026-11-06
AI-generated educational content
Mallard uses reputable methodological and reporting sources, but this material may contain errors or omit important context. Verify important methodological decisions with the cited sources and, when appropriate, a qualified research methodologist or statistician.