Documentation

B.2 Terms of estimation and inference: likelihood, methods, standard errors and tests

The objective function and the chi-square cut-off

What you will learn

  • Say what the objective function value is, and why only differences between models are meaningful.
  • Tell the estimation methods apart by one line each: what they approximate and what they cost.
  • Read the ending of a fit: gradient, covariance step, standard error, relative standard error, condition number and shrinkage.
  • Use the three tests and the three criteria with the right cut-offs.

Prerequisites: B.1. The mathematics is in Appendix A, pages A.6 to A.13.

The objective

  • Likelihood (L) — the probability (density) of the observed data under the model with given parameters, regarded as a function of the parameters. In a mixed-effects model the likelihood of one subject is an integral over that subject's random effects, which has no closed form for most models. Where: Chapter 18.
  • Marginal likelihood — the likelihood with the random effects integrated out. It is the quantity every estimation method here tries to maximise, exactly or approximately.
  • Objective function value (OFV) — \(-2\log L\) (up to a constant, which depends on the method and the data). Smaller is better. The OFV has no absolute meaning: two models are compared by the difference of their OFVs on the same data and the same method. A value of \(-1157.8\) is neither good nor bad. Where: Chapter 20.
  • \(\Delta\)OFV (change in OFV) — the OFV of a simpler model minus the OFV of an extended one. When the models are nested, it follows approximately a \(\chi^2\) distribution (below).
  • Maximum likelihood estimate (MLE) — the parameter values that maximise the likelihood.
  • Conditional mode (empirical Bayes estimate, EBE, post-hoc estimate; \(\hat\eta_i\)) — for each subject, the random effect that maximises that subject's contribution given the fixed effects. EBEs are the subject-level estimates used in diagnostics and by the Laplace-type methods. Where: Chapter 21.

The methods

  • FO (first-order) — linearises the model around \(\eta=0\) and evaluates the variance there. Fast, and least accurate when variability is large.
  • FOCE (first-order conditional estimation) — linearises around each subject's conditional mode, but evaluates the residual variance at \(\eta=0\).
  • FOCE-I (FOCE with interaction) — like FOCE, but evaluates the residual variance at the conditional mode, so that the dependence of the error on \(\eta\) is kept (important for proportional and combined errors). Where: Chapter 20.
  • Laplace — approximates each subject's integral by a Gaussian at the mode using the second derivative of the log-density, rather than the first-order approximation of FOCE (page A.8).
  • SAEM (stochastic approximation expectation–maximisation) — instead of approximating the integral, it samples the random effects, averages sufficient statistics over iterations, and updates the parameters; it never has to evaluate the integral itself. It has a burn-in (exploration) phase and an averaging (convergence) phase. Where: Chapter 19.
  • Importance sampling — estimates the integral by drawing from a proposal distribution close to the posterior of the random effects and weighting. Used for the objective function after SAEM, and as a check. Its error falls like \(1/\sqrt{M}\) in the number of draws \(M\) (page A.11). Where: Chapter 19.
  • Effective sample size (ESS) — how many equally weighted draws the weighted draws are worth; a low ESS relative to the draws means a poor proposal.
  • Antithetic draws — draws used in mirrored pairs to cancel part of the Monte Carlo error.
  • Metropolis–Hastings kernel — a rule for proposing and accepting new random-effect values in SAEM's simulation step.
  • Gradient — the vector of first derivatives of the OFV with respect to the parameters; zero at a minimum. Hessian — the matrix of second derivatives; its curvature at the minimum gives the precision.
  • Quasi-Newton (BFGS) — a search that builds an approximation of the inverse Hessian from successive gradients. Where: Chapter 18.
  • Initial estimates (starting values) — where the search begins. Poor starts are a common cause of a failed fit. Where: Chapter 16.
  • Transformed scale — parameters are estimated on a scale that keeps them valid (a log for a positive parameter, a Cholesky factor for a covariance matrix); gradients are quoted on that scale. Where: Chapter 9.
  • Boundary — a parameter at its allowed limit (for example a variance at zero), which usually means that it is not supported by the data.

Reading the ending of a fit

  • Termination (convergence) — the reason the search stopped: gradient small enough, objective no longer changing, or an iteration limit. A stop for a good reason is evidence of convergence, not proof (page 18.23).
  • Covariance step — the calculation that estimates the uncertainty of the parameters after the fit, from the curvature of the objective (and, for the robust version, the per-subject gradients). Where: Chapter 18.
  • Standard error (SE) — the estimated standard deviation of a parameter estimate.
  • Relative standard error (RSE, %RSE) — SE divided by the estimate, as a percentage. An estimate of \(4.0\) with SE \(0.2\) has an RSE of 5 %. It is meaningful for parameters whose size matters (a clearance), and misleading for one that may be near zero or negative (a correlation, a covariate coefficient).
  • Confidence interval — a range built from the estimate and its SE (usually the estimate \(\pm1.96\) SE, which assumes a symmetric, approximately Gaussian estimate).
  • Sandwich estimator (robust covariance) — a covariance that does not trust the assumed variance model: \(R^{-1}SR^{-1}\), with \(R\) from the Hessian and \(S\) from the per-subject gradients (page A.12).
  • Correlation matrix of estimates — how strongly the estimates move together; high values (close to \(\pm1\)) signal that two parameters cannot be told apart.
  • Condition number — the ratio of the largest to the smallest eigenvalue of a matrix; a very large value means near-singularity and unstable estimates. For a \(2\times2\) correlation matrix it equals \((1+r)/(1-r)\) (page A.4).
  • Shrinkage (ETA shrinkage) — \(1-\mathrm{SD}(\hat\eta)/\omega\). If the estimated random effects have SD \(0.24\) while \(\omega=0.30\), shrinkage is \(20\,\%\). High shrinkage means the data hold little information about individuals, and diagnostics built on the EBEs become unreliable. Where: Chapter 21.
  • Identifiability — whether the data can determine a parameter at all. An unidentifiable parameter shows as a huge SE, a near-singular covariance, or a drifting estimate.
  • Local minimum — a point that is the best in its neighbourhood but not the best overall; found by restarting from other initial estimates (the retry strategy of Chapter 20).

Tests and criteria

  • Wald test — compares an estimate with a null value in standard-error units, \(z=(\hat\beta-\beta_0)/\mathrm{SE}\).
  • Likelihood-ratio test (LRT) — the \(\Delta\)OFV between nested models, compared with a \(\chi^2\) distribution whose degrees of freedom are the number of extra parameters.
  • Score test — tests an added parameter from the gradient of the smaller model, without fitting the larger one; the basis of fast screening. Where: Chapter 23.
  • Nested models — one is the other with some parameters fixed (for example at zero). The LRT is valid only for nested models.
  • Degrees of freedom (df) — here, the number of parameters added.
  • \(\chi^2\) critical value — the \(\Delta\)OFV above which a test is significant. At the 5 % level it is \(3.84\) for 1 df, \(5.99\) for 2, \(7.81\) for 3 and \(9.49\) for 4.
  • p-value — the probability, if the simpler model were true, of a \(\Delta\)OFV at least as large as the one seen. A \(\Delta\)OFV of \(36.0\) on 3 df has \(p=7.5\times10^{-8}\).
  • AIC — \(\mathrm{OFV}+2k\) for \(k\) estimated parameters. BIC — \(\mathrm{OFV}+k\log N\), with \(N\) the number of observations or of subjects (the choice must be stated). BICc — a corrected BIC. Smaller is better; the criteria apply to non-nested models too (page A.13).
  • Akaike weight — a number between 0 and 1 for each candidate model, from its criterion difference, that sums to 1 over the candidates.
  • Parsimony — preferring the simpler model unless the data demand the extra parameters.

A worked example

Illustration, not a study result. Model B (two compartments) has an OFV \(36.0\) lower than model A (one compartment) and three extra parameters. The 5 % cut-off for 3 df is \(7.81\), so \(36.0\) is far past it: \(p=7.5\times10^{-8}\). Model C adds a lag time to B and lowers the OFV by \(2.0\) for one parameter. The cut-off for 1 df is \(3.84\), so \(2.0\) is not significant (\(p=0.157\)), and every BIC also penalises the extra parameter. The decision, in one line each: B over A by test and by criterion; B over C because the lag time is not supported.

Review checklist

  • Can you say why an OFV on its own cannot be judged, and what is compared instead?
  • Do you know which method evaluates the residual variance at the mode, and why that matters for proportional error?
  • Before reading estimates, do you read the termination reason, the gradient, the RSEs and the shrinkage?
  • Do you know the cut-off for the number of parameters you added, and whether your models are nested?

See the previous page, the overview and the next page, data and control streams.