Why the Covariate Definition Comes First
A population pharmacokinetic model can estimate whether a parameter differs across recorded categories, but the meaning of that comparison depends on what the data field represents. A chart field labelled “sex,” a sex assigned at birth, and a person’s gender identity are not interchangeable measurements. Collection practices and available categories also vary across settings. Before adding a covariate to a model, define the field as it was actually collected, how its categories were assigned, and which records are included in the analysis.
The aim here is to encode such a categorical variable and interpret its reference contrasts for clearance and volume. A model coefficient describes a contrast between the modeled categories, conditional on the other terms in that model. By itself, it does not establish why the contrast exists or show that the recorded variable caused a pharmacokinetic difference.
For example, a data set may contain a field recorded as “female” or “male,” while another may record gender identity using a broader set of categories. The model should name and represent the field actually available, rather than silently substituting one construct for another. The categories do not, by themselves, measure hormone concentrations, reproductive status, body composition, or any other possible mechanism. Those require their own definitions and data.
Binary Coding and the Exponential Parameter Model
For a two-category field, choose and state a reference category. Let \(S_i=0\) for an individual in the reference category and \(S_i=1\) for an individual in the comparison category. The indicator is a coding device: it does not imply that the underlying characteristic is naturally binary, nor does it justify omitting categories that were collected.
A common model expresses positive pharmacokinetic parameters on a log scale. Let \(CL_i\) and \(V_i\) denote individual \(i\)’s clearance and volume, and let \(CL_{\mathrm{ref}}\) and \(V_{\mathrm{ref}}\) denote the corresponding typical values in the reference category. One possible model is:
Here \(\beta_{CL}\) and \(\beta_V\) are fixed-effect coefficients, while \(\eta_{CL,i}\) and \(\eta_{V,i}\) represent individual deviations from the typical values. When comparing typical individuals (setting the individual deviations to zero), the comparison-to-reference ratios are \(\exp(\beta_{CL})\) for clearance and \(\exp(\beta_V)\) for volume. The coefficients are on the log scale; they are not absolute differences in units such as L/h or L.
Why the Coefficient Is a Log Ratio
The contrast follows directly by evaluating the same model at the two indicator values. For clearance, the typical value in the reference category is obtained with \(S_i=0\); in the comparison category, use \(S_i=1\). The ratio cancels the common baseline:
The same substitution for volume gives \(V_{\mathrm{comparison}}/V_{\mathrm{ref}}=\exp(\beta_V)\). Taking natural logarithms of either ratio returns its coefficient. This is why the coefficient’s sign and magnitude should not be read as a percentage change without transforming it. The approximation \(100\beta\%\) is reasonable only when \(\beta\) is small; the exact percentage uses the exponential expression.
This ratio compares typical parameter values under the model, with other covariates held fixed. If individual random effects differ between two people, their individual parameter ratio also includes the difference in those random effects. The fixed-effect contrast does not assert that every person in one category has a higher or lower parameter than every person in the other.
Worked Example: Coding the Recorded Categories
Suppose a hypothetical PK data set includes a field transcribed from clinical records as “sex recorded in chart,” with values “female,” “male,” “not recorded,” and “other.” The analysis question is to estimate a contrast between the two recorded categories with adequate data. Define “female” as the reference category and “male” as the comparison category.
For records in those two categories, set \(S_i=0\) for “female” and \(S_i=1\) for “male.” The model coefficient then describes the “male” versus “female” contrast in this chart field. Its interpretation should retain that definition; the coding does not convert the field into a measure of gender identity or a specific biological mechanism.
Do not automatically set “not recorded” to \(S_i=0\). That would combine unobserved records with the reference category, making the reference group mean two different things. Nor should “other” be assigned \(S_i=1\), which would merge it with “male.” Depending on the analysis and data quality, records outside the two-category contrast might be represented using additional categories, described separately, or excluded under a stated rule. The rule and the resulting analysis population must be reported.
This example defines a possible coding strategy, not a claim that every study should use these categories. If the field’s origin or meaning is unclear, the model cannot resolve that ambiguity; the data definition must be clarified before interpreting a coefficient.
Worked Parameter Contrasts
Worked Example: Clearance and Volume Ratios
In a hypothetical model, “female” is the reference category and “male” is coded \(S_i=1\). The typical reference values are \(CL_{\mathrm{ref}}=5.00\) L/h and \(V_{\mathrm{ref}}=40.0\) L. Suppose the estimated coefficients are \(\beta_{CL}=0.1823\) and \(\beta_V=-0.1054\). Calculate the typical values and percentage differences for the comparison category.
For clearance, the ratio is \(\exp(0.1823)\approx1.200\). Therefore, the modeled typical clearance in the comparison category is \(5.00\text{ L/h}\times1.200=6.00\text{ L/h}\). The percentage difference is \(100(1.200-1)=20.0\%\). In this hypothetical model, the comparison category has 20.0% higher typical clearance than the reference category, conditional on the other model terms.
For volume, the ratio is \(\exp(-0.1054)\approx0.9000\). Thus, the comparison-category typical volume is \(40.0\text{ L}\times0.9000=36.0\text{ L}\). The percentage difference is \(100(0.9000-1)=-10.0\%\), or 10.0% lower than the reference value.
The coefficients are not “0.1823 L/h higher” and “0.1054 L lower.” They are dimensionless log-scale contrasts. The modeled parameter values have units; the ratios and percentages do not.
Worked Example: Changing the Reference Category
Suppose a hypothetical two-category model uses category A as reference, with typical clearance \(CL_A=4.00\) L/h. The estimated coefficient for category B is \(\beta_{CL}=0.2231\). Show the contrast and express it after switching the reference category to B.
With A as reference, \(CL_B/CL_A=\exp(0.2231)\approx1.250\). Therefore, \(CL_B=4.00\times1.250=5.00\) L/h. The coefficient says B has 25.0% higher typical clearance than A.
After switching the reference to B, the baseline becomes \(CL_B=5.00\) L/h. The contrast for A relative to B is \(CL_A/CL_B=4.00/5.00=0.8000\), so the new coefficient is \(\ln(0.8000)\approx-0.2231\). The coefficient changes sign because the comparison is reversed; the fitted values and underlying contrast do not change. A is 20.0% lower than B, not 25.0% lower: percentage differences depend on which category is the denominator.
More Than Two Categories and Alternative Codings
If the recorded field has \(K\) categories and one is chosen as the reference, represent the other categories with indicator variables. For category \(k\), let \(I_{ik}=1\) when individual \(i\) belongs to that category and \(0\) otherwise. A clearance model can be written:
Each \(\exp(\beta_{CL,k})\) is the typical clearance ratio for category \(k\) relative to the selected reference, conditional on other model terms. Volume can be represented in the same way with its own baseline and coefficients. A category absent from the data cannot have an estimable contrast, and very small category counts may yield unstable estimates. Coding decisions should reflect the actual field and the scientific question, not just the convenience of a binary variable.
An equivalent proportional form for a binary covariate is \(CL_i=CL_{\mathrm{ref}}(1+\theta_{CL}S_i)\exp(\eta_{CL,i})\). In that form, the comparison-to-reference ratio is \(1+\theta_{CL}\), and the percentage difference is \(100\theta_{CL}\%\). The model requires \(1+\theta_{CL}>0\) so that clearance remains positive. This parameterization and the exponential form can express the same two-group contrast when \(1+\theta_{CL}=\exp(\beta_{CL})\); the exponential form enforces positivity for any finite coefficient.
Changing the reference category is a re-expression of the same categorical comparison. By contrast, fitting separate models in each category does not directly estimate a single shared contrast and may make comparisons less precise or less straightforward. A reference-coded model estimates the contrast within one model, but its conclusions still depend on the model form, data support, and other covariates included.
Assumptions, Diagnostics, and Limits
A reference contrast is interpretable only if the data field is defined consistently and the coding matches that definition. The model also assumes that the specified parameter relationship is appropriate: in the binary exponential form, the modeled category effect is a multiplicative shift in the typical parameter, with no category interaction unless one is explicitly included. Covariates held fixed in the contrast must be defined and represented appropriately. Sparse representation in one category can make a contrast imprecise or poorly supported, even if the model returns a numerical estimate.
Check category counts and the distribution of observations across categories before interpreting estimates. Confirm that the chosen reference is present, that coding is correct for each record, and that missing or ambiguous values have not silently entered a modeled category. Review parameter uncertainty and model diagnostics, including whether the structural model describes the observed concentration data adequately in each category. A large estimated contrast with wide uncertainty, poor subgroup fit, or very few observations should be presented cautiously. A single coefficient does not repair data limitations or demonstrate that category membership caused the difference.
The contrast is also conditional on the model’s other covariates. If important differences between categories are not represented, a coefficient may reflect those differences as well as any sex-related association. Conversely, adding correlated or weakly supported covariates can make estimates unstable. The coefficient alone cannot distinguish biological pathways from social, clinical, or measurement processes reflected in the recorded field.
When reporting results, state the field definition, category labels, reference group, model parameter, contrast direction, effect scale, and units for parameter values. For example: “For the chart-recorded categories defined in this analysis, the estimated comparison-to-reference typical clearance ratio was 1.20; the corresponding typical values were 6.00 and 5.00 L/h.” This wording keeps the data definition, direction, ratio, and units visible without treating an association as a causal effect.
Check Your Understanding
Answer each question using the model definitions and contrast direction given.
- A binary exponential model has \(\beta_V=0.09531\) for category B relative to category A. What is the typical volume ratio and approximate percentage difference?
- In a model with a chart-recorded category as reference, why should “not recorded” not automatically be coded as the reference?
- Clearance in the reference category is 3.00 L/h, and the comparison-to-reference ratio is 0.800. What is the comparison-category typical clearance, and what is its percentage difference?
- If a model’s reference category changes, must the fitted category-specific typical values change? Explain.
Solutions. (1) \(\exp(0.09531)\approx1.100\), so category B has about 10.0% higher typical volume than category A. (2) “Not recorded” indicates missing information, not membership in the reference category; combining them changes the meaning of the reference group. (3) \(3.00\text{ L/h}\times0.800=2.40\text{ L/h}\), which is \(100(0.800-1)=-20.0\%\), or 20.0% lower. (4) No. The baseline and coefficient representation change, but correctly re-expressed category-specific typical values and contrasts remain the same.