The odds ratio compares event odds, not event probabilities. Let group 1 denote the elective group and group 0 the reference group. Their fitted event probabilities are and . Thus
The risk ratio is similarly about . The unadjusted observations show a lower adverse-event frequency in the elective group, rather than an increase. This is an association, not evidence that choosing the procedure prevents adverse outcomes. The direction is opposite to the reported adjusted odds ratio above one; the two analyses compare different populations or different conditional risks.
Zero observed events do not mean that the underlying event probability cannot be estimated. For independent observations having a common Bernoulli distribution, the binomial likelihood with no events is , maximized at . A zero-event binomial upper confidence bound shows the remaining uncertainty: the one-sided 95% upper bound solves , giving
Thus the point estimate is zero, but a nonzero mortality risk is compatible with the observations. This bound is an illustration under independent equal-risk sampling; clustered data or unequal risks require their own uncertainty calculation.
The empirical unadjusted odds ratio is also defined:
Its log odds ratio is , so the ordinary normal approximation for a log-odds confidence interval is unavailable. Exact likelihood-based limits can still describe uncertainty; a specified continuity correction would instead yield a finite, method-dependent point estimate.
In an unpenalized logistic regression with a separate coefficient for elective exposure, every exposed death outcome is zero. Decreasing that coefficient toward increases the exposed observations' likelihood contributions and leaves the reference observations unchanged. This is quasi-complete separation: there is no finite ordinary maximum-likelihood estimate of the exposure coefficient, even after adding background predictors. It is reasonable to say that the usual finite adjusted coefficient could not be fitted; it is too strong to say that no risk estimate or statistical information is possible. A specified penalized likelihood or Bayesian inference with proper coefficient priors can provide a finite adjusted estimate, whose dependence on the regularization must be reported.
Write the logistic regression as
where denotes elective exposure and contains the measured background predictors. At fixed , changing from zero to one changes the log odds by , so the adjusted odds ratio is . If is the estimated coefficient covariance matrix, then
Use the clinic-cluster sandwich covariance matrix if that is how within-clinic dependence is allowed for. The interval is first calculated on the coefficient scale and then exponentiated; one does not add and subtract a standard error directly from the odds ratio. This is a large-sample Wald confidence interval; profile-likelihood limits are another option when the likelihood shape warrants them. If exposure interacts with background variables, there is no single common conditional odds ratio: its logarithm includes the corresponding interaction terms.
There is an apparent reversal, but not a mathematical contradiction. The crude odds ratio averages over the actual background distribution in each group, whereas the adjusted logistic regression compares groups at the same fitted background values. Strong confounding could make those distributions very different: for example, elective patients might disproportionately come from low-risk backgrounds or clinics, while the reference patients come from higher-risk backgrounds. The Simpson paradox can then reverse the marginal comparison even when every conditional comparison favours the same direction.
The noncollapsibility of the odds ratio can also make marginal and conditional odds ratios differ in magnitude. It does not, by itself, explain a sign reversal if both groups have the same covariate distribution and the common conditional effect has one sign: if for every , averaging over the same distribution of still gives a larger exposed risk. A genuine reversal therefore requires differing background distributions, heterogeneous effects or another change in what is being compared. The observed reversal is a reason to investigate these issues, not proof of a programming error.
Using the reference event rate as the background-risk benchmark gives
This is the expected count if the elective group had the reference group's baseline risk and the procedure added no effect. It is substantially above the observed count, illustrating the importance of the background-risk comparison.
Similarity of background factors alone does not fix the elective group's event risk if the procedure itself changes it. If one additionally retained the reported common adjusted odds ratio and used as the common baseline risk, then conversion from odds to probability would give
These are different assumptions: about 25 is the baseline/no-effect benchmark; about 64 includes an odds multiplier of 2.7.
As a rough rare-event calculation, divide the observed elective-group event count by the reported adjusted odds ratio:
For a homogeneous illustrative risk, the exact odds conversion starts from and gives
The corresponding baseline risk is about , compared with in the observed reference group, roughly seven times lower. Thus taking the adjusted result literally implies exceptionally low background risk among the elective patients.
This is a diagnostic approximation, not an identified mean of potential outcomes obtainable from the aggregate table. A conditional odds ratio cannot generally be inverted at an aggregate mean: individual background risks are needed for outcome standardization. Interpreting the calculation causally also requires conditional exchangeability, the positivity assumption and a correctly specified outcome model. At very small risks the rare-event approximation makes the estimate of roughly three events useful for checking the plausibility of the adjustment.
The groups were not formed by randomization. Their background health, access to care, clinic, country and reasons for selecting a delivery method can predict both the method and the outcome, creating confounding and selection bias. Moreover, the label describing the reference delivery may be determined after labour: patients whose attempted nonoperative delivery develops a complication can move into an operative category, leaving a selected uncomplicated reference group. Comparing intended strategies would avoid treating this post-baseline classification as a baseline assignment.
A useful comparison would therefore align eligibility and follow-up time, compare intended delivery strategies among patients genuinely eligible for both, and account for sufficient pretreatment predictors. Logistic regression cannot create comparable patients where the positivity assumption fails or remove unmeasured confounding.
The displayed information does not establish increased maternal mortality caused by elective exposure. There are no observed deaths in that group, and the reported adjusted estimate concerns a composite adverse outcome, not death alone. A composite can show an association driven by nonfatal components without identifying a mortality effect.
If the logistic regression and its adjustment are correct, its confidence interval supports an adjusted association with the composite outcome. Calling that association a causal increase in risk additionally requires a defensible comparison group, adequate control of confounding, valid outcome classification and a well-defined intervention. The crude result is in the opposite direction, and the implied very low counterfactual baseline risk deserves examination. Conversely, zero deaths does not prove absence of harm. The justified conclusion is an association conditional on model and study assumptions, with mortality and morbidity distinguished.
A reversal this large calls for an audit, but the aggregate table cannot identify a particular error. Check the outcome and exposure coding, the reference category, the subset used in each analysis, missing-data exclusions, denominators, weights, and whether the reported coefficient actually corresponds to the intended comparison. Reversing an exposure contrast or exponentiating the wrong fitted coefficient would change the reported odds ratio. Conditioning on variables affected by delivery, or including inappropriate interactions, could also change the causal inference rather than merely improve precision.
Start by reproducing the crude odds ratio from an independent two-by-two calculation. Then fit progressively adjusted logistic regressions, recording how the coefficient and analysis population change; inspect within-clinic comparisons, sparse cells and separation. For an ordinary likelihood fit, check the fitted expected event count against the observed count and verify that changing only to cluster-robust standard errors leaves the fitted coefficients unchanged. A sandwich covariance matrix corrects uncertainty for clustered data; it does not by itself turn a crude odds ratio below one into an adjusted odds ratio above one. Adding clinic effects, using weights or changing the model can change the point estimate and must be distinguished from that variance correction.
Programming or reporting error is a possibility to check, not a conclusion proved by the reversal. Strong legitimate confounding remains another explanation.
Use a concurrent comparison: test the same specimens for both cocaine and mephedrone, rather than treating the historical cocaine percentage as an exactly known 2010 parameter. Assume representative sampling of privates, effectively independent specimens, stable underlying rates during the sampling period, and sufficiently accurate assays. I use a two-sided 5% test of equal positive-test probabilities, with 80% statistical power at and . This is a design to distinguish the rates at a twofold alternative; a significance test does not prove that their ratio is exactly two.
The paired design needs the joint positive-test distribution. For specimen , write and . Put and
Then and . Under equal marginal rates, the two discordant outcomes have equal probabilities; conditional on the total number of discordant specimens, their split is a fair binomial distribution. This gives the McNemar test. Its large-sample version rejects for a sufficiently large absolute difference between the discordant counts, divided by their estimated standard deviation.
For planning, suppose simultaneous positives are negligible, so . Under the alternative the difference in positive counts has mean and standard deviation ; the approximate upper null rejection boundary is . Requiring 80% upper-tail rejection probability gives the paired binary sample size calculation
Add the mephedrone assay to about 5,000 existing tests, roughly ten weeks at 500 per week. An exact conditional-power calculation under the negligible-overlap model gives about at 4,707 specimens and at 5,000, so the rounding also compensates for the conservative discrete test. If positivity for the two drugs were independent within a specimen, , giving a very similar requirement of about 4,676. For the stated marginal rates, , so negligible overlap is a conservative variance choice within this approximation. Substantial co-use reduces the discordant proportion and changes the necessary size. Repeated tests on the same person, unit-level clustered data or inaccurate assays can instead reduce effective information and require more specimens.
A pre-specified one-sided 5% comparison would use in place of and require about 3,708 specimens before allowing for discreteness under the negligible-overlap assumption. These are different testing conventions. Treating the historical 1% as fixed would give a one-sample calculation, but would ignore uncertainty or changes in the actual 2010 cocaine rate.
Model deaths in disjoint equal-duration periods as independent observations with Poisson distributions with comparable population exposure and ascertainment. The expected before and after counts are and . Their difference has
The expected signal relative to its standard deviation is therefore
Under the null of equal rates, condition on : the first-period count has a binomial distribution with parameters and . At a total near 720, the two-sided 5% rejection boundary for is approximately . Under the proposed alternative, conditional on that total, its mean is and its variance is . Thus at the normal approximation gives power approximately
The lower-tail rejection probability is negligible at this alternative; allowing the Poisson total to fluctuate and using discrete rejection cutoffs changes the approximation slightly: an exact two-sided conditional test has about power under these Poisson means. Two years on each side should have adequate power for a 20% reduction under this model, though a particular realization can still fail to detect it.
This conclusion needs stable recording of drug-related deaths, comparable exposure denominators and no substantial overdispersion or temporal dependence. A change in population size, certification practice or other drug use can affect the comparison. Detecting a decline does not establish that mephedrone caused it: attributing displacement requires a credible comparison of potential outcomes, using an otherwise expected trend or other controls for changes occurring at the same time.
Expected death counts are the number of users multiplied by the death risk per user, with matching time windows and definitions. Relative to the MDMA benchmark, the proposed use prevalence contributes a multiplier of and the per-user fatality risk contributes a multiplier of . Hence
This assumes comparable user exposure durations and recording of single-drug deaths. Population death counts alone would not identify a per-user risk ratio without the prevalence denominator.
On the stipulated figures, a 20% decline from 200 cocaine-related deaths means about 40 fewer deaths, against about 10 attributed to mephedrone:
That bookkeeping is relevant to a population-harm assessment only if the avoided deaths really result from substitution, the new deaths are counted comparably, and overlapping drug attributions are not counted twice. A change in the legality of one drug is an intervention affecting behaviour; the before-and-after association alone does not identify its causal effect.
Distinguish per-user danger from total population harm. More use can raise total deaths even for a less dangerous drug, and an increase can involve new users who would otherwise use no drug. Conversely, restricting a substitute may move users back to more dangerous alternatives. The relative fatality risks do not mechanically determine legal classification: nonfatal harm, dependence, dosage and purity, co-use, the composition of users, enforcement and supply effects, and uncertainty in the estimates all matter. Any policy assessment should compare plausible behavioural responses to the alternatives, including displacement of both cocaine and MDMA, rather than extrapolate from ten deaths alone.
The hypothetical net reduction is a reason to examine harm reduction and substitution carefully, not sufficient evidence for a categorical legal recommendation.
Assume independent individuals and independent censoring, with the censoring law not involving the event-rate parameters. If is the survival time and its censoring time, we observe and . The exponential distribution gives
An observed event contributes , while a right-censored observation contributes , because it only says the event has not occurred by . Multiplying these survival likelihood contributions and omitting censoring factors independent of the parameters gives
Without independent censoring the censoring factors cannot generally be discarded in this way.
Let be the observed event count and the total person-time in group . Both groups are present; suppose each has . The grouped log-likelihood is
When , its derivative is and its second derivative is . Therefore the maximum-likelihood estimates are
Both events and censored observations contribute to . If , the likelihood decreases with the positive rate: its supremum is at the boundary , rather than at a finite strictly positive estimate. Writing then describes the closure estimate.
Under the null hypothesis of a common rate, the same maximization gives
Let and . The maximized linear terms cancel, since and . Thus the likelihood-ratio test uses
Interpret a zero-event summand by continuity as zero. If , both likelihood suprema are equal and : no rate comparison is informed by observed events.
Under positive common hazard, independent censoring and the usual increasing-information conditions in both groups, Wilks theorem gives , because the unrestricted model has two rate parameters and the null has one. Reject for large ; at 5%, the usual cutoff is approximately . The chi-squared calibration is asymptotic and can be poor with sparse event counts or boundary estimates.
Set and absorb the common multiplier into . The model becomes
It is a Cox proportional-hazards model; the unknown baseline does not need a parametric form. The equality hypothesis is precisely . The absolute multipliers and have a scale ambiguity, but their hazard ratio is identifiable when both groups supply information.
For an untied event at , let be the risk set just before the event, and let be the subject who fails. The conditional event probability is proportional to that subject's hazard, so the common baseline cancels:
Multiply these factors to form the Cox partial likelihood. One can maximize it and compare its maximum with its value at using a partial likelihood-ratio test, or use the corresponding score test.
Explicitly, with group risk-set sizes and observed event indicator for group 1, the score at zero and its information are
Under the null the event label has exactly this Bernoulli distribution conditional on its current risk set. Hence is the usual one-degree-of-freedom log-rank test statistic, with an asymptotic chi-squared distribution when and enough informative events are observed. Censoring can differ between groups, provided it is independent of event time within the conditioning model. If there are recorded ties, use the appropriate tied-risk-set version: for events the null variance contribution is .
For individual , let count its observed event by time and let indicate membership of the risk set immediately before . Set and . Under a common hazard function and independent censoring, a currently at-risk subject has event probability in the next short interval. Summing over the current risk set gives the conditional intensity
Equivalently, the event count decomposes as
where is the mean-zero counting-process martingale obtained by subtracting its conditional compensator. Estimating the unknown hazard increment by the observed event increment divided by the risk set size gives the Nelson–Aalen estimator
Here are the distinct observed event times and includes the subject who is about to fail. A censored observation affects subsequent risk sets, but causes no event jump. This is the requested no-ties estimator; tied event counts would produce .
The derivation also identifies the estimation error:
Thus it estimates on the time range where individuals remain at risk. It is not exactly unbiased for the entire cumulative hazard after the last risk set disappears. Its usual Nelson–Aalen variance estimator is , since the compensator variance increment of the no-ties event process is .
Keep the counting process and at-risk process notation from the introductory derivation. Because the individual hazards add, the aggregate conditional intensity is
The known individual contributions must be averaged over the current risk set, rather than over the original cohort. Define
Then estimates . Subtract the known average contribution to obtain the offset-adjusted cumulative hazard estimator
Take the quotient to be zero when . If , direct substitution gives
This establishes the target and the mean-zero estimation noise, under the usual integrability conditions. It estimates while there is a nonempty risk set; no data identify its continuation after follow-up has ended. With common known and individuals at risk throughout , it reduces to .
The estimate may decrease between events because the known offset is subtracted continuously. That is not an algebraic error: it is an unconstrained estimating-equation estimator, not automatically a nonnegative monotone cumulative hazard estimate. If such shape constraints are imposed, the fitting procedure must explicitly account for them. The working hazard model itself must satisfy .
Under the null hypothesis of equal survival distributions, the two groups have the same event hazard. Conditional on the current risk set and one event, the event is in A with probability and in B with probability . Consequently, whenever both groups are represented,
Thus a weighted sum of differences in estimated hazard increments is centered under the null. Its sign reflects which group has more events relative to its numbers at risk. The weights may depend on event time and the preceding risk sets, but must not be chosen after seeing which group failed; otherwise this conditional-centering argument fails. Positive weights emphasize selected time regions without reversing an increment's direction. Such tests can have weak power against crossing hazards whose positive and negative contributions cancel.
Let , so . Its conditional null variance is . Since the unweighted hazard difference is , the conditional variance of its weighted contribution is . Successive centered contributions form martingale differences. Their variance contributions add, providing a variance standardization for the test.
With the specified log-rank weight, put . Then
Therefore the displayed sum is exactly the unstandardized log-rank statistic
Its two-sided large-sample log-rank test uses when and information is sufficient. If one group has no remaining subjects at some event time, its event contributes zero information. Use the final observed-minus-expected expression to define the contribution as zero; the original divided expression has an undefined and the log-rank weight becomes zero there. Thus strict positivity of the proposed weights implicitly restricts the comparison to event times when both groups are at risk. Independent censoring and a valid conditional common-hazard model are required throughout.
Let be the risk set immediately before , conditional on the preceding history. Only its members can experience the next event. In a short interval , the conditional probability that subject fails is , whereas the probability of one event from the risk set is . Dividing and taking the small-interval limit gives
It is zero outside the risk set. The common baseline hazard cancels. This is the conditional event-label probability underlying the Cox partial likelihood. Conditioning at an exact continuous event time is understood by this limiting conditional-intensity argument, rather than as division by the zero unconditional probability of an event at a fixed time. We use the standard simple event process with no simultaneous events and independent censoring.
Average the covariate over its possible event subjects using the conditional probabilities from part (a). Define the risk-weighted sums
with . Then
This is the mean covariate of the next event subject, conditional on the current risk set and an event. It is generally not the unweighted average over the original sample. For it reduces to the unweighted current risk-set mean.
The difference is the observed event subject's covariate minus its conditional expected value under the working coefficient. It is the Schoenfeld function; at a fitted coefficient it becomes a Schoenfeld residual. If the conditional event-label distribution is generated by coefficient , part (b) gives
Hence its unconditional expectation is zero whenever it is integrable. Centering is at the true coefficient: data generated under do not generally make mean zero at an arbitrary trial value .
The same quantity is the score function of one conditional event factor, since
This connects its conditional centering to the usual zero-mean likelihood-score identity.
For the distinct observed event times , let and let be the risk set immediately before that event. The Cox partial likelihood is
The different risk sets already incorporate each event and any intervening censoring. Differentiating this log-likelihood gives
Therefore a finite interior maximum-likelihood estimate from the Cox partial likelihood satisfies the first-order condition
Moreover
Each summand is the conditional event-covariate variance, so the partial likelihood is log-concave. If some informative risk set has unequal covariates, the curvature is strictly negative and an existing finite root is the unique maximizer.
The finite-interior qualification is necessary. With two at-risk subjects having covariates zero and one, suppose the subject with covariate one is the sole observed event and the other is subsequently censored. Then increases strictly and has its supremum only as ; the score has no finite zero. If every event risk set has identical covariates, the coefficient is instead unidentifiable and the score is identically zero. The displayed fitted-score equation applies to the regular case in which the proportional-hazards estimate is finite.

Articles by others on the same topic (0)

There are currently no matching articles.