Documentation

A.16 Power and design: Fisher information, the non-central \(\chi^2\) and simulation–estimation

Two routes to power and sample size

What you will learn

  • Build the population Fisher information of a design from the model's first two moments, and read standard errors and RSEs from its inverse.
  • Convert an effect size and a standard error into a non-centrality parameter, a Wald power and a required sample size, and check the series by hand.
  • Describe the simulation–estimation (SSE) alternative: the tests, the summary metrics and the interpolation to a sample size, with their Monte Carlo precision.

Prerequisites: A.2, A.5, A.12 and Chapter 30.

Hypotheses and effect size

A hypothesis is a parameter whose true value is simulated and whose power is evaluated: a covariate effect added to a parameter, or a THETA of the model. With a true value \(\beta^\ast\) and a null value \(\beta_0\) (default 0), the effect-size multiplier \(m\) scales the distance from the null:

\[ \beta(m)=\beta_0+m\,(\beta^\ast-\beta_0). \]

A design scenario is a combination of sample size \(N\), dropout, effect multiplier and sampling schedule.

The Fisher information of a design

For a Gaussian model with mean \(\mu_i(\psi)\) and covariance \(V_i(\psi)\) of the observations of subject \(i\), the information about parameters \(p\) and \(q\) is

\[ F^{(i)}_{pq}=\frac{\partial\mu_i^{\mathsf T}}{\partial p}\,V_i^{-1}\,\frac{\partial\mu_i}{\partial q}+\frac12\operatorname{tr}\!\Bigl(V_i^{-1}\frac{\partial V_i}{\partial p}V_i^{-1}\frac{\partial V_i}{\partial q}\Bigr). \]

The first term is the information in the mean, the second the information in the covariance. For a nonlinear mixed-effects model the moments are obtained by linearising around \(\eta^\ast\) (\(=0\) for fo; draws from \(N(0,\Omega)\) for foce and focei), exactly as in page A.8:

\[ \mu_i=Y_i(\eta^\ast)-G_i\eta^\ast,\qquad V_i=G_i\Omega G_i^{\mathsf T}+\operatorname{diag}(V_{ij}). \]

Derivatives are central differences. The default reduced kind drops the second term for every parameter that moves the mean (as PopED's default does); full keeps it, and is optimistic for covariate effects. For \(N_a\) subjects in an arm with design pool \(P_a\), missing fraction missing_rate and dropout probability \(d\), the information of a scenario is the sum

\[ F=\sum_aN_a\overline F_a,\qquad\overline F_a=\frac{1-\text{missing\_rate}}{\lvert P_a\rvert}\sum_{i\in P_a}\Bigl[(1-d)F^{(i)}+d\cdot\frac15\sum_{u\in\{0.1,0.3,0.5,0.7,0.9\}}F^{(i)}_{\le u}\Bigr], \]

where \(F^{(i)}_{\le u}\) is the information of the subject with observations truncated at the fraction \(u\) of its span (the average over \(u\) is the expected information of a subject who drops out at a uniform time).

Then \(\widehat{\operatorname{Cov}}=F^{-1}\), \(\mathrm{SE}_k=\sqrt{[F^{-1}]_{kk}}\) and \(\mathrm{RSE}_k=100\,\mathrm{SE}_k/\lvert\text{value}_k\rvert\). A near-singular \(F\) is flagged.

A worked illustration: why more observations per subject has diminishing returns

The simplest population design. Each subject has \(n\) observations \(y_{ij}=\theta+\eta_i+\varepsilon_{ij}\), \(\eta_i\sim N(0,\omega^2)\), \(\varepsilon_{ij}\sim N(0,\sigma^2)\). Then \(\mu_i=\theta\mathbf 1\) and \(V_i=\sigma^2I+\omega^2\mathbf 1\mathbf 1^{\mathsf T}\), and the information about \(\theta\) (mean term only, as in the reduced kind) is, by the Woodbury identity of page A.2,

\[ F^{(i)}_{\theta\theta}=\mathbf 1^{\mathsf T}V_i^{-1}\mathbf 1=\frac{n}{\sigma^2+n\omega^2}. \]

With \(\omega^2=0.09\), \(\sigma^2=0.04\) and \(N=60\) subjects:

Observations per subject \(n\) \(F^{(i)}\) total \(F=60F^{(i)}\) \(\mathrm{SE}(\hat\theta)\)
1 7.692 461.5 0.0466
3 9.677 580.7 0.0415
6 10.345 620.7 0.0401
12 10.714 642.9 0.0394
\(\infty\) \(1/\omega^2=11.111\) 666.7 0.0387

Tripling the observations from 1 to 3 per subject lowers the SE by 11 %; going from 3 to 12 lowers it by a further 5 %; no number of observations goes below \(\omega/\sqrt N=0.0387\). The between-subject variability sets a floor on the precision of a population mean that only more subjects can lower. This is the quantitative reason that a design with many subjects and few samples can beat one with few subjects and many.

From information to power

For a hypothesis \(h\) with true value \(\beta(m)\), the Wald test statistic \(\bigl(\hat\beta-\beta_0\bigr)^2/\operatorname{Var}(\hat\beta)\) has, to the order of the approximation, a non-central \(\chi^2_1\) with non-centrality

\[ \lambda_h=\frac{\bigl(\beta(m)-\beta_0\bigr)^2}{[F^{-1}]_{hh}},\qquad \text{power}_{\text{Wald}}=P\bigl(\chi'^2_1(\lambda_h)>\chi^2_{1,1-\alpha}\bigr)=\sum_{k\ge0}e^{-\lambda_h/2}\frac{(\lambda_h/2)^k}{k!}\,P\bigl(\chi^2_{1+2k}>\chi^2_{1,1-\alpha}\bigr) \]

(the Poisson mixture of page A.5). Because information is proportional to the number of subjects, \(\lambda=\lambda_0N/N_0\), and the required sample size for a target power is

\[ N_{\text{req}}=N\,\frac{\lambda^\ast}{\lambda_h},\qquad\lambda^\ast:\ P\bigl(\chi'^2_1(\lambda^\ast)>\chi^2_{1,1-\alpha}\bigr)=\text{target power}. \]

A worked illustration

An effect of \(\beta^\ast=0.25\) with \(\mathrm{SE}=0.10\) at \(N_0=60\) subjects, \(\alpha=0.05\) (\(\chi^2_{1,0.95}=3.8415\)). Then \(\lambda=0.25^2/0.10^2=6.25\), and the mixture series is:

\(k\) Poisson weight \(e^{-3.125}3.125^k/k!\) \(P(\chi^2_{1+2k}>3.8415)\) product running sum
0 0.0439 0.0500 0.0022 0.0022
1 0.1373 0.2791 0.0383 0.0405
2 0.2145 0.5725 0.1228 0.1633
3 0.2235 0.7978 0.1783 0.3416
4 0.1746 0.9215 0.1609 0.5025
5 0.1091 0.9743 0.1063 0.6088
6 0.0568 0.9928 0.0564 0.6653
7 0.0254 0.9982 0.0253 0.6906
8 0.0099 0.9996 0.0099 0.7005
9 0.0034 0.9999 0.0034 0.7039

The sum converges to \(0.7054\): power 70.5 %. (The \(k=0\) row, \(0.0500\times0.0439\), is the \(\alpha\) level times the chance that the Poisson index is zero; the whole series is dominated by the middle terms, which is what a non-central distribution looks like.)

To reach 80 % power, solve \(P(\chi'^2_1(\lambda^\ast)>3.8415)=0.80\) by bisection: \(\lambda^\ast=7.849\); for 90 %, \(\lambda^\ast=10.507\). Then

\[ N_{\text{req}}(80\,\%)=60\times\frac{7.849}{6.25}=75.35\ \ (\text{76 subjects, rounded up}),\qquad N_{\text{req}}(90\,\%)=60\times\frac{10.507}{6.25}=100.9\ \ (101). \]

The effect-size multiplier. With \(m=0.5\) the effect is \(0.125\), \(\lambda=1.5625\) and power is \(24.0\,\%\); with \(m=1.5\), \(\lambda=14.06\) and power is \(96.3\,\%\). Power is not linear in effect size: halving the effect takes power from 70 % to 24 %, because \(\lambda\) is quadratic in the effect.

Stochastic simulation and estimation (SSE)

The information route is fast and approximate. SSE is slower and more faithful: for each scenario and replicate \(r\),

  1. draw a trial (subjects from the arm pools, compliance, dropout, missing observations, schedule), with random streams derived from the seed, the scenario and the replicate (page A.14);
  2. draw the true parameters (the estimates, or with parameter uncertainty \(\psi^\ast=\hat\psi+Lz\), \(LL^{\mathsf T}=\widehat{\operatorname{Cov}}\)) with every hypothesis at its true value \(\beta(m)\);
  3. simulate the data, apply the LLOQ rule;
  4. fit the full model and, for each hypothesis, the reduced model with the effect fixed at \(\beta_0\);
  5. test.

The tests. Likelihood-ratio (one degree of freedom): \(\Delta\mathrm{OFV}=\max\{0,\ \mathrm{OFV}_{\text{reduced}}-\mathrm{OFV}_{\text{full}}\}\), significant if above \(\chi^2_{1,1-\alpha}\) (\(3.84\) at 5 %). Wald: \(z=(\hat\beta-\beta_0)/\mathrm{SE}\), \(p=2\{1-\Phi(\lvert z\rvert)\}\) (needs the covariance step). Type I error is estimated from extra trials with every effect at its null value: the fraction significant should be near \(\alpha\).

The summary metrics. With \(R_{\text{ok}}\) trials in which the test could be evaluated, \(k\) significant:

Metric Definition
power \(k/R_{\text{ok}}\)
95 % interval Wilson\((k,R_{\text{ok}};\ z=1.959964)\)
Monte Carlo SE \(\sqrt{\text{power}(1-\text{power})/R_{\text{ok}}}\)
power, all trials \(k/R_{\text{attempted}}\) (a failed trial counts as non-significant)
relative bias (%) median of \(100(\hat\psi_j-\psi^\ast_j)/\lvert\psi^\ast_j\rvert\)
RMSE (%) \(\sqrt{\operatorname{mean}[100(\hat\psi_j-\psi_j^\ast)/\lvert\psi_j^\ast\rvert]^2}\)
coverage (%) fraction of trials with \(\lvert\hat\psi_j-\psi_j^\ast\rvert\le z_{\text{ci}}s_j\)
ETA shrinkage (%) \(100\bigl(1-\mathrm{SD}(\hat\eta_{\cdot k})/\sqrt{\omega_{kk}}\bigr)\), averaged over trials
convergence (%) converged trials / attempted trials

The reporting criteria are relative bias \(\le15\) %, RSE of a fixed effect \(\le30\) %, RSE of a variance \(\le50\) %, shrinkage \(\le30\) %, convergence \(\ge90\) % and power at least the target (default 0.8); "all criteria met" is their conjunction.

The sample size for the target power. Over the simulated sizes \((N_k,\pi_k)\) in ascending order, the first crossing of the target \(\pi^\ast\) is interpolated linearly:

\[ N^\ast=N_k+\frac{\pi^\ast-\pi_k}{\pi_{k+1}-\pi_k}\,(N_{k+1}-N_k),\qquad\pi_k<\pi^\ast\le\pi_{k+1}. \]

A worked illustration

Simulated powers of \(0.62,\ 0.79,\ 0.91\) at \(N=30,\ 45,\ 60\), target 0.80. The crossing lies between 45 and 60: \(N^\ast=45+\dfrac{0.80-0.79}{0.91-0.79}\times15=46.25\). With 200 replicates per size, the power \(0.79\) (\(k=158\)) has a Monte Carlo SE of \(0.029\) and a Wilson interval of \((0.728,\ 0.841)\) — so a power of 0.79 and a power of 0.80 cannot be told apart, and neither can \(N=46\) from \(N=50\). The interpolated sample size inherits that uncertainty: it is an estimate with an interval, not an exact threshold.

Two powers from the same replicates. If 10 of 200 trials failed (no usable test) and 150 of the remaining 190 were significant, the power among evaluable trials is \(150/190=0.789\) (Wilson \((0.726,\ 0.841)\)) and the all-trials power is \(150/200=0.750\). The two differ by the factor \(190/200\), the fraction of trials that could be evaluated; a design whose fits often fail is less powerful than the first number says. Type I error: 5 significant trials of 100 at the null is \(0.05\) with a Wilson interval of \((0.022,\ 0.112)\): consistent with 5 % but with little ability to detect inflation.

Information or simulation?

Fisher information SSE
Speed seconds minutes to hours
What it assumes the Wald test, a linearised model, large-sample normality nothing beyond the model and the estimation method
Captures the design's information failures, bias, shrinkage, the real test's behaviour
Weakness optimistic for weak effects and small \(N\) Monte Carlo error; time

The case studies of Chapter 41 (pages 41.33 and 41.34) use both: the information to screen, the simulation to decide.

Review checklist

  • Can you write the two terms of the information of a population design?
  • Can you compute a non-centrality, a Wald power and a required sample size from an effect and a standard error?
  • Do you know why power is not linear in the effect size?
  • Can you state the SSE summary metrics, and give the Monte Carlo interval of a simulated power?

See the previous page, the next page and the mathematical reference.