Documentation

Install

Download the free edition from the product page, or the full edition from your order page (the SUN-… key opens the downloads). Packages contain a single programme, n80 (n80.exe on Windows), to run as is: nothing to install.

curl -fL https://n80.toolguild.online/get/<your-key>/macos -o n80.zip   # full edition
unzip n80.zip && cd n80-* && chmod +x n80 && ./n80

macOS: if the system blocks a browser download, right-click > Open, or xattr -d com.apple.quarantine n80. The programme is not notarised. Windows: SmartScreen may ask for confirmation (unsigned programme); the Windows build is compiled but has not yet been verified on a real machine. Linux: static binary, any distribution.

First calculation

Run ./n80: the application opens in your browser (http://127.0.0.1:8080, reachable from your machine only). Pick a procedure in the left list, for example Two-sample t-test.

  1. Choose what you want: sample size, power or the minimum detectable effect.
  2. Enter the design (level α, target power, one- or two-sided, dropout) then the assumptions (difference, standard deviation…).
  3. The result updates as you type: the number, the protocol paragraph, the power curve and the sensitivity tables.
Example: two groups, difference 5, SD 10, α = 0.05, power 80 % → 64 per group (128 in total), achieved power 80.15 %.

Reading a result

  • Sample size: size of group 1; Group 2 and Total when the design is unbalanced (allocation ratio n2/n1).
  • To enrol: the sample size divided by (1 − dropout), rounded up.
  • Achieved power: the real power at the retained size (always ≥ the target, since n is an integer).
  • Sawtooth: for exact tests (binomial, Fisher, McNemar) power is not monotone in n. n80 gives the first n reaching the target and the smallest n that stays above it afterwards; use the second to be safe.
  • Approximations: flagged in each procedure's “Method” field and in the validation dossier.

Paragraph and report

Under the result, the protocol paragraph packs every assumption into a ready-to-paste sentence (“Copy” button). The full edition adds the protocol report: assumptions, results, sensitivity tables, method and references, on a page you print to PDF from the browser. Save study keeps the parameters in the studies/ folder.

Command line

n80 list                                   # all procedures
n80 info ttest-2                           # parameter keys and defaults
n80 calc ttest-2 diff=5 sd=10              # sample size
n80 calc ttest-2 diff=5 sd=10 --solve power n=40
n80 calc ttest-2 diff=5 --solve effect n=40
n80 calc prop-2 p1=0.3 p2=0.5 method=4 --json
n80 calc ttest-2 diff=5 sd=10 --report report.html --lang en

Parameter keys are those of the catalogue. --json writes one object on standard output (fields metric, n, n2, ntotal, enrolled, lines, curve…); the exit code is 0 on success. From Python: json.loads(subprocess.check_output(["n80","calc","ttest-2","diff=5","sd=10","--json"])).

Batch processing

A CSV with columns proc, solve (n, power or effect), then parameter keys:

proc,solve,power,alpha,diff,sd,p1,p2,n,ratio
ttest-2,n,0.8,0.05,5,10,,,,1
prop-2,power,,0.05,,,0.30,0.50,60,1
n80 batch scenarios.csv results.csv

The output file repeats your columns and adds ok, metric, n, n2, total, to_enrol, effect. Empty cells take the procedure's default.

Choosing a procedure

You compare…Procedure
two means, independent groupsttest-2 (unequal variances: ttest-welch; non-normal: mann-whitney)
before / after on the same subjectsttest-paired
three or more groupsanova-1; repeated measures: rm-anova; factorial or covariates: glm-f
two proportions (response rates)prop-2 (Fisher exact included); paired data: mcnemar
a treatment is not worse than another (margin)noninf-means, noninf-props
two equivalent formulationstost-means, be-2x2 (bioequivalence)
time to an eventlogrank-events, logrank-accrual, cox
a correlation, a variancecorr-1, corr-2, var-1, var-2
a diagnostic testroc-auc, sens-spec; measurement reliability: icc
a survey or a precisionsurvey, ci-mean, ci-prop
a conformity demonstration (95/95)success-run, wilks

Glossary

  • α: the risk of wrongly concluding there is an effect (type I error). 0.05 by convention; 0.025 one-sided in non-inferiority.
  • Power (1 − β): probability of detecting the effect if it exists.
  • Cohen's d: mean difference divided by the SD; 0.2 small, 0.5 medium, 0.8 large.
  • f, f², w: Cohen's effect sizes for ANOVA, regression and chi-square.
  • Odds ratio, relative risk: ratios of odds and risks between two proportions.
  • Hazard ratio: ratio of instantaneous risks in survival analysis.
  • ICC (clusters): intracluster correlation; the design effect is 1 + (m − 1)·ICC.
  • TOST: two one-sided tests, the standard equivalence method.

Licence and updates

A purchased key opens the download of versions published in the twelve months after purchase, on up to five machines. The programme checks nothing: a copy works, but receives no updates without a key. Your order page gives the curl commands for each system; it is the only way to find your key again: keep its address. Details are in the licence and the terms of sale.

Troubleshooting

  • “Port already in use”: n80 app 8181 picks another port.
  • The browser does not open: n80 app --no-open then open the printed address.
  • “Value out of range”: a parameter is outside its domain (a proportion outside 0–1, a zero SD…).
  • “The target cannot be reached”: the effect is too small for the target power at a reasonable sample size.
  • A result differs from another package: compare the method (pooled or not, continuity correction, exact or normal). Send us the case: we will add it to the validation dossier.