Log risk ratio 2026-10-07
The logarithm of a risk ratio is zero at equal risks, negative when the first risk is smaller, and positive when it is larger. For independent binomial event counts from samples , its usual delta-method variance estimate is . This approximation requires nonzero counts; zero-event arms need another procedure. Log estimates are convenient for inverse-variance meta-analysis, and exponentiation returns to the risk-ratio scale.
Odds ratio Created 2026-09-24 Updated 2026-09-24
The odds ratio is the ratio of two event odds. For rare events it is close to the corresponding risk ratio, because when is small.
For independent binomial distributions in the two trial arms, the estimate of the log risk ratio is
The delta method gives ; replacing by the sample proportion gives , where is the event count. Adding the independent arm contributions therefore gives
The standard error is . Using the stipulated normal quantile two, the approximate confidence interval is
The point estimate of the risk ratio is , corresponding to approximately 79% lower mortality risk in the transfusion arm. Exponentiating the endpoints gives an approximate 95% confidence interval for the risk ratio of . It includes one, so the trial is compatible with no difference as well as substantial benefit or some harm. The point estimate favours transfusion, but the data are too imprecise to establish a difference at the 5% level. These are large-sample approximations, especially rough with only one event in an arm. A frequentist confidence interval describes repeated-sampling coverage, not a 95% posterior probability for this fixed parameter.
Let be each trial's estimated log risk ratio, with estimated sampling variance . A fixed-effect meta-analysis models the independent estimates as , with one common true log risk ratio . Differentiating the Gaussian log-likelihood, or minimizing , gives inverse-variance weights and
The variance follows directly by adding independent variances of the weighted estimates: .
Using the printed rounded estimates and standard errors, , so
The pooled risk ratio is about . An interval using the same quantile two is on the log scale, so it includes no effect. Recomputing all trial estimates from the event counts would change the last digits because the printed log estimates and errors are rounded.
The key assumptions are independent trials, a common true treatment effect on this chosen log scale, approximately unbiased and approximately normal trial estimates, and suitable sampling-variance estimates. The common-effect assumption is stronger than merely studying the same named treatment: systematic population, treatment or design differences may produce genuine heterogeneity. For an unbiased interpretation of the pooled evidence, inclusion of studies must also not depend selectively on their results. Treating the plug-in variances as fixed is the usual approximation in the displayed variance formula.
Publication bias occurs when the availability or publication of a study depends on its results, for example their direction or statistical significance. The published studies then need not represent all studies meeting the review's eligibility criteria. This is different from unbiased studies simply having large sampling errors.
If mortality reductions favouring transfusion are more likely to be published than null or unfavourable findings, the observed log risk ratios will tend to be too negative and the pooled risk ratio too small. The apparent benefit will then be exaggerated. An ordinary meta-analysis interval ignores uncertainty about the missing evidence and may have poor coverage even if its sampling-variance calculation is correct for the studies included. The direction of bias depends on which results are preferentially made available; publication bias does not invariably favour a particular treatment.
Begin by defining the scientific target: prediction for a new patient, or estimation of adjusted covariate effects. Check event definitions, follow-up origins, right-censoring codes and any delayed entry. The analysis assumes independent patients and censoring that is noninformative conditional on modeled covariates. For fixed explanatory variables , the Cox proportional-hazards model is
with an unrestricted baseline hazard and coefficients constant over time. Report as the conditional hazard ratio for a one-unit change in the coded variable, not as a risk ratio or automatically a causal effect.
For untied event times, fit the coefficients by maximizing the Cox partial likelihood
The baseline cancels within each event risk set. Use an appropriate tied-event method, such as an Efron approximation or an exact method for a genuinely discrete event scale; the Breslow approximation for tied event times is another explicit approximation. Numerical score/information methods fit the model, and inverse information gives conventional covariance estimates for independent subjects. Report coefficient estimates, hazard ratios, uncertainty and the coding that makes their interpretation meaningful. After fitting, the Breslow estimator gives , from which provides predicted survival.
Adequacy is broader than significance of coefficients. Inspect influential observations, deviance residuals and data errors. Cox–Snell residuals should have approximately unit-exponential survival under a well-fitting model, retaining the original censoring indicators; a cumulative-hazard plot of these residuals should be near the 45-degree line. This is an overall diagnostic, not a substitute for the functional-form and proportionality checks below. For prediction, assess held-out discrimination and survival prediction calibration at prespecified time horizons with methods accounting for censoring. A high concordance index alone does not establish good calibration or correct hazard structure.
Use bootstrap or held-out cross-validation that repeats the complete modeling procedure, including imputation, variable selection and tuning. Validation of only the final fitted coefficients understates overfitting from earlier decisions. Report any substantive lack of fit rather than presenting a single time-independent hazard ratio when the data do not support that representation.
This is a sequential analysis of deviance for nested generalized linear models. Adding age to the intercept-only logistic regression reduces deviance by , with approximate p-value . Adding frailty to the age model reduces it by another , with p-value . Thus both variables have evidence of association with surgical success, under the model assumptions, and neither should be dropped solely on these results.
The second test assesses frailty adjusted for age, whereas the first assesses age before frailty is included. Sequential tests depend on term order. Evidence for age adjusted for frailty is additionally provided by its full-model Wald test, . Both fitted coefficients are negative: age and frailty are associated with lower fitted success probabilities. On the odds scale, one extra year at fixed frailty multiplies the odds by , and frailty at fixed age multiplies them by . These are odds ratios, not risk ratios, and an observational statistical association does not by itself establish a causal effect.
Because the second model is saturated, its fitted worsening probabilities are the observed proportions:
Thus the drug efficacy as a risk reduction is
and
These are reasonably similar to the published estimates of and .
The interaction coefficients provide the same quick comparison on the odds scale:
They are treatment-versus-control odds ratio. Since worsening is rare in every group, each odds ratio is close to its risk ratio, giving the approximate efficacies and .
Sample proportion 2026-10-07
For independent Bernoulli observations with success probability , the sample proportion is the success count divided by the sample size. It is an unbiased estimator with variance . It supplies the arm-specific risks in a risk ratio and the mean difference in a two-proportion comparison.