Method document
Sample size to estimate multinomial odds ratios per standard deviation
How many participants are needed to estimate, for a nominal outcome of three or more categories, the odds ratio per standard deviation of a numerical predictor for each category against a reference category, from multinomial logistic regression, within a chosen factor. Allows for other covariates. Covers non-response.
https://statwisely.com/methods/precision-multinomial-or-per-sd/
When to use it
- A nominal outcome, such as the choice among three treatments or a diagnosis among several, related to a measured predictor.
Not for
- Ordered categories. Use the odds ratio per SD, which uses the ordering.
- Showing that any association exists. Use the multinomial logistic test under “Detect an effect”.
Notation
- Number of participants
- Shares of the reference category and of category j at the predictor’s mean
- Precision factor: each interval runs from OR / f to OR × f
- Share of the predictor’s variance explained by the other covariates
- Per-participant variance of category j’s log odds ratio per SD
- Standard normal quantile for confidence 1 − α (1.960 for 95%)
- Non-response rate
Formulas
Small effects: a closed form
With no effect the slopes of a multinomial logit have covariance W⁻¹, W = diag(p) − pp′ over the non-reference categories, whose diagonal is 1/pⱼ + 1/p₀ [1]. The category needing most participants sets the size. Simultaneous intervals split α across the C − 1 categories.
At expected odds ratios
Given the expected odds ratios, the multinomial-logit information is integrated over a standard-normal predictor by Gauss–Hermite quadrature, with z = (1, x).
Non-response
The number to approach so that n respond. Applied last, after any clustering.
Parameters
Confidence level
Values: 90%, 95% or 99%
95% is the convention in health research. A higher level widens the interval, so the same margin needs a larger sample.
Precision factor
Values: Above 1
The same factor for every category’s odds ratio.
Category shares at the predictor’s mean, reference first
Values: At least three, each above 0, adding to 1
A small reference category makes every comparison imprecise; choose a common one.
Expected odds ratios per SDOptional
Values: One per non-reference category, each above 0
Leave empty to plan as if the effects were small.
R² of the predictor on the other covariatesOptional
Values: At least 0 and below 1
0 with no other covariates.
Simultaneous intervals across categoriesOptional
Values: On or off
Turn on when the categories will be read together.
Expected non-response rateOptional
Values: 0% up to, but not including, 100%
The share of people approached who will not take part; use the response rate of a comparable study. Approaching more people restores the number of respondents, not their representativeness: if non-responders differ, the estimate can still be biased.
Assumptions
- Participants are independent, the predictor is approximately normal, and each category’s log odds against the reference change linearly with it (independence of irrelevant alternatives).
- Non-response is unrelated to the outcome.
Worked examples
Three categories, small effects
Shares of 50%, 30% and 20%: the third category needs most, 1/0.2 + 1/0.5 = 7, so n = 3.8415 × 7 / (ln 1.5)² = 163.6, rounded up to 164.
Sample size: 164
Open this example in the calculatorPlanning at the expected effects
Expecting odds ratios of 1.5 and 1.3 per SD: n = 174.
Sample size: 174
Open this example in the calculatorBoth intervals together
Splitting α across the two comparisons: n = 214.
Sample size: 214
Open this example in the calculatorValidation
- Every worked example on this page is recomputed by the StatWisely engine whenever the software is built. If a number or formula here stopped matching the calculator, the release would be stopped until this document was corrected.
- At no effect the quadrature reproduces 1/pⱼ + 1/p₀ exactly. In R, nnet::multinom fitted to simulated samples at the planned sizes gave a median factor of 1.515 for the widest interval against a target of 1.5, at no effect and at odds ratios of 1.5 and 1.3. An independent R integration of the information reproduces the engine’s sizes.
How to cite
StatWisely. Sample size to estimate multinomial odds ratios per standard deviation. Method document, engine version 1.0.0, reviewed 2026-10-04. https://statwisely.com/methods/precision-multinomial-or-per-sd/
Cite the original references for the formulas your design uses as well.
References
- 1.Agresti A. Categorical Data Analysis. 3rd ed. Hoboken, NJ: John Wiley & Sons; 2013.