41.33 Case 7: how many subjects, from the Fisher information
What you will learn
- Compute a Wald power and a required sample size by hand from one standard error.
- Read the two information matrices (reduced and full) and see why they give answers that differ five-fold.
- Use a scenario grid (effect size, dropout, sampling schedule) and recognise the patterns it must follow.
- Separate the precision of the tested effect from the precision of the other parameters, and read both.
Prerequisites: Chapter 30, power and design, Chapter 31, the power command, and 41.31.
The question: a study will test whether clearance scales with weight with an exponent of 0.75. How many subjects give an 80 % chance of detecting it?
The evidence: Chapter 30 bundles fim_full and fim_reduced, and Chapter 31 bundles fim_scenario_grid and settings_workflow. All start from the base model of the shared example (preset_analytic, page 41.31): typical clearance 3.34 L/h, volume 43.7 L, absorption 1.10 h⁻¹, a proportional error of 17.6 % and an additive error of 0.0235 mg/L, with between-subject variances of 0.186 and 0.109.
The calculation in five lines
nlmx power --method fim does not simulate. It computes the expected Fisher information of the design, inverts it to get the standard error of each parameter (the Cramér–Rao bound), and converts the standard error of the tested effect into a power with a Wald test. The command:
nlmx power run101.ctl --ext run101.ext --method fim \
--sample-sizes 20,40,80,160 --test "CL~WT=0.75" --target-power 0.8 \
--fim-kind reduced --fim-approximation fo --seed 30001
For a true effect θ = 0.75 against the null of 0 at the two-sided 5 % level:
- the standard error at 20 subjects, from the inverted information, is SE₂₀ = 0.39327;
- the test statistic is z = θ / SE = 0.75 / 0.39327 = 1.907 (its square, 3.637, is the non-centrality);
- the power is Φ(|z| − 1.96) + Φ(−|z| − 1.96) = Φ(−0.053) + Φ(−3.87) = 0.479 + 0.0001 = 0.479;
- information is proportional to the number of subjects, so SE falls as 1/√N: at 40 subjects SE = 0.39327 × √(20/40) = 0.2781, z = 2.697, power 0.769;
- the sample size for power 0.8 needs z = 1.960 + 0.842 = 2.802, that is N = 20 × (2.802/1.907)² = 43.16, rounded up to 44.
All of it is in the stored tables (fim_power.csv, sample_size.csv): standard errors 0.393, 0.278, 0.197, 0.139; non-centralities 3.64, 7.27, 14.55, 29.10; powers 0.479, 0.769, 0.968, 0.9997; and 43.16 → 44 subjects. Every number in the result is reproducible with a calculator, which is the reason to prefer the method for a first look: nothing in it is random.
The same design, a different matrix
The second bundle runs the same command with --fim-kind full. Its answer:
| Matrix | SE at N = 20 | Power at N = 20 | Power at N = 40 | N for 80 % |
|---|---|---|---|---|
| Reduced | 0.393 | 0.479 | 0.769 | 43.16 → 44 |
| Full | 0.172 | 0.992 | 1.000 | 8.30 → 9 |
Nine subjects against forty-four, for the same model, data design and hypothesis. The two matrices differ in one term. The reduced information treats the variance of an observation as not depending on the parameters that move the mean; the full information includes that dependence. In this model the residual error is partly proportional, so the variance of an observation depends on its predicted concentration, and therefore on the weight exponent: the full matrix counts the information that the spread of the data carries about the exponent, in addition to the information in the mean. In a first-order approximation that second route is open; the real nonlinear estimator may not be able to use it, and the book's rule (Chapter 30, page 30.21) is to use reduced for planning a covariate effect and the full matrix only as a diagnostic. The 4.9-fold gap is the warning: a sample size that depends on an assumption this strongly is a statement about the assumption.
The precision table shows where the gap comes from. For the tested effect:
| N | Reduced SE | Reduced RSE | Full SE | Full RSE |
|---|---|---|---|---|
| 20 | 0.393 | 52.4 % | 0.172 | 23.0 % |
| 80 | 0.197 | 26.2 % | 0.086 | 11.5 % |
with the stored limit of 30 %: at 80 subjects the reduced matrix just meets it. Page 41.34 uses simulation to ask which of the two a real estimator follows.
The largest RSE is not the tested effect
Both summaries print a line for each scenario: largest expected RSE 232.8 % (THETA(5)), falling to 116.4 % at 80 subjects and 82.3 % at 160. THETA(5) is the additive residual error (0.0235 mg/L), not the covariate. The design gives it relative standard errors above the 30 % limit at every sample size tried: a parameter the design cannot estimate. That is a separate finding from the power of the weight test, and it is easy to miss when only the power column is read. It has a design reading and a modelling reading: the sampling does not include many low concentrations (where an additive error shows), and the model may not need the term. The second reading agrees with the project built from the data of Case 5 (page 41.31), where the additive error was estimated at 10⁻⁵, which is zero.
The scenario grid
The fim_scenario_grid bundle asks four questions at once, for two tests (weight on clearance, weight on volume):
--sample-sizes 30,60,120 --dropout 0,0.2 --effect-multipliers 0.5,1 \
--schedule sparse=2,23.9,100 \
--test "CL~WT=0.75;name=WT on CL" --test "V~WT=1;name=WT on V"
That is 3 sizes × 2 dropout levels × 2 effect sizes × 2 schedules (the default rich schedule and a sparse one with three samples, at 2, 23.9 and 100 h) = 24 scenarios, each with two tests. The sample size needed for 80 % power:
| Effect | Schedule | Dropout | N, WT on CL | N, WT on V |
|---|---|---|---|---|
| × 1 (full) | rich | 0 | 44 | 15 |
| × 1 | rich | 20 % | 44 | 15 |
| × 1 | sparse | 0 | 45 | 17 |
| × 1 | sparse | 20 % | 47 | 18 |
| × 0.5 (half) | rich | 0 | 173 | 59 |
| × 0.5 | rich | 20 % | 176 | 60 |
| × 0.5 | sparse | 0 | 179 | 68 |
| × 0.5 | sparse | 20 % | 187 | 69 |
Three regularities are worth checking against the formula, because a table that breaks them has a setting problem.
- Halving the effect quadruples the sample size. The non-centrality is (θ/SE)², and in this table SE barely changes with θ, so N scales almost exactly as 1/θ². 43.16 × 4 = 172.6, and the table has 173. The same for volume (15 → 59).
- Dropout costs little here. With the dropout treatment of Chapter 30 (page 30.25), a dropout of 20 % truncates part of the subjects' sampling rather than removing the subjects, and the table shows it: 44 → 44 at the full effect and 173 → 176 at half with the rich schedule, 179 → 187 at worst (sparse schedule). A reader who expected 44/0.8 = 55 has read dropout as removing a fifth of the subjects, which it does not do.
- The sparse schedule hurts volume more than clearance. Three samples (two of them late) leave the volume exponent at 17–18 subjects against 15, and clearance at 45–47 against 44, which is consistent with the late samples carrying the clearance information (the area under the curve) and the early ones the volume.
The grid is also where the largest expected RSE explodes: for the sparse schedule it runs from 567 % to 1 620 % (again the additive error), against 122 % to 298 % for the rich one. A design that nearly halves the sampling does not change the power of the weight test, and removes the ability to estimate the error model. Power for one effect is not the quality of the design.
Changing the target
settings_workflow runs the same analysis from a settings file (nlmx power -c worked.power) and overrides two options on the command line, --sample-sizes 30,60 and --target-power 0.9. The effect is as predicted: the required information is (1.960 + 1.282)² = 10.51 instead of 7.85, and with 0.1818 of non-centrality per subject (3.637/20) that is 10.51/0.1818 = 57.8, rounded to 58 subjects against 44. The result carries the settings actually used (power_settings_used.power), which is the file to archive with it.
The decision
| Question | Evidence | Decision | Reversible? |
|---|---|---|---|
| How many subjects for 80 % power on CL~WT = 0.75? | reduced FIM: 43.16 → 44; full FIM: 8.30 → 9 | plan with 44 (the reduced answer), test with simulation (page 41.34) | no once the study starts |
| Is a halved effect covered? | 173–187 subjects | not by a study of 44; a decision on the effect to be detected | no |
| Does dropout matter? | 44 → 44; 173 → 176 (rich schedule) | no | yes |
| Is the design adequate for the error model? | additive-error RSE 82–233 % at every N | no; fix the additive term, or add low-concentration samples | no |
What this case does not show
The first-order FIM approximation (--fim-approximation fo) is an approximation of the information of the real estimator, which is why the next page checks it. All values are for a point true effect (0.75) and one null (0). A design robust to the truth being somewhere between 0.5 and 1 needs the effect multipliers of the grid, not a single point.
Review checklist
- Can you recompute one power and one sample size in the table from its standard error?
- Do you say which information matrix (reduced or full) a sample size comes from, and why?
- Have you read the RSE of the other parameters, not only the power of the tested effect?
- Do the grid's rows obey the scaling laws (1/θ², more subjects with less information)?
Navigation
See the previous page, the next page and the complete case-study reference.