Documentation

A.1 Notation and conventions

One symbol table for the whole book

What you will learn

  • Read every symbol of the estimation, simulation, design and exposure–response chapters from one table.
  • Tell variance, standard deviation and coefficient of variation apart, and know which one a given output reports.
  • Recognise the worked illustrations of this appendix and the one subject they share.

Prerequisites: none. This appendix is a reference; read the page you need.

What this appendix is for

The chapters of the book state the equations that the program uses where they are needed. This appendix collects the mathematics they rest on, in one place and in one notation, so that a reader can look up a rule (the determinant of a sum, the derivative of a log-determinant, the meaning of a non-central χ²) without leaving the book. It does not replace the chapters: it gives the tools, and the chapters say which tool the program uses for which job.

Three kinds of statement appear, and the text says which.

Kind How it is marked Example
A rule of mathematics stated plainly, with the condition under which it holds the matrix determinant lemma
What the program computes "nlmx computes…" or a reference to the chapter the objective function of a subject
A worked illustration in italics, with its numbers recomputed independently the one-subject example of page A.6

A worked illustration is not a result of a study. Its numbers were recomputed with independent arithmetic and are there so that a reader can check a formula against a number.

Indices and typography

Convention Meaning
\(i\) a subject, \(i=1,\dots,N\)
\(j\) an observation within a subject, \(j=1,\dots,n_i\)
\(k,\,l\) a random effect (an ETA), \(k=1,\dots,p\)
\(a\) an estimated population element (a THETA, an OMEGA or a SIGMA element)
bold or capital letters vectors and matrices; a vector is a column unless it is written transposed
\(A^{\mathsf T}\), \(A^{-1}\), \(\lvert A\rvert\) transpose, inverse, determinant
\(\log\) natural logarithm throughout (the program also uses it where a table says \(\ln\))

The symbols

Symbol Meaning Where it is used
\(y_{ij}\) observed dependent variable everywhere
\(\theta\) fixed (population) effects, the THETAs A.6
\(\eta_i\) the subject's random-effect vector, \(\eta_i\sim N(0,\Omega)\) A.6
\(\Omega\) covariance matrix of the ETAs A.4, A.6
\(\varepsilon_{ij}\), \(\Sigma\) residual random effect and its covariance A.7
\(f_{ij}(\theta,\eta_i)\) or \(Y_{ij}(\eta_i)\) model prediction with the residual set to zero A.6
\(h_{ij}=\partial Y_{ij}/\partial\varepsilon\) derivative of the observation with respect to the residual A.7
\(V_{ij}=h_{ij}^{\mathsf T}\Sigma h_{ij}\) residual variance of one observation A.7
\(c_{ij}(\eta)\) the observation's contribution to \(-2\log\) density A.6
\(J_i(\eta)\) the subject's conditional objective, including the ETA penalty A.6
\(\hat\eta_i\) conditional mode (the empirical Bayes estimate) A.8
\(G_i=\partial Y_i/\partial\eta\) sensitivity of the predictions to the ETAs (\(n_i\times p\)) A.3, A.8
\(R_i=\operatorname{diag}(V_{ij})\) residual covariance of a subject A.8
\(C_i=G_i\Omega G_i^{\mathsf T}+R_i\) linearised marginal covariance of a subject's observations A.8
\(H_i\) Hessian of \(J_i\) with respect to \(\eta\) A.8
\(\psi\) all estimated population elements A.12
\(R,\ S\) curvature and score matrices of the covariance step A.12
\(\mathrm{OFV}\) objective function value, \(-2\log L\) without the constant \(n_{\text{obs}}\log 2\pi\) A.6
\(\Phi,\ \Phi^{-1}\) the standard normal distribution function and its inverse A.5
\(\chi^2_k\), \(\chi'^2_k(\lambda)\) central and non-central chi-square with \(k\) degrees of freedom A.5, A.16
\(S_1,\ S_2,\ \gamma_k\) SAEM sufficient statistics and step size A.10
\(q_i(\eta)\), \(M\), \(\mathrm{ESS}\) importance proposal, number of draws, effective sample size A.11
\(F\) Fisher information matrix A.16
\(\lambda_z\), \(\mathrm{AUC}\), \(\mathrm{CL/F}\) terminal rate constant, area under the curve, apparent clearance A.15

Capital \(R\) is used twice, as in the book: \(R_i\) with a subject index is a residual covariance, and \(R\) without one is the curvature matrix of the covariance step. Context and subscripts tell them apart.

Variance, standard deviation and coefficient of variation

The most common source of misreading is a variance reported as a standard deviation, or the reverse.

Quantity Definition What the program reports
Variance the mean squared deviation OMEGA and SIGMA diagonal elements, unless a column says otherwise
Standard deviation the square root of a variance \(\sqrt{\omega_{kk}}\) where an output says SD
CV of a log-normal ETA \(100\sqrt{e^{\omega^2}-1}\,\%\) the OMEGA diagonal with an exponential ETA
Correlation \(\omega_{kl}/\sqrt{\omega_{kk}\omega_{ll}}\) the off-diagonals

Worked illustration. An ETA with variance \(\omega^2=0.09\) has SD \(0.30\). As the log-normal variability of a clearance it is a CV of \(100\sqrt{e^{0.09}-1}=30.7\,\%\), close to the SD times 100 because \(\omega\) is small. At \(\omega^2=0.50\) the two differ a lot: SD \(0.71\) against a CV of \(80.5\,\%\) — which is why a table must say which one it shows.

Sign and scale conventions

  • A smaller OFV is better for the same data and the same likelihood definition. The omitted constant \(n_{\text{obs}}\log 2\pi\) cancels in a comparison of two models on the same observations and does not cancel across different data sets.
  • Gradients in optimiser messages are on the internal, transformed parameter scale; standard errors are on the natural scale of each estimated element (page A.9).
  • Probability statements use two-sided intervals at the stated level, with \(z_{0.975}=1.959964\) for 95 %.

The one subject used in the worked illustrations

Several pages follow one subject through every approximation, so that the methods can be compared on the same numbers. It is defined fully on page A.6: a 100 mg intravenous dose into a one-compartment model with \(V=20\) L, a typical clearance of 4 L/h, a between-subject variance of 0.09 on clearance, a proportional error of variance 0.04, and three concentrations measured at 1, 4 and 12 h.

Common mistakes

  • Reading an OMEGA diagonal as a standard deviation, or as a CV.
  • Comparing OFV values from fits that used different observations, or a different likelihood convention.
  • Treating a gradient message (internal scale) as if it were on the scale of the parameter.

Review checklist

  • Can you say, for any number in an output, whether it is a variance, an SD, a CV or a correlation?
  • Do you know which of this appendix's examples are illustrations, and that their numbers are not study results?
  • Can you tell the two meanings of \(R\) apart?

See the appendix overview, the next page and the mathematical reference.