Tutorials › Pharmacometrics › PK/PD Models for Count Data
Pharmacokinetics · PK/PD Modeling

PK/PD Models for Count Data

Learn how pharmacokinetic exposure can be linked to pharmacodynamic endpoints measured as counts—and how Poisson, negative binomial, zero-inflated, and related models can describe discrete clinical and biological responses over time.

Intermediate PK/PD Modeling Count Data Pharmacometrics
01 · The big picture

1. What Is Count Data in PK/PD?

Many pharmacodynamic endpoints are naturally recorded as counts: the number of events occurring during a defined observation period. Examples can include seizure counts, coughing episodes, rescue-medication events, lesion counts, bacterial colonies, or other discrete event measurements.

Unlike a continuous endpoint such as blood pressure or biomarker concentration, a count takes values such as \(0,1,2,\ldots\). The statistical model therefore needs to respect the discrete nature of the response.

In a PK/PD analysis, the objective is often to relate the expected event rate to drug concentration or exposure:

\[ \text{Dose}\rightarrow C(t)\rightarrow \text{expected count or event rate} \]
Dose PK model concentration over time Count 0, 1, 2, ... events PK determines exposure; the PD model describes how exposure changes the expected count.

A count-data PK/PD model separates drug disposition from the statistical process generating discrete pharmacodynamic events.

Core idea: a count-data PD model describes the expected frequency of events while preserving the discrete, nonnegative nature of the endpoint. PK provides the time-varying concentration or exposure that drives the PD component.
02 · Why ordinary models can fail

2. Why Not Just Use a Normal Model?

A common starting point for continuous outcomes is a normal-error model. Applying that framework directly to counts can be problematic because counts have characteristics that continuous measurements do not.

FeatureCount endpointWhy it matters
Nonnegative \(Y\geq0\) A normal model can assign probability to impossible negative values.
Discrete \(0,1,2,\ldots\) The response occurs in integer units rather than on a continuous scale.
Often skewed Many observations may be near zero The distribution may be far from symmetric.
Mean-variance relationship Variance may depend on the mean Constant residual variance may be inappropriate.
Exposure duration Observation windows can differ Event rates may need an offset for the time observed.

These features motivate probability models designed specifically for counts. The Poisson distribution is a natural starting point, while the negative binomial model provides an important extension when the data are more variable than a Poisson distribution permits.

03 · Poisson models

3. The Poisson Model

Suppose \(Y_i\) is the number of events observed for subject \(i\) during a specified interval. A Poisson model assumes:

\[ Y_i\sim\operatorname{Poisson}(\lambda_i) \]

where \(\lambda_i>0\) is the expected number of events during the observation interval.

The defining Poisson relationship is:

\[ E(Y_i)=\operatorname{Var}(Y_i)=\lambda_i \]

Thus, under a Poisson model, the mean and variance are equal. This is sometimes called equidispersion.

A generalized linear-model formulation commonly uses a log link:

\[ \log(\lambda_i)=\eta_i \]

The logarithm ensures that the predicted mean remains positive.

Interpretation: coefficients on the log scale become multiplicative effects after exponentiation. For example, if a covariate coefficient is \(\beta\), then \(e^\beta\) is the multiplicative change in expected count associated with a one-unit increase in that covariate, holding other model terms constant.
04 · Exposure time

4. Modeling Event Rates With an Offset

Counts are strongly influenced by how long a subject is observed. A subject observed for 24 hours generally has more opportunity to experience events than one observed for only 6 hours.

Rather than modeling the raw count alone, it can be useful to model an event rate. If \(T_i\) is the observation time, a Poisson model can be written:

\[ \log(\lambda_i)=\log(T_i)+\eta_i \]

The term \(\log(T_i)\) is an offset. Its coefficient is fixed at one.

Equivalently, the model can be expressed in terms of the event rate \(r_i=\lambda_i/T_i\):

\[ \log(r_i)=\eta_i \]

This distinction is important in clinical studies. A model for the number of events and a model for the event rate are not necessarily the same scientific question.

Practical question: always ask whether subjects had comparable observation windows. If not, the observation duration may need to enter the model explicitly rather than being treated as irrelevant.
06 · Nonlinear exposure-response

6. Emax Models for Count Rates

A linear concentration effect may be inadequate when the pharmacodynamic response approaches a maximum or minimum. An Emax-type relationship can provide a more biologically interpretable nonlinear exposure-response function.

For an inhibitory effect on an event rate, one possible formulation is:

\[ r(C)=r_0\left(1-\frac{I_{\max}C}{IC_{50}+C}\right) \]

where \(r_0\) is the baseline event rate, \(I_{\max}\) represents the maximum fractional reduction, and \(IC_{50}\) is the concentration producing half of the maximum inhibition.

A count model can then use this predicted rate as its mean:

\[ Y_i\sim\operatorname{Poisson}(T_i r(C_i)) \]

The advantage is that the PD component has a recognizable pharmacologic interpretation while the observation model retains the discrete nature of the count.

Important distinction: the Emax equation describes the relationship between exposure and the expected response. The Poisson or negative binomial distribution describes how observed counts vary around that expected response.
07 · Overdispersion

7. When the Poisson Model Is Too Narrow

Real count data frequently show overdispersion: the variance is larger than the mean. This violates the basic Poisson assumption.

For example, suppose the observed mean count is 4 events per observation period but the variance is approximately 15. A Poisson model would require the variance to be approximately 4, so it would not capture the observed variability adequately.

A negative binomial model introduces an additional dispersion parameter. One common parameterization has:

\[ E(Y_i)=\mu_i \]
\[ \operatorname{Var}(Y_i)=\mu_i+\frac{\mu_i^2}{\theta} \]

where \(\theta>0\) controls the amount of overdispersion.

As \(\theta\) becomes large, the extra-variance component becomes small and the distribution approaches the Poisson case.

ModelMeanVarianceTypical use
Poisson \(\mu\) \(\mu\) Counts with approximately equidispersed variability
Negative binomial \(\mu\) \(\mu+\mu^2/\theta\) Counts showing overdispersion
08 · Excess zeros

8. What If There Are Too Many Zeros?

Some PK/PD count endpoints contain a very large proportion of zero observations. For example, many subjects may experience no events during a particular observation period, while a smaller subgroup experiences repeated events.

A standard Poisson or negative binomial distribution may underestimate the probability of zero.

One approach is a zero-inflated model, which combines two processes:

  1. A process that generates structural or excess zeros.
  2. A count-generating process that can produce zero or positive counts.

A simplified zero-inflated formulation introduces a probability \(\pi_i\) of belonging to the excess-zero state. The remaining probability \(1-\pi_i\) follows a count distribution.

For a zero-inflated Poisson model:

\[ P(Y_i=0)=\pi_i+(1-\pi_i)e^{-\lambda_i} \]

while for \(y>0\):

\[ P(Y_i=y)=(1-\pi_i)\frac{e^{-\lambda_i}\lambda_i^y}{y!} \]

The zero-generating process can itself be related to covariates or exposure, although the scientific interpretation should be justified rather than added solely to improve fit.

09 · Repeated observations

9. Repeated Count Measurements

PK/PD studies frequently collect multiple count measurements from the same individual. These observations are correlated because they come from the same subject.

A model that treats every observation as independent can therefore underestimate uncertainty.

Several approaches can account for within-subject dependence:

  • Subject-level random effects to represent unexplained differences in baseline event rates.
  • Population PK/PD models with inter-individual variability.
  • Generalized linear mixed models for repeated count outcomes.
  • Marginal models using methods such as generalized estimating equations.
  • Joint longitudinal event models when the scientific structure requires a more complex treatment of time and event generation.

A simple random-intercept count model might be written:

\[ \log(\lambda_{ij})=\log(T_{ij})+\alpha+b_i+\beta C_{ij} \]

where \(b_i\) is a subject-specific random effect and \(j\) indexes observations within subject \(i\).

PK/PD interpretation: the random effect can represent unexplained subject-to-subject differences in the underlying event rate after accounting for measured covariates and drug exposure.
10 · Time-varying exposure

10. Counts Driven by Time-Varying Concentration

A particularly important PK/PD situation occurs when concentration changes substantially during the period over which events are counted.

Suppose the instantaneous event rate is \(r(C(t))\). The expected cumulative number of events over an interval from \(t_1\) to \(t_2\) can be represented as:

\[ \Lambda(t_1,t_2)=\int_{t_1}^{t_2}r(C(t))\,dt \]

A count accumulated over that interval can then be modeled using:

\[ Y\sim\operatorname{Poisson}\left(\Lambda(t_1,t_2)\right) \]

This formulation is particularly useful because it separates two ideas:

  1. The PK model determines \(C(t)\).
  2. The PD model converts \(C(t)\) into an instantaneous event rate.

Integration then converts the time-varying rate into the expected number of events over the observation interval.

Key modeling insight: if the pharmacodynamic effect depends on concentration throughout an interval, using only a single concentration measurement may discard important information contained in the PK profile.
11 · Delayed effects

11. Delayed Count Responses

The observed event rate may not respond instantaneously to plasma concentration. A delay can occur because of effect-site equilibration, downstream biological processes, turnover, or other mechanisms.

An effect-compartment model can introduce an effect-site concentration \(C_e(t)\):

\[ \frac{dC_e(t)}{dt}=k_{e0}\left[C(t)-C_e(t)\right] \]

The count-response model can then use \(C_e(t)\) instead of plasma concentration:

\[ \log(r(t))=\alpha+\beta C_e(t) \]

More complex count models can combine delayed exposure with Emax, turnover, or other pharmacodynamic structures.

The central principle remains the same: PK describes exposure, the PD model describes how exposure determines the expected rate, and the count distribution describes observation variability.

12 · Worked example

12. Worked Example: A Poisson PK/PD Model

Consider a hypothetical study in which the number of events observed during a 12-hour period is modeled as a function of drug concentration. Suppose the PK model predicts a concentration of 2 mg/L during the relevant observation period.

Step 1: Specify the count model

Assume:

\[ Y\sim\operatorname{Poisson}(\lambda) \]

and use the exposure-response relationship:

\[ \log(\lambda)=\log(T)+\alpha+\beta C \]

Suppose \(T=12\) hours, \(\alpha=-3.0\), and \(\beta=-0.40\).

Step 2: Calculate the log expected count

\[ \log(\lambda)=\log(12)-3.0-(0.40)(2) \]

Since \(\log(12)\approx2.485\):

\[ \log(\lambda)\approx2.485-3.0-0.8=-1.315 \]

Step 3: Convert back to the expected count

\[ \lambda=e^{-1.315}\approx0.268 \]

The model therefore predicts approximately 0.27 events during the 12-hour observation period.

Step 4: Interpret the exposure effect

The concentration coefficient is \(\beta=-0.40\). A one-unit increase in concentration multiplies the expected event rate by:

\[ e^{-0.40}\approx0.67 \]

Thus, under this hypothetical model, each 1 mg/L increase in concentration is associated with approximately a 33% multiplicative reduction in the expected event rate, holding the other model terms constant.

What the example demonstrates: the PK model supplies concentration, the PD relationship translates concentration into an expected event rate, and the Poisson model describes the resulting discrete count.
13 · Worked extension

13. When the Negative Binomial Model Is More Appropriate

Suppose the same study produces counts with a mean of 2 events per observation period but a variance of 10.

The Poisson model would imply:

\[ \operatorname{Var}(Y)=E(Y)=2 \]

but the observed variance is much larger than 2. This suggests overdispersion.

A negative binomial model can instead allow:

\[ \operatorname{Var}(Y)=\mu+\frac{\mu^2}{\theta} \]

For example, if \(\mu=2\) and \(\theta=0.5\):

\[ \operatorname{Var}(Y)=2+\frac{2^2}{0.5}=2+8=10 \]

The negative binomial model therefore has enough flexibility to reproduce this hypothetical mean-variance relationship.

Do not confuse overdispersion with a pharmacologic effect. Extra variability can arise from biological heterogeneity, unmeasured covariates, event clustering, model misspecification, or other sources. A dispersion parameter describes the statistical variability; it does not automatically explain its biological cause.
14 · Model selection

14. Choosing a Count-Data PK/PD Model

The appropriate model depends on the scientific question, distribution of the counts, sampling structure, exposure pattern, and amount of information available in the data.

SituationPotential modelKey issue
Counts approximately equidispersed Poisson Mean-variance relationship is plausible.
Variance substantially exceeds mean Negative binomial Allows overdispersion.
Large excess of zeros Zero-inflated or hurdle model Separates zero-generating and count-generating processes.
Different observation durations Count model with offset Accounts for opportunity time.
Repeated observations per subject Mixed-effects or marginal count model Accounts for within-subject dependence.
Strongly time-varying concentration Integrated exposure-rate model Uses the full concentration-time trajectory.
Delayed pharmacologic response Effect-compartment or turnover-linked model Separates plasma exposure from delayed effect.

Model selection should therefore be driven by both data characteristics and the scientific mechanism being investigated.

15 · Interpretation

15. Interpreting Parameters in Count PK/PD Models

Parameter interpretation depends on the link function and the chosen pharmacodynamic model.

Log-link coefficients

For:

\[ \log(\lambda)=\alpha+\beta C \]

the quantity \(e^\beta\) is the multiplicative change in expected count for a one-unit increase in concentration.

Rate ratios

If \(e^\beta=0.70\), the expected rate is multiplied by 0.70 for a one-unit increase in the predictor. This corresponds to a 30% reduction in the expected rate under the model.

Emax parameters

In an inhibitory Emax model, \(I_{\max}\) describes the maximum modeled fractional inhibition, while \(IC_{50}\) describes the exposure associated with half of that maximum effect.

Random effects

A subject-level random effect represents unexplained heterogeneity in the underlying event process after accounting for the fixed effects and other model components.

Interpret carefully: a statistically estimated association between concentration and count does not by itself establish a causal pharmacologic mechanism. Interpretation depends on the model structure, study design, covariates, exposure measurement, and adequacy of the PK/PD assumptions.
16 · Diagnostics

16. How Should Count PK/PD Models Be Evaluated?

A count model should be evaluated using diagnostics appropriate for both its PK and PD components.

  • Observed versus predicted counts: compare the distribution of observed responses with model predictions.
  • Prediction-corrected visualizations: useful when concentration and event rates vary substantially across subjects or time.
  • Residual diagnostics: investigate systematic discrepancies between observations and predictions.
  • Mean-variance behavior: check whether the chosen distribution can reproduce the observed dispersion.
  • Zero frequency: compare predicted and observed proportions of zero counts.
  • Time trends: examine whether systematic changes remain unexplained across the observation period.
  • Individual variability: assess whether subject-level differences are adequately represented.
  • PK diagnostics: evaluate the concentration model independently of the count-response component.

For a population PK/PD model, simulation-based diagnostics can be especially useful because they compare the observed data with datasets generated under the fitted model.

17 · Limitations

17. What Count PK/PD Models Do Not Tell Us Automatically

A flexible statistical model can reproduce observed count distributions without necessarily identifying the underlying biological mechanism.

  • A good count distribution does not prove a biological mechanism.
  • Excess zeros require interpretation. Zero inflation should not automatically be assumed simply because many observations are zero.
  • Overdispersion has multiple possible causes. A negative binomial model describes extra variability but does not identify its source.
  • Exposure-response relationships can be confounded. Covariates related to both exposure and outcome may need consideration.
  • Sparse PK sampling can limit the PD analysis. An uncertain concentration-time profile propagates uncertainty into the predicted response.
  • Parameter identifiability matters. Flexible models with many parameters may not be supported by the available data.
  • Extrapolation requires caution. Predictions at concentrations or time points outside the observed data depend strongly on model assumptions.
Modeling principle: count-data PK/PD models should be judged by whether they provide an adequate and interpretable representation of the scientific question, not simply by whether they produce the smallest possible residual error.
18 · Practical workflow

18. A Practical Count PK/PD Modeling Workflow

  1. Define the pharmacodynamic endpoint. Clarify exactly what event is being counted and over what observation interval.
  2. Explore the count distribution. Examine the proportion of zeros, mean, variance, skewness, and event frequency.
  3. Develop or specify the PK model. Obtain individual or population concentration-time predictions appropriate for the analysis.
  4. Define the exposure-response relationship. Consider linear, Emax, sigmoid Emax, turnover, effect-compartment, or other scientifically motivated functions.
  5. Select an observation distribution. Consider Poisson, negative binomial, zero-inflated, hurdle, or another appropriate count model.
  6. Account for exposure duration. Use an offset or an integrated event-rate formulation when observation periods differ.
  7. Account for repeated measurements. Introduce subject-level random effects or another appropriate dependence structure.
  8. Estimate parameters. Use an estimation method appropriate for nonlinear and/or hierarchical PK/PD models.
  9. Evaluate diagnostics. Examine both PK predictions and count-response predictions.
  10. Assess identifiability and uncertainty. Consider parameter precision, correlations, bootstrap or simulation-based assessments where appropriate.
  11. Simulate and interpret. Use the final model to investigate exposure-response relationships and clinically relevant scenarios while recognizing model uncertainty.
19 · Putting the pieces together

19. The Full Count-Data PK/PD Model

A useful conceptual hierarchy is:

\[ \text{Dose} \rightarrow \text{PK parameters} \rightarrow C_i(t) \rightarrow \text{PD exposure-response} \rightarrow r_i(t) \rightarrow \text{count distribution} \rightarrow Y_{ij} \]

Each layer answers a different question:

LayerQuestion
Dose/inputHow was drug administered?
PKWhat concentration or exposure does the subject experience?
PDHow does exposure alter the expected event rate?
Observation modelHow do actual counts vary around the expected event process?
Variability modelHow do subjects differ from one another?

This decomposition is one of the most useful ways to think about pharmacometric count models. A model can be mechanistic in its PK and PD components while still using a probabilistic distribution to describe how discrete observations arise.

20. Key Takeaways

  • Count endpoints are discrete, nonnegative outcomes and require statistical models appropriate for their distribution.
  • The Poisson model is a natural starting point but assumes that the mean and variance are equal.
  • Negative binomial models allow overdispersion when the observed variance exceeds the mean.
  • Zero-inflated and hurdle models can be considered when the data contain an unusually large number of zero observations.
  • An offset can account for differences in observation time when modeling event counts or rates.
  • PK models provide concentration-time profiles that can be linked to count-based pharmacodynamic responses.
  • Linear, Emax, sigmoid Emax, effect-compartment, and turnover relationships can be used when scientifically appropriate.
  • Repeated count observations require attention to within-subject correlation and between-subject variability.
  • When concentration changes during an observation interval, integrating the exposure-dependent event rate can preserve information from the full PK profile.
  • Count-distribution parameters describe statistical variability and should not automatically be interpreted as biological mechanisms.
  • Model diagnostics should assess both the PK component and the count-response component.
  • The goal is not simply to fit counts well; it is to construct an adequate, interpretable model that answers the scientific PK/PD question.
Next step

Where to Go Next

A natural progression is to study PK/PD models for binary and categorical endpoints, followed by recurrent-event models, time-to-event PK/PD models, longitudinal count models, and joint PK/PD models for multiple endpoint types.

For count endpoints specifically, an important next step is to explore how Poisson and negative binomial models are implemented in population PK/PD frameworks, including inter-individual variability, covariate effects, time-varying exposure, and simulation-based model evaluation.

← Back to Pharmacokinetics Tutorials