Why Prediction Labels Need Interpretation
A column labelled “prediction” does not, by itself, say which parameter values produced it. A prediction may use typical population parameters, or it may use a subject-specific estimate of the random effects. Those answers can differ substantially, even when they come from the same fitted model and the same time point. Correctly identifying the prediction target matters when checking model fit, comparing software output, or preparing a simulation.
The central distinction is between the model’s prediction for a typical subject and its prediction conditional on a particular subject’s data. An empirical Bayes estimate is one way to obtain subject-specific random-effect values for the latter. It is not itself a concentration prediction. In mrgsolve, predictions are generated by running a model with numerical inputs; the software does not automatically turn an estimation tool’s prediction column or empirical Bayes estimates into a simulation.
Model Notation and the Three Quantities
Write the model prediction for subject \(i\) at time \(t_{ij}\) as \(f(t_{ij};\theta,\eta_i,x_i)\), where \(\theta\) denotes population parameters, \(\eta_i\) is the subject’s vector of random effects, and \(x_i\) denotes relevant covariates or other subject-specific inputs. The observation model also includes residual error; the prediction of the model’s expected response is distinct from an observed response that includes residual error.
The typical-subject population prediction is conventionally calculated with \(\eta_i=0\). If \(\hat{\theta}\) is the fitted population parameter estimate, this is \(f(t_{ij};\hat{\theta},0,x_i)\). The individual prediction based on an empirical Bayes estimate \(\hat{\eta}_i\) is \(f(t_{ij};\hat{\theta},\hat{\eta}_i,x_i)\). Software may use labels such as PRED and IPRED for these concepts, but the precise output definition should be checked in the model and output documentation.
The empirical Bayes estimate is informed by both the population distribution of random effects and the subject’s observed data. Depending on the method and reporting convention, it may be a conditional mode or a conditional mean. It is a shrunken estimate: when the subject’s data provide limited information, the estimate is generally pulled toward the population value of zero. It is not a directly observed subject characteristic, nor is it necessarily the subject’s true random effect.
A further distinction is important: setting \(\eta_i=0\) gives the model prediction for a typical subject, not generally the average prediction across the population. The latter averages \(f(t;\theta,\eta,x)\) over the random-effects distribution. For a nonlinear function \(f\), that average usually does not equal \(f(t;\theta,0,x)\).
Worked Example: Typical and Individual Concentration Predictions
Worked Example: Typical and Individual Concentration Predictions
Consider a hypothetical one-compartment model after an intravenous bolus dose of \(100\) mg. Let the typical clearance be \(6\) L/h and the volume be \(50\) L. The concentration prediction is \(C(t)=\frac{D}{V}\exp[-(CL/V)t]\), with time in hours. For this example, clearance has a log-normal random effect: \(CL_i=6\exp(\eta_{CL,i})\). Suppose two subjects have EB estimates \(\hat{\eta}_{CL,A}=0.10\) and \(\hat{\eta}_{CL,B}=-0.10\).
Typical population prediction at 4 h. Set the random effect to zero, so \(CL=6\) L/h. The initial concentration is \(100/50=2\) mg/L, and the elimination rate is \(6/50=0.12\) h\(^{-1}\):
Subject A’s EB-based individual prediction at 4 h. First use the estimated random effect to calculate clearance: \(CL_A=6\exp(0.10)\approx 6.631\) L/h. Then substitute that clearance into the concentration model:
Subject B’s EB-based individual prediction at 4 h. Here \(CL_B=6\exp(-0.10)\approx 5.429\) L/h. Therefore:
These are model predictions in mg/L, not observed concentrations. The example shows why the prediction type matters: the typical prediction uses zero random effect, whereas each individual prediction uses a different subject-specific estimate. It also shows the direction of the effect: higher estimated clearance produces a lower concentration at this post-dose time.
What the Labels Mean Across Tools
The conceptual distinction is common across NONMEM, Monolix, and nlmixr2, but exact output names, table contents, and calculation options can depend on the model code, estimation method, and reporting settings. Interpret the formula that generated a column rather than relying on its name alone.
| Quantity | What is evaluated | Typical use |
|---|---|---|
| Population or typical prediction | Population parameter estimates, usually with random effects set to zero | Describe the typical-subject model curve |
| EB-based individual prediction | Population estimates plus a subject-specific random-effect estimate | Compare a subject’s fitted model curve with that subject’s data |
| Empirical Bayes estimate | A subject-specific estimate of random effects, not a response prediction | Supply individual effects for a prediction or conditional simulation |
| Population-average prediction | A prediction averaged over the random-effects distribution | Describe an average over a population, often requiring integration or simulation |
In NONMEM, PRED and IPRED are commonly used for population and individual predictions, respectively, while ETA estimates are reported separately. Confirm how the model code defines each item: derived parameters, covariate relationships, and residual-error conventions affect what a reported prediction represents. In Monolix, distinguish its population prediction output from its individual prediction output and from the estimated individual parameters or random effects. In nlmixr2, inspect the result object and the prediction-related columns generated for the fitted model; do not infer from a column label alone that it represents an EB estimate or a prediction of a particular type.
For all three tools, the key questions are the same: Were random effects set to zero or estimated for each subject? Were the population parameters fixed at their fitted estimates? Are covariates and dose histories subject-specific? Is the value a model prediction, an observed value, or a random-effect estimate? These checks make comparisons meaningful even when output naming differs.
Worked Example: Reading an EB Estimate Correctly
Suppose a hypothetical output row for subject A gives \(\hat{\eta}_{CL}=0.10\), with the model \(CL_i=6\exp(\eta_{CL,i})\) L/h. The number \(0.10\) is a dimensionless random-effect estimate on the log-clearance scale. It is not a clearance of \(0.10\) L/h and it is not a predicted concentration.
To obtain the subject-specific clearance, transform the estimate using the model: \(CL_A=6\exp(0.10)\approx 6.631\) L/h. If the same subject received the 100 mg dose in the previous example, the individual concentration prediction at 4 h is then \(2\exp[-(6.631/50)(4)]\approx 1.177\) mg/L. The prediction requires the structural model and the relevant dose and covariate inputs as well as the random-effect estimate.
If the output instead reports an individual parameter of \(6.631\) L/h, that is already a transformed subject-specific clearance. Applying \(\exp(0.10)\) to it again would incorrectly transform the effect twice. Determine whether a table contains \(\eta\), a transformed individual parameter, or a predicted response before using its values.
From Estimation Output to mrgsolve Simulation
mrgsolve calculates model outputs by simulating a coded model with supplied numerical inputs. It does not require an estimation tool’s PRED or IPRED column as a simulation input. Instead, provide the model and the values that define the desired simulation: structural parameters, covariates, dose and event records, and any subject-specific effects that the model uses. For a typical-subject simulation, use the population parameter values and set the random effects to zero, if the model is parameterized that way. For an EB-based subject-specific simulation, supply that subject’s EB estimates or the corresponding transformed individual parameters, consistently with the model code.
A model may also generate random effects for a simulated population, but that is a different target from using fitted EB estimates. Random effects drawn from a population distribution represent simulated subjects; EB estimates represent estimates conditional on particular observed subjects. In either case, ensure that the simulated model implements the same parameter relationships and transformations as the estimation model. Transferring a number without preserving its scale or meaning can change the prediction.
Worked Example: Specify Inputs for Two mrgsolve Simulations
Use the hypothetical bolus model above for two simulations at 4 h. The shared inputs are a 100 mg dose, \(V=50\) L, typical \(CL=6\) L/h, and the same model structure. To simulate the typical subject, use \(\eta_{CL}=0\). The resulting clearance is \(6\exp(0)=6\) L/h and the predicted concentration is \(2\exp[-(6/50)(4)]\approx 1.238\) mg/L.
To simulate subject A conditional on the EB estimate, use \(\eta_{CL}=0.10\), provided the coded model applies \(CL_i=CL\exp(\eta_{CL})\). The resulting clearance is \(6\exp(0.10)\approx 6.631\) L/h, and the 4 h concentration is \(2\exp[-(6.631/50)(4)]\approx 1.177\) mg/L. An equivalent input is \(CL_A=6.631\) L/h if the model expects individual clearance directly; do not supply both the transformed clearance and the same effect in a way that applies the effect twice.
For either run, the simulation also needs the appropriate event information and time grid, and any covariates used by the model. If the dose is not an instantaneous IV bolus, the model and event inputs must represent the actual administration route and schedule. The numerical parameter table alone is not a complete simulation specification.
Justification: Why Typical and Average Predictions Differ
The distinction between a typical prediction and a population-average prediction follows directly from averaging the nonlinear model. In the example, let \(k=CL/V\) and let \(CL=6\exp(\eta)\), where \(\eta\) varies across subjects. At a fixed positive time \(t\), the concentration prediction is proportional to \(\exp[-(6/V)\exp(\eta)t]\). The typical-subject prediction evaluates this expression at \(\eta=0\); the population average instead averages the expression over the distribution of \(\eta\).
The expectation in the second expression is an average of a nonlinear function, so it cannot generally be replaced by evaluating that function at the average random effect. In symbols, \(E_\eta[f(t;6,\eta)]\ne f(t;6,E[\eta])\) in general. Even when \(E[\eta]=0\), the right-hand side is the typical prediction, not necessarily the population average. The distinction disappears in special cases, such as a prediction function that is linear in the random effect under the relevant averaging scheme, but should not be assumed.
This matters when a question asks for a typical curve, a curve conditional on observed subjects, or an average response across a population. Those are different targets. A population-average prediction may be obtained by integrating over the random-effects distribution or by averaging predictions from representative random-effect draws; it is not obtained simply by labelling the zero-random-effect curve “the population average.”
Diagnostics, Alternatives, and Limitations
A useful diagnostic is to compare prediction columns with a small hand calculation for one subject and one time point. Verify the population parameter values, covariates, dose history, random-effect setting, and transformations. If two tools disagree, first check whether one prediction uses zero random effects and the other uses individual estimates. Then check whether the reported individual quantity is an \(\eta\), a transformed parameter, or a model response.
Individual predictions are useful for examining fit conditional on subjects’ data, but they are not independent validation predictions: the same observations used to estimate the individual effects may also be used to assess their fitted predictions. Population predictions avoid conditioning on each subject’s estimated effects but may not closely track every subject’s observed trajectory. A population-average prediction answers a different question again. The appropriate alternative depends on the target, not on which output column looks most familiar.
- Failure mode: treating an EB estimate as a response. An \(\eta\) is a random effect, often dimensionless; transform it through the model to obtain an individual parameter, then evaluate the structural model to obtain a response prediction.
- Failure mode: double-transforming an effect. Check whether the input is on the \(\eta\) scale or already a transformed parameter scale.
- Failure mode: calling the zero-effect curve an average curve. It is conventionally the typical-subject prediction; averaging over random effects is a separate calculation.
- Failure mode: comparing unlike predictions across tools. Confirm the random-effect setting, covariates, dose events, parameter estimates, and prediction definitions before interpreting differences.
The terminology also has limits. “Individual prediction” is used with some variation across software and workflows, and empirical Bayes estimation procedures need not produce identical subject-effect estimates across tools. Different estimates can arise from estimation and reporting choices even when the structural model is intended to match. For cross-tool comparison, define the mathematical target explicitly and verify it with the model equations and inputs.
Check Your Understanding
Answer each question, then compare your reasoning with the solutions.
- A model predicts \(C(t)=\frac{D}{V}\exp[-(CL/V)t]\). What changes when calculating a typical prediction rather than an EB-based individual prediction?
- An output reports \(\hat{\eta}=0.20\) for clearance in a model \(CL_i=CL\exp(\eta_i)\). Is \(0.20\) a clearance or a concentration prediction?
- Why is a prediction at zero random effect not generally the population-average prediction?
- Name the main input categories needed to reproduce an individual prediction in mrgsolve.
Solutions. (1) The typical prediction sets the random effect to zero; the EB-based prediction uses the subject-specific estimate in the parameter relationship and then evaluates the model. (2) It is a dimensionless random-effect estimate on the log scale, not a clearance or concentration. For example, if typical clearance is \(6\) L/h, the implied individual clearance is \(6\exp(0.20)\approx 7.328\) L/h. (3) The structural model is generally nonlinear in the random effects, so evaluating it at zero is not the same as averaging its predictions over their distribution. (4) Supply the model structure, parameter values, relevant covariates, dose and event inputs, and subject-specific random effects or transformed individual parameters, with a consistent parameterization.