Documentation

41.35 Case 8: one exposure, three endpoint types

Three endpoint types, one exposure

What you will learn

  • Run the er command on a binary, a count and an ordinal endpoint, and read each model table and effect.
  • Reproduce an odds ratio and a rate ratio from the printed parameters by hand.
  • Tell overall exposure dependence from the effect between two active exposures, and see how a plateau separates them.
  • Notice when the best model by AIC has a parameter the data cannot determine.
  • Check an overdispersion model that turns out to be Poisson, and read what a monotone model cannot capture.

Prerequisites: Chapter 32, exposure-response analysis and Chapter 33, extended options.

The question: is a response related to drug exposure, and how strongly? The answer depends on what the response is.

The evidence: three Chapter 32 bundles (binary, count, ordinal) from one synthetic data set of 100 subjects: 33 on placebo and the rest on 100 or 200 mg. The exposure is the area under the curve (AUC), or the peak concentration (Cmax) for the ordinal analysis.

Data and the rows left out

The bundle starts with the accounting. For the responder analysis: 98 subjects (98 records); 33 placebo; 2 rows left out. The excluded-rows file says which and why:

Row Subject Reason
17 17 AUC missing
58 58 active subject with AUC ≤ 0 (active_zero = "exclude")

An active subject with a zero exposure is an inconsistency (a dosed subject with no drug measured), so it is excluded by default instead of being treated as a placebo. A placebo subject, by contrast, has an exposure of zero by design and stays in; that distinction matters in a moment.

A binary endpoint: responders

nlmx er -c 07_binary_response.er --bootstrap 50

The settings fit four models on the logit scale (linear, log-linear, Emax and sigmoid Emax), choose by AIC, select covariates by a stepwise search on the Emax model (candidates ECOG, albumin, age, sex, weight, smoking; ECOG is selected, with ΔOFV 7.057 on 2 degrees of freedom, p = 0.029), and bootstrap the best model 50 times.

Model n Parameters AIC ΔAIC Note
Linear 98 4 126.4 4.67
Log-linear 65 4 87.84 – 33 placebo subjects with C = 0 left out (a log of zero): not ranked, fitted to 65 of 98
Emax 98 5 121.7 0 best
Sigmoid Emax 98 6 142.9 – EC50 above the highest exposure; parameters not estimable: not ranked

The log-linear row has a low AIC (87.84) because it was fitted to fewer subjects, and the program refuses to rank it. A reader who compares AICs across different data has made the error the table is designed to prevent.

The best model, on the logit scale with an ECOG effect:

Parameter Estimate 95 % interval RSE Bootstrap range (50)
Intercept (logit) −1.155 −2.083 to −0.227 41 % −2.74 to −0.29
Emax 2.897 0.799 to 4.995 37 % 1.43 to 5.11
EC50 11.58 0.965 to 138.9 127 % 9.4 × 10⁻⁷ to 26.67
ECOG = 1 −1.213 −2.238 to −0.187 43 % −2.64 to −0.29
ECOG = 2 −1.322 −2.802 to 0.158 57 % −2.54 to −0.03

Fit measures: c-statistic 0.767, Hosmer–Lemeshow p = 0.684, Brier score 0.1915, McFadden R² 0.169; the likelihood-ratio test of exposure, 19.16 (p < 0.001).

Four readings follow.

  1. Exposure matters overall. The likelihood-ratio statistic of 19.16 on the added exposure parameters is far above any threshold. The probability of response, for a subject with ECOG 0, rises from 0.24 at zero exposure (the placebo) to 0.56 at the lowest active exposure (AUC 10.75) and 0.70 at AUC 27.
  2. The reported effect between active exposures is small. The er command summarises a change in exposure over the interquartile range of the active subjects, AUC 27.01 → 50.23. It reports an odds ratio of 1.386 (0.754–2.548), p = 0.293. It can be recomputed from the table. On the logit scale the Emax curve gives 2.897 × 27.01/(11.58 + 27.01) = 2.028 at the lower exposure and 2.897 × 50.23/(11.58 + 50.23) = 2.354 at the upper; the difference is 0.326, and exp(0.326) = 1.386. On this curve the response is already 70 % of its maximum at AUC 27 and 76 % at the median exposure of 36, so the interquartile step moves it little.
  3. The size of the effect between active exposures depends on the model. The same data, fitted with the linear model, give an odds ratio of 2.139 (1.353–3.381, p = 0.001) for the same step, against 1.386 for the Emax model. The linear model has the lower overall fit (AIC 4.67 higher), and the bundle ranks them, but a reader who quotes only one number has chosen a model without saying so.
  4. The EC50 is not determined. Its interval runs from 0.97 to 139, the bootstrap from nearly zero to 27, and the second binary analysis of the same data (objective response, with identical estimates) has a bootstrap of 0.19 to 110 for the same parameter. Emax is "best" by AIC (4.67 below the linear model), but the parameter that gives the model its shape is not known. Only the plateau (Emax) and the intercept are.

The observed data show the plateau as well:

Group n Median AUC Responders Proportion 95 % interval
Placebo 33 0 6 0.182 0.086–0.344
Q1 17 19.8 7 0.412 0.216–0.640
Q2 16 30.5 11 0.688 0.444–0.858
Q3 16 41.9 11 0.688 0.444–0.858
Q4 16 69.0 8 0.500 0.280–0.720

The response rises from 0.18 to 0.69 and does not rise further; the top quartile's 0.50 is lower, with an interval (0.28–0.72) that includes the others. The proportions are pooled over ECOG grades, so they are compared with a curve only after the covariate is averaged out.

The consequence for the decision is not "more exposure is better": the data show no rise in response across the three upper quartiles, and the Emax model, which the data prefer, agrees. The linear model disagrees, so the claim is "no evidence of added response", not "evidence of none", and a case for a higher dose has to rest on something other than this endpoint.

A count endpoint: events

nlmx er -c 09_count_events.er

Two analyses of the same counts are run, a Poisson and a negative-binomial regression, each on the log scale. For the Poisson analysis: 123 events on placebo, and the best model is the linear one (AIC 308.0) against Emax (308.9, ΔAIC 0.91, EC50 above the highest exposure): the two cannot be told apart, so the simpler is kept.

Quantity Estimate 95 % interval
Intercept (log rate) 1.03 0.80 to 1.26
Slope per AUC unit −0.02449 −0.03124 to −0.01774
ECOG = 1 vs 0, rate ratio 1.608 1.209–2.139
ECOG = 2 vs 0, rate ratio 1.588 1.020–2.471

By hand: the rate ratio for an AUC change of 27.01 → 50.23 (23.22 units) is exp(−0.02449 × 23.22) = exp(−0.5687) = 0.566, as the program reports (0.5663; interval 0.484–0.662). The same calculation for ECOG: exp(0.4753) = 1.608.

The covariate search is instructive. ECOG enters first (ΔOFV 11.82, 2 degrees of freedom, p = 0.003). AGE enters next (ΔOFV 5.169, 1 degree, p = 0.023), and is removed in the backward step at the same p. The same p-value, 0.023, passed the forward criterion and failed the backward one, so the backward threshold in the settings is stricter than the forward one. A covariate that passes one and fails the other is a covariate the data do not clearly need.

The negative-binomial analysis keeps all four candidate covariates in the model (ECOG, age, smoking, region; age is positive, rate ratio 1.245 for an interquartile rise, and the other two are null), and its note is the finding: no over-dispersion: the negative-binomial size is unbounded (the model is Poisson); use dispersion = "poisson". The size parameter is estimated at 195 158 with an interval of 17 to 2 × 10⁹. A negative-binomial model with a size that large is a Poisson. The Poisson run had already shown it (Pearson χ²/df = 0.84, below 1). The exposure effect is similar in both (rate ratio 0.566 and 0.553; the second adjusts for age, smoking and region as well). The negative-binomial AIC (311.5) is higher only because it counts nine parameters against four. When an overdispersion model reports an unbounded size, the answer is the simpler model, not a better one.

The observed rates follow the exposure: against placebo the rate ratios are 0.667 (Q1), 0.506 (Q2), 0.180 (Q3) and 0.289 (Q4), the last again higher than the one before.

An ordinal endpoint: adverse-event grade

nlmx er -c 08_ordinal_ae_grade.er

The response is a grade from 0 to 3 and the exposure is Cmax; the model is a proportional-odds logistic regression (three thresholds, one slope). The linear model is best (AIC 251.2; Emax 253.2, log-linear 259.6). The covariate search adds sex (ΔOFV 4.368, p = 0.037) and then removes it in the backward step, so no covariate remains.

Parameter Estimate 95 % interval
Slope per unit Cmax 0.3314 0.1835 to 0.4792
Threshold 0 | 1 0.308 −0.239 to 0.855
Threshold 1 | 2 1.583 0.960 to 2.206
Threshold 2 | 3 2.491 1.751 to 3.232

By hand: the odds ratio for an interquartile rise in Cmax (2.561 → 5.387, a change of 2.826) is exp(0.3314 × 2.826) = 2.55 (1.68–3.87), the program's value. The probability of a grade of at least k at Cmax c is 1/(1 + exp(−(0.3314 c − θ_k))). The check against the observed groups:

Group Median Cmax P(≥ 1) model / observed P(≥ 3) model / observed
Placebo 0 0.42 / 0.52 0.08 / 0.06
Q1 1.68 0.56 / 0.41 0.13 / 0.06
Q3 3.92 0.73 / 0.75 0.23 / 0.31
Q4 7.19 0.89 / 1.00 0.47 / 0.59

Every model value lies inside the interval of the observed proportion, so the straight-line model is consistent with the data. The pattern of the differences is still worth reading: the model is a little above the observed value for the lowest active quartile (0.56 against 0.41) and below it for the top (0.89 against 1.00; 0.47 against 0.59), and the observed placebo (0.52) is above the observed Q1, which a monotone model cannot produce. With 16 or 17 subjects per group these are within noise, and the table is the check that would show a larger departure. McFadden's R² is 0.084. A drug-related grade-3 event has a rising probability with Cmax (0.06 on placebo, 0.06, 0.12, 0.31 and 0.59 across the quartiles), and a decision about the maximum dose belongs to that last number, not to the average.

The decision

Question Evidence Decision Reversible?
Is response related to exposure? LRT 19.16 for the responder model yes yes
Does more exposure within the active range add response? OR 1.386 (0.754–2.548) Emax; 2.139 (1.353–3.381) linear; flat quartiles no evidence of added response; model-dependent yes
Is the EC50 known? RSE 127 %; bootstrap 0 to 27 no; report the plateau, not the EC50 yes
Is event rate related to exposure? rate ratio 0.566 (0.484–0.662), Poisson, no overdispersion yes, and falling yes
Does the adverse-event grade rise with Cmax? OR 2.55 (1.68–3.87) yes; the top quartile exceeds the model yes

What this case does not show

Exposure here is a model-predicted or measured summary assigned to each subject, and exposure–response regressions are observational within a dose arm: sicker patients may have lower clearance and higher exposure, so a slope may reflect who they are and not what the drug does (the reason ECOG was a covariate). The data are synthetic and small (98 subjects). Bootstrap ranges from 50 replicates are a sign of instability, not a confidence interval to be quoted.

Review checklist

  • Do you account for every row left out, and know why?
  • Can you recompute the headline odds ratio or rate ratio from the printed parameters?
  • When two models are close in AIC, do you keep the simpler?
  • When the best model's key parameter has an interval of 0.97 to 139, do you still call it estimated?
  • Do you set a model's fitted probabilities beside the observed group proportions, including the placebo?

See the previous page, the next page and the complete case-study reference.