N-of-1 study designer

Plan a self-experiment that compares two conditions in random order, print the protocol, then enter your results to see the within-person difference and what it can and cannot show.

Educational reference, not medical advice. The Journal of Biohacking does not recommend any compound, dose or practice; discuss medical decisions with a qualified clinician. This designer does not suggest what to test. The intervention, the comparison and any dose or schedule come from your clinician, and a prescribed medicine is changed only with them. Your plan and results stay in this browser and are included in the My research backup.

Design

Each block holds one period of the comparison (A) and one of the intervention (B), in an order drawn at random for that block. This designer does not suggest what to test. The intervention, the comparison and any dose or schedule come from your clinician, and a prescribed medicine is changed only with them.

The question

For your own list, for example the question in a few words.

What you want to find out, in one sentence.

In your own words, as agreed with your clinician.

What you do in the comparison periods, as agreed with your clinician.

The outcome

One outcome, chosen before the first day.

The instrument or scale, the time of day and who records it.

The unit you will enter results in.

Set before the first day, in the unit above.

Periods and order

The same seed and number of blocks always give the same order. Write it on the protocol so the order can be checked.

Safeguards

Who knows which condition is running, and how you will keep that from colouring the record.

Signs or results that end the study at once.

A null result is a result. Say now how you will write it down.

Checklist from the handbook

The handbook's pre-registration checks, drawn from the CENT 2015 reporting guideline. Tick each one you have done.

Schedule

Periods in calendar order
BlockPeriodConditionDaysDatesDays scored
The schedule appears here when scripts run.

Protocol

N-of-1 study protocol

The protocol appears here when scripts run.

Educational reference, not medical advice. The Journal of Biohacking does not recommend any compound, dose or practice; discuss medical decisions with a qualified clinician. This designer does not suggest what to test. The intervention, the comparison and any dose or schedule come from your clinician, and a prescribed medicine is changed only with them. Planned with the N-of-1 study designer, journalofbiohacking.com/n-of-1-designer/. Reporting items follow the handbook's checklist and the CENT 2015 statement (Vohra S, Shamseer L, Sampson M, et al. CONSORT extension for reporting N-of-1 trials (CENT) 2015 Statement. J Clin Epidemiol. 2016;76:9-17. PMID 26272792).

Results

For each period, enter one value: the average of the outcome over its scored days, in the unit you chose. Leave a block blank until both of its periods are done.

The result fields appear here when scripts run.

What this can and cannot show

Saved studies are listed here when scripts run.

Method

Random order. Each block is one period of A and one of B. The order inside each block, A first or B first, is drawn with the mulberry32 generator started from the seed shown, so anyone with the seed and the number of blocks can draw the same order again.

The difference. For each complete block the designer takes B minus A. The estimate is the mean of those differences, with a 95% interval from the t distribution on one fewer degrees of freedom than there are blocks: a paired comparison. Read as a simple Bayesian estimate with the reference prior (flat on the mean, and on the log of the spread), the 95% credible interval has the same limits. An interval needs at least 2 complete blocks.

Randomisation test. If the intervention made no difference, swapping A and B inside a block would only flip the sign of that block's difference. The designer works through every pattern of signs and reports the share whose mean difference is at least as far from zero as yours: an exact two-sided p value that relies on the random order, not on a bell-shaped spread.

Order check. When some blocks ran A first and others B first, half the gap between the two groups' mean differences estimates a steady change from the first period of a block to the second, and their average is the difference with that change taken out.

The design and its reporting follow the handbook and the CENT 2015 statement: Vohra S, Shamseer L, Sampson M, et al. CONSORT extension for reporting N-of-1 trials (CENT) 2015 Statement. J Clin Epidemiol. 2016;76:9-17. PubMed PMID 26272792.