GloNeuro

Experiment Design Studio

The Experiment Design Studio supports the planning of a study in nine stages, from the research question to the sample size and analysis. It draws the design, calculates the number of units required, checks the plan for common weaknesses and produces a protocol that can be shared. The underlying concepts, including the difference between association and causation, are explained in Research design.

Open the studio
Saved in this browser

Statistical methods

Sample sizes for t-tests and ANOVA, covering two groups, paired designs, and one-way and repeated-measures ANOVA, are found by computing exact power from the noncentral F distribution, the approach used by G*Power (Faul et al., 2007); one-sided t-tests use the upper tail of the noncentral t distribution (Lenth, 1989). Effect sizes d, dz and f follow Cohen (1988). The values reproduce G*Power’s results for standard cases: for example, 64 per group for d = 0.5, 34 pairs for dz = 0.5 and 53 per group for f = 0.25 with three groups.

For three or more conditions measured in the same units, the power calculation uses the correlation between repeated measurements and assumes sphericity. Where sphericity is doubtful, a sample slightly larger than the number shown is advisable.

When a rank-based test such as the Mann–Whitney or Wilcoxon test is planned, the sample size is increased using an asymptotic relative efficiency of 0.864, the lowest value over all distributions for a shift between groups (Hodges and Lehmann, 1956; G*Power 3.1 manual). For paired data this also assumes roughly symmetric differences. The size is never below the smallest at which the rank test can reach significance at all, and with fewer than 20 units per group the page warns that the test can still fall short of the planned power.

Sample sizes for correlations use the Fisher z approximation (Fisher, 1915), those for two proportions the normal approximation with pooled variance (Fleiss et al., 2003), and those for time-to-event outcomes Schoenfeld’s formula for the number of events with equal allocation (Schoenfeld, 1983). These approximations can differ slightly from exact methods.

The review applies a set of rules to the answers given. The rules are drawn from published standards for rigorous design and reporting: randomisation, blinding, sample-size justification and data handling, the experimental unit, sex as a biological variable, pre-registration and trial registration.

Allocation lists use permuted blocks (Matts and Lachin, 1988), drawn from the browser’s cryptographic random number generator. The options for multiple comparisons are the Bonferroni (Dunn, 1961), Holm (Holm, 1979) and Benjamini–Hochberg (Benjamini and Hochberg, 1995) procedures.

The studio’s calculations have been checked against SciPy and statsmodels in more than 1.1 million random designs, and in 2.48 million simulated experiments at the recommended sample sizes.

All answers are stored only in the browser and are not sent to GloNeuro or to any other party. The File menu saves a copy of a plan or opens a saved one.

References

    Last updated