- Learn
- Medicine & Health Sciences
- Health Sciences
- Epidemiology and Biostatistics
- Biostatistics for Health Research
Biostatistics for Health Research
IntermediateLesson 8 of 8 in Epidemiology and Biostatistics Course
What you will learn
- Estimate and test differences in a binary outcome between groups with confidence intervals, chi-square tests and exact tests, including paired data and data stratified by a third variable.
- Estimate a difference or ratio of two proportionsSet up a 2×2 table, calculate the risk difference, risk ratio and odds ratio with 95% confidence intervals, and test two proportions with a z-test.
- Test an association with a chi-square or exact testCalculate expected counts and the chi-square statistic for 2×2 and larger tables, check when the test is valid, and use Fisher's exact test when expected counts are small.
- Analyze paired and stratified proportionsTest paired binary data with McNemar's test, use stratified 2×2 tables and the Mantel–Haenszel odds ratio to check for confounding, and recognize effect modification.
- Estimate a difference or ratio of two proportions
- Read logistic regression results in health research, turn coefficients into odds ratios with confidence intervals, and explain what adjustment for other variables does and does not achieve.
- Turn logistic regression coefficients into odds ratiosExplain the logistic model on the log-odds scale, convert coefficients into odds ratios with confidence intervals, and calculate a predicted probability.
- Use categorical predictors, units and interaction termsInterpret odds ratios for categories against a reference group, rescale continuous predictors, and read an interaction term as effect modification on the odds scale.
- Explain what adjusted odds ratios show and what they do notInterpret adjusted odds ratios as comparisons at equal covariate values, choose what to adjust for, convert an odds ratio into a risk ratio, and recognize the limits of adjustment.
- Turn logistic regression coefficients into odds ratios
- Recognize time-to-event data and censoring, estimate and read a Kaplan–Meier survival curve, and compare the survival of groups with the log-rank test.
- Recognize time-to-event data and censoringIdentify the start, event and follow-up time of time-to-event data, explain censoring and its assumption, and see why simple proportions and means mislead.
- Calculate and read a Kaplan–Meier curveCalculate the Kaplan–Meier estimate step by step, read survival probabilities and median survival from the curve, and judge its precision from the numbers at risk.
- Compare survival curves with the log-rank testExplain how the log-rank test compares observed and expected events across the whole follow-up, interpret its result, and recognize when it can mislead.
- Recognize time-to-event data and censoring
- Explain the Cox proportional hazards model, interpret crude and adjusted hazard ratios correctly, and check and report the proportional hazards assumption.
- Interpret hazard ratios from a Cox modelExplain the structure of the Cox model, interpret hazard ratios and their confidence intervals for binary and continuous predictors, and distinguish a hazard ratio from a risk ratio.
- Check proportional hazards and read Cox results tablesCheck whether hazards are proportional, respond when they are not, avoid immortal time bias, and read a Cox regression results table.
- Interpret hazard ratios from a Cox model
- Pool the results of several studies with inverse-variance weights, choose between fixed-effect and random-effects models, quantify heterogeneity, and read forest and funnel plots.
- Pool study results in a meta-analysisExplain what a meta-analysis estimates, calculate inverse-variance weights and a pooled estimate, and choose between fixed-effect and random-effects models.
- Quantify and explore heterogeneity between studiesMeasure heterogeneity with Cochran's Q, I² and τ², calculate a prediction interval, see how heterogeneity changes the pooled result, and explore its sources.
- Read a forest plot and judge small-study effectsRead every part of a forest plot, draw a conclusion from it, and use a funnel plot and sensitivity analyses to judge small-study effects and robustness.
- Pool study results in a meta-analysis
- Match a health research question to a suitable statistical method, and read results tables critically, including confidence intervals, p-values, absolute and relative effects and multiple comparisons.
- Choose a suitable method for a health research questionPick a statistical method from the type of outcome, the study design and the need for adjustment, and justify the choice for realistic studies.
- Read results tables in health research papersRead baseline tables and results tables critically: interpret estimates, confidence intervals and p-values correctly, compare absolute and relative effects, and allow for multiple comparisons.
- Choose a suitable method for a health research question
Biostatistics for Health Research study guide
1Compare proportions between groups
Binary outcomes can be compared in absolute or relative terms, and the choice changes what the result tells you. A table keeps the group and event definitions clear while confidence intervals show the uncertainty. Independent groups, repeated observations and stratified data need different analyses; identifying that structure is the first step toward choosing a valid comparison.
1.1 Estimate a difference or ratio of two proportions
A binary outcome divides each group into people with and without an event. Before calculating anything, name the event, the two groups, and the follow-up period. The direction of every effect estimate depends on those choices.
Keep the table consistent
In a wound-infection trial, treatment has 30 infections and 170 non-infections; control has 50 infections and 150 non-infections. Label these cells in that order. The risks are and .
| Measure | Calculation | Meaning |
|---|---|---|
| Risk difference | 10 percentage points lower risk | |
| Risk ratio | 40% lower risk | |
| Odds ratio | About 47% lower odds |
The risk difference has null value 0; both ratios have null value 1. Odds are , so odds and risk are different quantities. An OR approximates an RR when the event is uncommon in both groups. Here, calling the OR a 47% risk reduction overstates the relative reduction.
Put uncertainty around the difference
For independent groups, a large-sample 95% interval is
The standard error is 0.0397. The limits are , or −0.178 to −0.022. Expressed as a reduction, that is 2.2 to 17.8 percentage points. This approximation needs enough events and non-events in each group; at least five of each is a common guide.
Calculate ratio intervals on the log scale
Use
For either ratio, take the log of the estimate, add and subtract 1.96 standard errors, then exponentiate both limits. The trial gives RR 0.60 (95% CI 0.40 to 0.90) and OR 0.53 (0.32 to 0.88). The limits are symmetric on the log scale, not the ordinary scale.
Test equal proportions
The two-proportion z-test uses the pooled risk under the null:
Then , with two-sided p = 0.012. The interval used separate group risks; the test used one pooled risk. Their decisions can occasionally differ near a cutoff because the methods use different standard errors.
Check what the comparison can mean
Reversing the groups reciprocates both ratios. Changing the event from infection to remaining infection-free gives , not the reciprocal of 0.60; the OR does invert. In a case-control study, selected case and control totals do not estimate population risks. Such data support an OR, but not a directly calculated population RR or risk difference.
Key Takeaways
- Keep the group and event definitions fixed throughout the analysis.
- A risk difference is absolute; an RR and an OR are relative.
- Calculate ratio confidence intervals on the log scale, then exponentiate.
- The z-test pools proportions under the null; the difference interval does not.
- An OR describes odds, so it must not be reported as a risk reduction.
- Case-control sampling does not supply population risks.
1.2 Test an association with a chi-square or exact test
A chi-square test asks whether categorical variables are associated. For groups and a binary outcome, it asks whether all group proportions are equal. It measures the mismatch between observed counts and the counts expected under no association.
Build the expected table
For every cell,
The wound-infection trial has 80 infections among 400 people. Each group of 200 therefore has 40 expected infections and 160 expected non-infections. Expected counts describe the null model; they need not be whole numbers.
Add each cell's contribution
The statistic is . Here the four contributions are
Degrees of freedom are , giving 1 for this 2×2 table. The p-value is 0.012. For two independent proportions, the uncorrected statistic is the square of the pooled z-statistic: . They give the same two-sided test.
Extend the calculation to more groups
A cough survey records 45/300 never-smokers, 30/150 former smokers and 45/150 current smokers with cough. The overall proportion is 120/600, or 20%. Expected cough counts are therefore 60, 30 and 30; expected non-cough counts are 240, 120 and 120. Summing all six contributions gives 14.06 on 2 degrees of freedom, p < 0.001.
That result means the three proportions are not all equal. It does not identify the differing pairs. The ordinary test also does not use the ordering of smoking categories; a test for trend asks a different, ordered question.
Check the approximation before using it
Observations must be independent, with each person contributing to one cell. Enter counts, not percentages: replacing counts by percentages changes the statistic even though the people have not changed. Before-and-after observations on the same people need a paired analysis.
For larger tables, a widely used expected-count guideline allows no more than 20% of cells below 5 and none below 1. For a 2×2 table, a common teaching rule favors Fisher's exact test when the total is under 20, or is 20–40 with a smallest expected count below 5. These are guides to an approximation, not a switch based on the smallest observed count.
Use an exact test for sparse tables
Fisher's test holds row and column totals fixed and totals the probabilities of tables at least as extreme as the observed table. With adverse effects in 1/10 treated and 6/10 controls, two expected counts are 3.5. Fisher's two-sided p = 0.057, compared with the uncorrected chi-square p = 0.019: the choice matters here.
Yates's continuity correction reduces each absolute observed–expected gap by 0.5 before squaring in a 2×2 table. It lowers the trial statistic from 6.25 to 5.64, p = 0.018. Report which version was used, along with an effect estimate and interval; a small p-value alone does not show a large health effect.
Key Takeaways
- Expected counts come from table margins under no association.
- The chi-square statistic uses every cell and has (r − 1)(c − 1) degrees of freedom.
- For two independent proportions, uncorrected χ² equals z².
- Expected counts and independence determine whether the approximation is suitable.
- A global association test does not identify which pairs differ.
1.3 Analyze paired and stratified proportions
Some binary observations belong together: the same person before and after treatment, two tests on each person, or a matched case and control. Other data consist of independent people grouped into strata. Pairing changes the unit of comparison; stratification helps examine a third variable.
Count changes within pairs
A paired table classifies the two responses of each pair. Let count first-yes/second-no pairs and first-no/second-yes pairs. These are discordant pairs. McNemar's large-sample statistic is
Pairs with two yes responses or two no responses provide no direction of change, so they do not enter this statistic. In 100 matched case-control pairs, 25 have only the case exposed and 10 have only the control exposed. The statistic is on 1 degree of freedom, p = 0.011; the matched OR is .
It is the number of discordant pairs that supports the approximation. A large study can still have few changes. With few discordant pairs, use the exact binomial McNemar test: under the null, either direction has probability 0.5 among the discordant pairs. For 25 versus 10, its two-sided p-value is 0.017.
Compare within strata
To investigate smoking as a possible confounder of coffee and heart disease, construct separate case-control tables:
| Stratum | Coffee: cases/controls | No coffee: cases/controls | OR |
|---|---|---|---|
| Smokers | 60/40 | 15/10 | 1.00 |
| Non-smokers | 10/40 | 30/120 | 1.00 |
Combining the cells gives coffee 70/80 and no coffee 45/130. The crude OR is , despite no association within either smoking stratum. Smoking is associated with both coffee drinking and heart disease, producing the crude association.
Pool a common stratum effect
The Mantel–Haenszel adjusted estimate is
The smoking stratum contributes 4.8 to each sum; the non-smoking stratum contributes 6.0. Thus . The calculation preserves comparisons within strata instead of combining all cells first.
A crude–adjusted difference helps assess confounding, but causal knowledge is also needed. The variable must have the appropriate causal role. Odds ratios are also non-collapsible: conditional and combined ORs can differ even without confounding.
Keep important differences visible
If the true stratum ORs differ, a common adjusted OR can hide effect modification. ORs of 1 in non-smokers and 4 in smokers call for stratum-specific reporting. A homogeneity test, such as Breslow–Day, tests differences, but a non-significant result in a small sample does not establish equality.
Stratification also becomes sparse quickly. Three variables with three levels create 27 strata. Regression can adjust for several covariates without displaying every cross-classified table. Matched data still require a method that preserves their matching; ordinary unmatched analysis ignores the dependence within pairs.
Key Takeaways
- McNemar’s test compares the two directions among discordant pairs.
- Use an exact paired test when too few discordant pairs support the approximation.
- Stratum-specific estimates help assess confounding and effect modification.
- Mantel–Haenszel pooling estimates a common within-stratum OR.
- A changed OR alone does not establish confounding.
- Report genuinely different stratum effects separately.
2Interpret logistic regression and adjusted odds ratios
Logistic regression describes binary outcomes while accounting for several predictors. Reading it requires moving between coefficients, odds ratios and probabilities without mixing their scales. Category coding, predictor units and interaction terms determine the comparison, while the adjustment set determines which differences between people the model holds fixed.
2.1 Turn logistic regression coefficients into odds ratios
Logistic regression relates a binary outcome to one or more predictors. It models the log odds so that any fitted value can be converted into a probability between 0 and 1. A coefficient therefore needs a transformation before it becomes an odds ratio.
Read the model in two directions
The model is
The left side is the logit, or log odds. Each coefficient describes a one-unit change in a predictor with the other predictors held fixed. The intercept is the log odds when all predictors are zero; that combination may be outside the useful range of the study, such as age zero in an adult cohort.
Exponentiating a coefficient gives its odds ratio: . A zero coefficient gives OR 1; positive coefficients give ORs above 1 and negative coefficients give ORs below 1. A smoking coefficient of 0.693 gives , or twice the odds compared with non-smokers at the same values of the other predictors. The coefficient itself is not a 69.3% increase in odds.
Build an interval before exponentiating
For a coefficient with standard error 0.20,
Exponentiating gives a 95% OR interval of 1.35 to 2.96. The Wald statistic is , p < 0.001. A Wald interval excluding 1 and the corresponding two-sided Wald test below 0.05 express the same evidence. Do not add and subtract the coefficient's standard error directly from the OR; they are on different scales.
Keep the predictor's unit attached
With an age coefficient of 0.045 per year, the OR is per year. Over 10 years it is . Each year multiplies the odds by the same factor, so a 10-year change raises the one-year OR to the tenth power. Multiplying the OR by 10 would incorrectly make even a null OR of 1 become 10.
Turn a fitted logit into a probability
For the model , smoker is coded 1 or 0. A 60-year-old smoker has fitted log odds
Invert the logit using , where is the fitted log odds. This gives 0.141, or 14.1%. For a non-smoker of the same age, the logit is −2.5 and probability 0.076. Their odds have a ratio of 2, while their probabilities have a ratio of about 1.86.
A constant smoking OR across ages does not mean a constant risk difference or RR. The starting risk changes the corresponding probability comparison. In case-control data, logistic regression can estimate exposure ORs, but the sampled proportion of cases does not supply the population baseline risk. Its fitted intercept therefore cannot be used as an ordinary population-risk estimate.
Key Takeaways
- Logistic regression models log odds for a binary outcome.
- Exponentiate a coefficient to obtain its OR.
- Form a coefficient interval first, then exponentiate both limits.
- Multiply a continuous coefficient by the desired unit change before exponentiating.
- Invert the full fitted logit to calculate a probability.
2.2 Use categorical predictors, units and interaction terms
An odds ratio needs a comparison: which category, which reference group, and which predictor unit? Interaction terms add another question: does the comparison change with another variable? Read these details before interpreting the size of an OR.
Identify the reference category
A predictor with categories uses indicator variables. Each coefficient compares one category with the reference, whose OR is shown as 1.00 or “ref.” In a body mass index table, normal weight is the reference, overweight has OR 1.40 (95% CI 1.10 to 1.78), and obesity has OR 2.30 (1.75 to 3.02).
Both ORs compare with normal weight. The obesity OR does not compare obesity with overweight. To make that comparison, divide:
This gives the point estimate only. A confidence interval for that contrast needs the covariance between the two fitted coefficients. Dividing the reported lower limits and then the upper limits does not produce a valid interval.
Changing the reference changes the displayed comparisons but leaves the fitted probabilities and model fit unchanged. A meaningful, well-populated reference often gives useful comparisons. A small reference group makes its contrasts imprecise, but choosing another reference does not create information or improve the precision of an unchanged contrast.
Read coding and units literally
For a binary predictor, the OR compares code 1 with code 0. Check whether “1” means exposed or unexposed before attaching a direction. For a continuous predictor, ORs per year, per decade, per mmol/L, or per standard deviation describe different increments.
The usual continuous term assumes a straight-line relationship on the log-odds scale: each extra unit multiplies the odds by the same factor. It does not assume the probability rises by the same number of percentage points. Comparing fitted categories or flexible forms can help check whether that straight-line assumption is reasonable.
Combine coefficients when there is interaction
Suppose a model codes men as 0 and women as 1, with smoking coefficient 0.693, female coefficient 0.10, and smoking × female coefficient 0.405. For men, the smoking term contributes 0.693. For women, the smoking change contributes both the smoking and product terms:
The product-term OR is . It is the ratio of the two smoking ORs, not an additional risk ratio or a number of percentage points to add. The main smoking coefficient now describes men, the reference group, rather than an average across sexes.
Test the difference directly
An interaction interval or p-value addresses whether the smoking OR differs between groups. A significant result in women and a non-significant result in men does not answer that question: differences in sample size can change the p-values even when estimates are similar. A non-significant interaction can also reflect low power, so inspect the size and precision of the estimated contrast.
Key Takeaways
- Each categorical OR compares with the stated reference.
- Divide non-reference ORs for their point comparison; its interval needs coefficient covariance.
- Predictor units determine the increment described by an OR.
- With interaction, combine the main and product coefficients for the relevant group.
2.3 Explain what adjusted odds ratios show and what they do not
An adjusted odds ratio compares people with the same values of the other variables in the fitted model. It is a conditional association. Understanding what was adjusted for matters as much as reading the number in the table.
Read the footnote as part of the estimate
A crude OR uses the exposure comparison without covariates. An adjusted OR comes from a model containing additional variables. In the coffee and heart disease example, the crude OR of 2.53 becomes 1.00 after adjustment for smoking. The smoking distribution explains the crude association.
Adjustment addresses confounding by measured covariates included in the model. Unmeasured causes and poorly measured covariates can leave residual confounding. Selection and information biases also remain possible. An adjusted estimate alone does not establish a causal effect.
A change of about 10% between crude and adjusted estimates is sometimes used as a warning sign. In the coffee example, . But a threshold cannot decide causation. ORs are non-collapsible: adjusting for a strong prognostic variable can change an OR even when that variable is balanced between exposure groups and does not confound the association.
Choose covariates from the causal question
| Variable role | What adjustment can do |
|---|---|
| Confounder | Remove distortion through a common cause of exposure and outcome |
| Mediator | Remove part of the pathway when the total exposure effect is wanted |
| Collider | Open a spurious path between exposure and outcome |
For the total effect of salt intake on stroke, blood pressure lies on a possible pathway. Adjusting for it blocks that part of the total effect. Estimating a direct effect is a separate question needing its own causal assumptions and methods. Covariate selection therefore draws on subject knowledge and causal diagrams, not simply which variables have small p-values.
Relate an OR to risk carefully
For an unadjusted OR and reference risk ,
With OR 2 and reference risk 0.30, the corresponding RR is . At reference risk 0.01, it is about 1.98. The same OR can therefore represent different relative risks. Using one baseline risk to convert an adjusted OR is an approximation because risks vary across covariate patterns.
Count coefficients against the available events
The number of outcome events limits model information. A rough guide is about 10 events per estimated predictor coefficient; 60 events support roughly six such coefficients. A four-category variable consumes three coefficients, and interactions consume additional ones. This guide is not a guarantee: formal sample-size planning is preferred, and sparse data can yield unstable, exaggerated estimates and wide intervals.
Interpret the estimate the model was built for
Compare adjustment sets before comparing ORs across papers. Differences can reflect different conditional comparisons. Also avoid the Table 2 fallacy: the model may estimate one exposure's effect well while its other covariate coefficients do not represent their total effects. A covariate may itself have mediators in that same model. The table's rows do not automatically answer a separate causal question for every variable.
Key Takeaways
- An adjusted OR compares at equal values of the other model covariates.
- Adjustment cannot remove unmeasured confounding or repair every source of bias.
- Covariate roles depend on the causal question; total effects exclude mediator adjustment.
- Non-collapsibility can change an OR without confounding.
- OR-to-RR conversion depends on baseline risk.
- Count predictor coefficients, including category indicators and interactions, against the events available.
- Each covariate row is not automatically its own total causal effect.
3Describe survival with Kaplan–Meier curves
Follow-up studies contain both observed events and people whose eventual event times remain unknown. Survival methods use that incomplete experience through changing risk sets. Defining the start and event, reading censoring marks and tracking the numbers at risk lets you interpret a Kaplan–Meier curve and a log-rank comparison without treating every recorded time as complete.
3.1 Recognize time-to-event data and censoring
Time-to-event data ask how long it takes for a defined event to occur. Death is one possible event, but relapse, discharge and first infection are also time-to-event outcomes. The starting point and event must be defined consistently before comparing people.
Record time and event status together
Each participant contributes a follow-up time and an indicator: 1 for an observed event, 0 for a censored time. If a patient is event-free when contact ends at month 7, the event time is known to exceed 7 months. Month 7 is not the event time.
People often enter a study on different calendar dates. Measure duration from each person's own start, such as randomization or diagnosis. Someone recruited late can have a shorter available follow-up without having a different study definition.
| Follow-up ends because… | Record |
|---|---|
| The event is observed | Time to event; indicator 1 |
| The study closes before the event | Time to closure; indicator 0 |
| Contact is lost before the event | Last known event-free time; indicator 0 |
The last two situations are examples of right censoring. Withdrawal can also cause censoring. The reason matters because it helps assess whether people disappearing from follow-up differ from those who remain.
Use incomplete follow-up without calling it an event
Suppose 10 patients are followed for up to 15 months. Six die and four are censored at 3, 7, 11 and 15 months. The statement “60% died” describes observed events, but not the estimated 15-month death risk: three censored patients were not observed that long.
Deleting censored people wastes their earlier event-free experience and can bias the result. Counting their censoring times as deaths instead makes survival too low. Taking the ordinary mean of all recorded times treats incomplete durations as complete, so it understates event times.
Survival methods retain a censored person in the risk set, the people still under observation and event-free, until censoring. The person then leaves without causing a drop in estimated survival.
Separate survival from hazard
The survival function is the probability of staying event-free beyond time . It starts at 1 and cannot rise. The hazard is the instantaneous event rate among people still event-free at that time. It has units of inverse time and is not a probability; its numerical value can exceed 1 in a chosen time unit.
Ask why follow-up ended
Standard survival estimates need non-informative censoring: those censored at a time should have the same subsequent event prospects as those who remain, under the analysis's conditioning. If very ill patients leave for hospice and their later deaths are missed, their remaining observed peers are healthier. Estimated survival will then be too high.
A competing event prevents the event of interest. Death before relapse makes later relapse impossible. Treating deaths as ordinary censoring and reporting as the real-world relapse probability overstates cumulative relapse incidence. Competing-risks methods handle that probability directly. First identify whether follow-up simply stopped or a different event made the outcome impossible.
Key Takeaways
- Define the time origin and event before analyzing follow-up.
- A censored time supplies a lower bound on event time.
- Censored participants contribute to risk sets until censoring.
- Survival is a probability; hazard is an instantaneous rate.
- Censoring assumptions and competing events affect interpretation.
3.2 Calculate and read a Kaplan–Meier curve
A Kaplan–Meier curve builds estimated survival from the people still at risk at each event time. Its steps reflect events, while censoring changes the denominator for later steps. This lets people with different follow-up lengths contribute the information they actually provide.
Multiply conditional survival factors
At event time , let be the number at risk just before the time and the number of events. The fraction surviving that time is . Multiply all factors through the time of interest:
Start at 1. An event lowers the curve. A censoring mark removes a person from subsequent risk sets without lowering the curve. When an event and censoring share a recorded time, count the event first, keeping the censored person in that event's denominator.
Work through the risk sets
Ten patients have follow-up times in months of 2, 3+, 4, 6, 6, 7+, 9, 11+, 12 and 15+, where “+” marks censoring.
| Event time | At risk | Deaths | Updated survival |
|---|---|---|---|
| 2 | 10 | 1 | |
| 4 | 8 | 1 | |
| 6 | 7 | 2 | |
| 9 | 4 | 1 | |
| 12 | 2 | 1 |
At month 4, the risk set is 8 because one person died at 2 and another was censored at 3. At month 6, the two simultaneous deaths share a denominator of 7. At month 9, only 4 remain after the earlier deaths and the censoring at month 7. Keep unrounded values through the products.
At month 6, estimated survival beyond that time is 56.25%. Between event times, use the current step height. The curve stays at about 0.211 after month 12 through the last observed time at month 15; the final censoring does not make it fall to zero.
Find the median from the curve
The median survival is the first time estimated survival reaches 0.50 or lower. Here it is 9 months: the step at 6 remains above 0.50, while the step at 9 falls below it. Do not take the ordinary median of the ten recorded durations, because censored durations are incomplete. If the curve stays above 0.50 throughout observation, report “median not reached.”
Read the curve with its risk table
A late step may look large because few people remain. The fall from 0.422 to 0.211 at month 12 comes from one death among just two patients. It carries less precision than an early step supported by many people. Tables below curves show the numbers at risk at selected times; confidence bands, often based on Greenwood's formula, generally widen as information falls.
Check the vertical-axis label too. Event-free survival falls from 1, but rises from 0. Interpreting a rising event curve as survival reverses the meaning. When comparing curves, read the outcome, time scale, risk counts and intervals before judging the apparent gap.
Key Takeaways
- Kaplan–Meier survival multiplies conditional survival factors at event times.
- Censoring changes later risk sets without making the curve drop.
- The median is the first time survival reaches 0.50 or below.
- Late estimates with few at risk are imprecise.
3.3 Compare survival curves with the log-rank test
The log-rank test compares groups across the whole follow-up. It asks whether their survival distributions are the same, using the people still at risk each time an event occurs. It is not a test of just the final curve heights or the median times.
Allocate expected events at each time
Under the null, each group's share of the events follows its share of the total risk set. If 25 people in group A and 15 in group B are at risk when two deaths occur, expected deaths are
Repeat at every event time, then sum the expected and observed events for each group. Censoring affects the risk sets used in subsequent expectations. Groups do not need the same amount of observed follow-up for this calculation, but censoring must be suitable for the comparison.
Turn the accumulated gap into a test
Suppose A has 12 observed deaths and 18.6 expected, while B has 25 observed and 18.4 expected. Total observed and expected deaths both equal 37. A has fewer events than expected and B has more.
A simple observed–expected approximation is
On 1 degree of freedom this gives p = 0.030. The full two-group log-rank statistic is , where is the variance accumulated from the event-time risk sets. The totals alone do not provide that variance, so they cannot reconstruct the exact log-rank statistic. With several groups, the test has one fewer degree of freedom than groups.
Add an effect estimate
A p-value measures evidence against equal survival; it does not measure the size of the difference. An observed–expected approximation to the hazard ratio is
A research report normally pairs the comparison with a Cox hazard ratio and confidence interval, plus the curves and useful survival summaries. If a median is not reached, that fact should remain visible instead of supplying an unsupported median.
Inspect how the curves differ
The log-rank test is most powerful when the hazards are proportional. If an intervention causes early harm followed by later benefit, opposite observed–expected gaps can cancel. A large p-value can then coexist with important differences over time. Describe the crossing and consider a summary such as restricted mean survival time over a fixed follow-up horizon.
Choosing the time of greatest separation after viewing the curves and testing only there favors a striking result by construction. A time point or summary chosen in advance avoids that selection problem.
The ordinary log-rank test is unadjusted. A stratified version can account for a categorical confounder while comparing groups within strata. Cox regression is the usual next step when several covariates need adjustment and an adjusted hazard ratio is required.
Key Takeaways
- The log-rank test accumulates observed–expected differences across event times.
- Expected events use each group’s share of the risk set.
- A p-value needs an accompanying effect estimate and interval.
- Crossing curves can make the ordinary log-rank comparison uninformative.
4Interpret Cox regression and hazard ratios
Hazard ratios summarize comparisons between event rates during follow-up and can account for other predictors. Their meaning depends on which people are still at risk and whether one ratio describes the full time period. The baseline survival curve, proportional-hazards checks and correct timing of exposure turn a Cox table into an interpretable research result.
4.1 Interpret hazard ratios from a Cox model
Cox regression links predictors to the event hazard while retaining each person's follow-up time. It can account for censoring and estimate adjusted comparisons. Its hazard ratio describes an instantaneous rate among those still event-free, so it needs different language from a risk ratio.
Separate the baseline hazard from predictor effects
The proportional hazards model is
The baseline hazard is left unspecified: it may rise, fall or change shape over time. The model is called semi-parametric because the predictor effects have a specified form while the baseline hazard does not. Proportional hazards means constant ratios between comparable predictor patterns, not a constant hazard over time.
A predictor's one-unit HR is . Treatment HR 0.62 (95% CI 0.45 to 0.85) corresponds to coefficient . During follow-up, comparable treated people who remain event-free have a 38% lower instantaneous event rate than control people who remain event-free.
Read intervals on the appropriate scale
The Wald interval is . To recover the coefficient's approximate standard error from its reported interval, use
An interval excluding 1 corresponds to a two-sided Wald p-value below 0.05. A log-symmetric interval also has its estimate close to the geometric mean of the limits: . Rounding causes small differences.
For a continuous predictor, retain the unit. An age HR of 1.03 per year gives per decade. Adding ten one-year excesses gives an approximation, not the model's multiplicative comparison.
Distinguish hazard from cumulative risk
An HR of 0.5 does not mean half as many people have died by a fixed time. Under proportional hazards, for the same covariate comparison,
If control survival at 5 years is 0.40, treatment survival with HR 0.5 is . The treatment death risk is 0.368 versus control risk 0.60, giving a 5-year RR of about 0.61. The hazard was halved; the cumulative risk was not.
Nor does an HR directly specify additional survival time. With a constant hazard, halving it doubles the median survival, but the general relationship depends on the baseline survival shape. “38% longer survival” is not a valid translation of HR 0.62.
Interpret adjustment within the model
An adjusted HR holds the other covariates fixed. It can address measured confounding in the adjustment set but does not remove bias from unmeasured causes or poor measurement. For a total exposure effect, avoid adjusting for mediators, and avoid conditioning on colliders.
Cox regression uses when the event occurred and when follow-up ended. A binary analysis of “died by two years” discards event timing and needs known two-year status for everyone. When participants have unequal follow-up or censoring, keeping their time information supports the intended time-to-event comparison.
Key Takeaways
- Cox regression leaves the baseline hazard unspecified.
- Proportional hazards means a constant HR, not a constant baseline hazard.
- An HR compares instantaneous event rates among those still at risk.
- Hazard ratios multiply across predictor units.
- A time-specific risk comparison also needs baseline survival.
4.2 Check proportional hazards and read Cox results tables
A Cox results table is useful only when its comparison, time origin and assumptions fit the question. Read the reference categories, event information and adjustment footnote together. Then ask whether one hazard ratio describes the follow-up adequately.
Check proportional hazards from several sources
The proportional hazards assumption says that a comparison's HR stays constant over time. Crossing Kaplan–Meier curves strongly suggest a violation. Roughly parallel plots of against support the assumption, and Schoenfeld-residual tests look for changes in effects over time.
A non-significant test does not establish proportional hazards, especially when there are few events. Curves, residual patterns and the clinical time course should agree with the intended summary. Small random crossings need interpretation in light of the information available.
For surgery versus medication, early operative mortality might be followed by a later benefit. A single average HR near 1 could hide both. The issue is a changing comparison, even if each group's own hazard also changes with time.
Match the response to the violation
| Approach | What it permits |
|---|---|
| Separate follow-up periods | Distinct early and later HRs |
| Exposure × time term | An exposure effect that changes over time |
| Stratified Cox model | Separate baseline hazards for a stratifying variable |
| Restricted mean survival time | Average event-free time through a chosen horizon |
A stratifying variable gets no single HR of its own in that stratified model. Its role is to allow different baseline hazards while other coefficients are estimated. State the follow-up periods or restricted-mean horizon so readers know what was compared.
Avoid giving future exposure credit for earlier time
A time-varying covariate changes value, such as treatment starting after diagnosis. A time-varying effect means the effect of a covariate changes with follow-up time. These are different modeling issues.
Suppose treatment starts three months after diagnosis. Classifying eventual recipients as treated from diagnosis credits the treated group with three months they had to survive to receive treatment. This immortal time bias can make treatment look protective. Count each person's exposure status from when it actually begins, with earlier time assigned to the appropriate unexposed status.
Read the actual row and footnote
“Stage III versus stage I: adjusted HR 2.40 (95% CI 1.70 to 3.39)” means a 2.4-fold hazard among stage III patients with equal values of the other covariates. Check that stage I is the reference and read which covariates the model holds fixed. Events and person-time columns describe the data behind the estimate; they are not interchangeable with the HR.
Precision depends strongly on the number of events, alongside the predictor distribution and model complexity. A thousand participants with only 40 deaths can provide little information for a large model. About 10 events per predictor coefficient is a rough guide, not a guarantee.
An HR of 0.95 (0.60 to 1.50) permits a 40% lower through a 50% higher hazard. Calling this “no effect” discards the interval's uncertainty. A null-compatible interval can still include effects large enough to matter.
Key Takeaways
- Inspect curves and residual checks before relying on a constant HR.
- A time-varying covariate differs from a time-varying effect.
- Assign exposure from its actual start to avoid immortal time bias.
- Read reference categories, adjustment variables and events with each HR.
5Combine studies with meta-analysis and forest plots
Combining studies can sharpen an estimate, but only when their comparisons and assumptions make the pooled result meaningful. Study precision determines weights, while differences in true effects influence the model and interpretation. Forest plots show how the evidence contributes; heterogeneity measures, prediction intervals and small-study checks show where one pooled number may be insufficient.
5.1 Pool study results in a meta-analysis
A meta-analysis combines study-level comparisons of the same question. Each study contributes an estimate and its uncertainty. The aim is to learn from their combined information while retaining the comparisons each study was designed to make.
Pool estimates on a common scale
Studies must use a compatible outcome, contrast and effect measure. Pool RRs, ORs and HRs on their natural-log scales, then exponentiate the final estimate and interval. A risk difference stays on its original difference scale.
For study estimate and standard error , inverse-variance pooling uses
A smaller standard error gives more weight because it supplies more precise information. Weight is not simply the number of participants; event frequency and study design also affect precision.
Follow a numerical pool
Five trials report RRs and log-RR standard errors:
| Trial | RR | SE of log RR | Weight |
|---|---|---|---|
| A | 0.70 | 0.20 | 25.0 |
| B | 0.85 | 0.15 | 44.4 |
| C | 0.60 | 0.25 | 16.0 |
| D | 1.05 | 0.18 | 30.9 |
| E | 0.75 | 0.30 | 11.1 |
Convert every RR to its log before multiplying by its weight. The weights total about 127.4 and yield pooled log RR −0.204. Its SE is about 0.089. Exponentiating the log interval gives pooled RR 0.82 (95% CI 0.69 to 0.97), p = 0.021. Only trial C's own interval excludes 1; combining information improves precision without requiring every study to be individually significant.
Choose what effect the model estimates
A fixed-effect, or common-effect, model assumes one true effect shared by all studies. A random-effects model allows true effects to vary around a mean. Its weights are
where is the between-study variance. Adding it reduces the largest studies' relative dominance and makes weights more equal. Model choice comes from whether a shared effect is plausible across the populations and methods, not from a heterogeneity p-value. In this example, estimated variance is only about 0.002, so the random-effects result is similar: RR 0.81 (0.68 to 0.97).
Recognize alternatives and limits
Mantel–Haenszel pooling is a common fixed-effect approach for binary data, particularly with sparse events. DerSimonian–Laird is a simple estimator of between-study variance; REML generally has better performance. Hartung–Knapp–Sidik–Jonkman intervals account for uncertainty in the random-effects analysis and usually widen the interval. They can narrow it with very low observed heterogeneity; modified versions prevent that behavior.
Do not combine all trial participants into one big 2×2 table. That can mix different baseline risks and break within-trial randomized comparisons, even reversing the apparent direction. Pooling each study's comparison preserves its design. More precise pooling also cannot remove bias shared by its input studies.
Key Takeaways
- Pool compatible effect measures, using logs for ratios.
- Inverse-variance weights favor more precise estimates.
- A common-effect model estimates one shared effect; random effects estimates a mean across varying effects.
- Choose the model from the scientific question and study differences.
- Preserve study-level comparisons instead of merging all participants.
5.2 Quantify and explore heterogeneity between studies
Study estimates vary partly because of sampling error and partly because the underlying effects differ. Heterogeneity describes this second source of variation. Differences in patients, doses, settings, design and risk of bias can all matter.
Use Q to ask about excess variation
Cochran's statistic is
using common-effect weights and the common-effect pooled estimate. Under no heterogeneity, it is compared approximately with a chi-square distribution on degrees of freedom. With few studies, the test has low power; a large p-value does not establish homogeneity. A p < 0.10 threshold is often used, but it does not replace a scientific assessment of study differences.
Separate relative from absolute heterogeneity
The statistic estimates the percentage of variability in study estimates attributable to heterogeneity:
For five trials with Q = 4.22, the degrees of freedom are 4 and . If Q is below the degrees of freedom, report zero instead of a negative percentage.
The Cochrane rough bands overlap: 0%–40% may be unimportant, 30%–60% moderate, 50%–90% substantial and 75%–100% considerable. Their overlap reflects the need for context. Very precise studies can give high for small absolute differences. The between-study variance measures the size of variation on the analysis scale; for ratios, that is the log scale.
See how heterogeneity changes the result
Five studies report RRs 0.40, 0.90, 0.55, 1.20 and 0.70, with log standard errors 0.15, 0.12, 0.20, 0.18 and 0.22. They give Q = 28.7 on 4 degrees of freedom, and estimated .
The common-effect result is RR 0.71 (95% CI 0.62 to 0.82). Random effects gives RR 0.70 (0.47 to 1.04). The means are similar, but their uncertainty and targets differ. The relative weights become more equal when the between-study variance is added to every study variance.
Ask about the spread of true effects
A confidence interval describes uncertainty about the pooled mean. A prediction interval describes the spread expected for true effects in comparable settings. One approximate 95% log-scale interval is
With five studies, the t multiplier is 2.776. In the heterogeneous example, exponentiation gives roughly RR 0.20 to 2.51: substantial benefit and harm are both plausible across comparable settings. The estimate is sensitive with few studies; prediction intervals are generally more useful with around five or more and a plausible model of the effects.
Investigate explanations without overclaiming
Prespecified subgroups and meta-regression can explore heterogeneity. Compare subgroup effects directly; one significant subgroup and one non-significant subgroup do not demonstrate a difference. For independent subgroup log estimates, subtract the estimates and divide by the square root of the sum of their squared standard errors for a z-test of the difference. Meta-regression usually needs at least about ten studies, and study-level associations can be confounded. Random effects accommodates variation in a model; it does not explain the variation or make a pooled mean representative of every setting.
Key Takeaways
- Q tests excess variability and can miss heterogeneity with few studies.
- I² is relative heterogeneity; τ² measures variation on the effect scale.
- Rough I² bands require context and are not strict decision cutoffs.
- A mean-effect confidence interval differs from a prediction interval.
- Random effects does not explain why studies differ.
- Compare subgroups directly and interpret meta-regression as observational.
5.3 Read a forest plot and judge small-study effects
A forest plot places each study's effect beside the pooled result. A funnel plot asks whether effects vary with study precision. They answer different questions: the forest displays estimated effects and uncertainty, while the funnel can reveal small-study patterns needing investigation.
Read the forest plot's symbols
Each study row shows a point estimate as a square and its confidence interval as a horizontal line. The square's area represents its weight. The vertical null line is at 1 for ratios and 0 for differences. A diamond shows the pooled result: its center is the estimate and its width is the interval.
Ratio axes use a log scale, so 0.5 and 2 lie equally far from 1. Read the outcome and “favors” labels before judging benefit. An RR below 1 favors treatment for death or infection, but a ratio below 1 for recovery would mean fewer recoveries.
Follow a deliberate reading order
Start with the outcome, comparison and effect measure. Then inspect study estimates and intervals, their directions, and which studies carry most weight. Read the diamond with the heterogeneity statistics and any prediction interval. The pooled result's location does not tell you whether individual settings have similar true effects.
In the five-trial example, trial B supplies 34.9% of the weight and the largest square. Trial D has RR 1.05 (95% CI 0.74 to 1.49), so its point estimate favors harm but its interval allows benefit too. Four study intervals cross 1. The pooled RR is 0.82 (0.69 to 0.97), with .
This is evidence of a modest relative reduction in the harmful outcome, with little observed heterogeneity. It is not undermined simply because most trials are individually non-significant: each small trial may be too imprecise to show an effect alone. Counting significant studies gives a small imprecise trial the same vote as a large precise one and discards their actual estimates.
Look for small-study patterns
A funnel plot places effect estimates horizontally and standard errors or precision vertically, usually with the most precise studies at the top. Less precise estimates spread out more widely. In the absence of selective reporting and other distorting patterns, the distribution can resemble a symmetric inverted funnel.
A gap among small, null-result studies can suggest missing evidence. But asymmetry is not proof of publication bias. Small studies may recruit higher-risk patients with genuinely larger effects, have different methods, or simply vary by chance.
Check robustness with suitable methods
Tests of asymmetry generally need at least ten studies with different sizes or standard errors. Choose a test suited to the effect measure: the original Egger test can have artifacts for ORs, so an effect-specific alternative may be needed. A symmetric plot or non-significant test also cannot rule out missing evidence.
Sensitivity analyses repeat the pool after justified changes, such as excluding studies at high risk of bias or using a different model. If conclusions change substantially, show the changes and investigate their source. Stability across checks supports robustness to those particular decisions, not immunity to every possible bias.
Key Takeaways
- Forest plots display estimates, intervals, study weights and a pooled diamond.
- Check the outcome before interpreting which direction means benefit.
- Pool information instead of counting significant studies.
- Funnel asymmetry has several possible explanations.
- Use suitable asymmetry tests and sensitivity analyses to assess robustness.
6Choose methods and read results in health research
A health research question becomes an analysis by specifying the outcome, comparison, dependence and follow-up. Reading its results then requires checking what was estimated, who was analyzed and how uncertainty was handled. The same habits help distinguish a useful effect from a small p-value and a planned primary finding from one selected among many comparisons.
6.1 Choose a suitable method for a health research question
Choose an analysis by working backward from the research question. Identify the outcome and how it was observed, then the dependence between observations and the adjustment needed. A familiar method is useful only when it matches that structure.
Identify the outcome and design
A binary outcome asks whether something happened by a defined horizon. A time-to-event outcome retains when it happened and when observation ended. A continuous outcome is a measurement, while a rate counts events over person-time. Check whether people are independent or observed in matched pairs or repeatedly.
| Research structure | Main methods |
|---|---|
| Independent binary groups | Chi-square or two-proportion z; Fisher for sparse tables |
| Paired binary responses | McNemar; matched OR |
| Binary outcome with several covariates | Logistic regression; adjusted OR |
| Time-to-event with censoring | Kaplan–Meier, log-rank, Cox regression |
| Compatible study estimates | Meta-analysis and forest plot |
| Continuous outcome | t-test or linear regression |
| Count over person-time | Poisson regression; rate ratio |
These methods answer different parts of a question. A test supplies evidence about a null; an effect estimate and interval describe magnitude and precision. A Kaplan–Meier curve describes survival, the log-rank test compares distributions, and Cox regression estimates hazard ratios with or without adjustment.
Preserve pairing and adjustment
If the same 150 people receive two rapid tests, the question concerns within-person positive/negative differences. McNemar's test uses their discordant responses; independent-group chi-square treats the paired results as if unrelated.
One or two confounders can be handled with stratified tables and a Mantel–Haenszel OR. Several covariates often call for regression. Matched case-control sets with covariates need an approach that respects the sets, such as conditional logistic regression, instead of ordinary unmatched regression.
Apply the sequence to research questions
For 2,000 adults followed 3–8 years for a first heart attack, compare activity groups using survival methods. Kaplan–Meier shows event-free experience; Cox regression can adjust for age, sex and smoking. Different follow-up lengths make a single “heart attack by study end” proportion misleading.
For 300 cases of a rare cancer and 600 controls, use logistic regression to relate exposure to the case-control outcome while adjusting for age and smoking. The effect is an adjusted OR, not a directly estimated population risk.
For 12 trials reporting death risks at a comparable horizon, combine their RRs in a meta-analysis. Preserve each trial's contrast and justify whether a common effect or mean across varying effects is the target. The forest plot then shows how study estimates support the pool.
Decide before looking for favorable results
Write the primary outcome, comparison, adjustment and analysis in a protocol or statistical analysis plan. Trying several methods and choosing the smallest p-value rewards chance variation. An unexpected pattern can motivate further analysis, but readers need to know it was exploratory. The method should follow the question and observation process, not whichever output appears most convincing.
Key Takeaways
- Start with outcome type, dependence and follow-up.
- Pairing must be preserved in binary comparisons.
- Use regression when the question requires several covariates.
- Retain timing and censoring for time-to-event questions.
- Prespecify the primary analysis before inspecting results.
6.2 Read results tables in health research papers
A research table compresses many decisions into a few columns. Its title, denominators, units and footnotes tell you which comparison the numbers describe. Read those details before deciding what an estimate supports.
Establish who was analyzed
A baseline table describes participant characteristics by group. In an observational study, differences suggest possible confounders to examine using causal knowledge. In a properly randomized trial, baseline differences arise by chance; significance tests do not verify randomization. Judge an imbalance by its size and the variable's prognostic importance. CONSORT guidance advises against reporting baseline significance tests.
Check the analyzed sample against the participant flow. Missing covariate or outcome data can reduce denominators. A smaller adjusted-analysis sample can also complicate a crude–adjusted comparison, because both the model and the people analyzed may have changed.
Read effect size and precision together
Suppose a readmission table compares discharge without versus with a follow-up phone call:
| Estimate | OR | 95% CI |
|---|---|---|
| Crude | 1.80 | 1.30 to 2.49 |
| Adjusted | 1.35 | 0.95 to 1.92 |
The footnote says adjustment used age, sex and comorbidity score; the adjusted p-value is 0.09. The conditional estimate permits 5% lower through 92% higher odds. It is inconclusive about a null association and allows effects that could matter. Adjustment changed the comparison, but the table alone does not prove that every part of the change is removal of confounding.
A 95% interval gives effect sizes reasonably compatible with the data under the model. A p-value asks how unusual results at least as extreme would be if the null and assumptions held. It is not the probability that the null is true. For matching two-sided Wald methods, a ratio interval excluding 1 agrees with p < 0.05.
Ask for absolute effects at a stated horizon
An RR of 0.50 can mean risks fall from 2% to 1%, an absolute reduction of 1 percentage point. The number needed to treat is . The same RR from 40% to 20% gives a 20-point reduction and NNT . NNT needs the outcome, comparison and time horizon; the ratio alone cannot provide it.
Allow for many opportunities to find a result
If 20 independent true nulls are tested at 0.05, the probability of at least one false positive is . Bonferroni uses per test to control the family-wise error rate. A prespecified primary analysis and clear labeling of exploratory findings help distinguish planned evidence from discoveries needing confirmation.
A subgroup p = 0.01 in women and p = 0.30 in men does not establish a different effect between them. Test the interaction directly.
Make quick consistency checks
Reference categories should match the stated direction. For a log-Wald ratio interval, the estimate is near the geometric mean of its limits: . A large mismatch deserves checking, allowing for rounding. Exact, profile-likelihood and bootstrap intervals need not be log-symmetric. Statistical significance also does not establish clinical importance: a precise small effect may have little practical value.
Key Takeaways
- Read denominators, units, reference categories and footnotes first.
- Assess randomized baseline imbalances by size and prognostic importance.
- Interpret estimates with intervals before p-values.
- Absolute effects and NNT require baseline risks and a time horizon.
- Multiple comparisons increase false-positive opportunities.
- Different subgroup significance does not establish interaction.
Biostatistics for Health Research examples
1Choose the right comparison for binary data
13 steps
- 1IntroductionStart with the people behind the table
A yes/no outcome still needs a clear comparison. We will follow a wound-infection trial, calculate its effect as a risk difference, RR or OR, and choose a test (chi-square or exact), because each summary answers a different question. Then we will change the design: repeated responses need pairs (McNemar), while adjustment by smoking needs strata (Mantel–Haenszel). The observation structure decides what can be combined.
- 2ExampleName the event and comparison
The trial has 30 infections and 170 non-infections with treatment, versus 50 and 150 with control. Both groups have 200 people.
Treatment and control risks are 15% and 25%. Keep infection as the event and treatment as the numerator group throughout. Reversing a comparison can change the estimate's sign or reciprocal even though no patient changes.
- 3ExampleCalculate absolute and relative change
Subtract risks for the absolute difference:
That is 10 percentage points lower risk. Divide risks for the relative comparison:
The relative reduction is 40%. The OR uses event odds instead and is . Its 47% lower odds must not be relabeled as 47% lower risk.
- 4ExamplePut an interval around the risk difference
The independent-group standard error uses each group's own risk:
Add and subtract 1.96 standard errors from −0.10. The 95% interval is −0.178 to −0.022, or a reduction of 2.2 to 17.8 percentage points. Both limits indicate lower treatment risk, while their separation shows uncertainty about its size.
- 5ChallengeChange the outcome being counted
In the trial, what RR compares remaining infection-free with treatment versus control?
---reveal---
The event-free proportions are 0.85 and 0.75:
It is not the reciprocal of the infection RR. Changing the outcome uses each complementary probability; reversing the groups would instead reciprocate a ratio.
- 6ExplanationConstruct the null table
There are 80 infections among 400 patients, an overall risk of 20%. Under equal group risks, each group of 200 expects 40 infections and 160 non-infections.
Each expected count uses the row total times the column total divided by the grand total. Expected counts describe the no-association model, which is why the same pooled proportion also appears in the two-group z-test.
- 7ExampleMeasure the mismatch
The observed infection counts differ from 40 by 10, and the non-infection counts differ from 160 by 10. Add all four cell contributions:
With one degree of freedom, p = 0.012. This also equals the pooled z-test squared, . The test measures evidence against equal risks, while the earlier estimates describe the difference.
- 8ChallengeChoose a test for sparse data
A separate independent trial records adverse effects in 1/10 treated and 6/10 control patients. Expected event counts are 3.5 per group. What test avoids the questionable large-sample approximation?
---reveal---
Fisher’s exact test uses table probabilities with fixed margins. Here its two-sided p = 0.057, versus uncorrected chi-square p = 0.019. Sparse expected counts can materially change the evidence; the observed group percentages alone do not diagnose this issue.
- 9ConnectionPreserve repeated responses
Now suppose each patient receives two tests. Their results are paired because the same person contributes twice. Independent chi-square no longer matches the design.
Focus on people positive only on test A and people positive only on test B. Two positive or two negative results do not favor either test, so they provide no direction of paired difference.
- 10ExampleUse discordant pairs
In 100 matched case-control pairs, only the case is exposed in 25 and only the control in 10. The matched OR is .
The uncorrected McNemar statistic is
It gives p = 0.011. The approximation relies on 35 discordant pairs. With few discordant pairs, use the exact binomial version even if there are many concordant pairs.
- 11ExplanationCompare within smoking strata
In the coffee–heart disease example, the smoker and non-smoker strata each have OR 1.00, but the combined OR is 2.53. Smoking is linked to coffee and heart disease, distorting the crude comparison.
Mantel–Haenszel pooling preserves the within-stratum comparisons and gives adjusted OR 1.00. Its common-effect interpretation would hide meaningful differences if the stratum effects genuinely varied.
- 12ChallengeDecide what to pool
Two age strata show precise exposure ORs near 1 and 4. The combined table has large expected counts. Should its independent chi-square result replace the stratum-specific results?
---reveal---
No. Large expected counts address an approximation, not whether one common association describes both strata. The different stratum effects indicate effect modification on the OR scale, so report them with their intervals. A combined test would hide the difference in magnitude.
- 13RecapKeep the comparison and design together
Use risks and odds for the effect estimate, then read its interval alongside the test. Independent tables need expected-count checks; paired data need discordant pairs. Strata preserve adjusted comparisons, but genuine differences between strata need separate reporting.
2Read a logistic model from coefficient to conclusion
12 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionMove between scales deliberately
- 2ExplanationTranslate the coefficient
- 3ExampleTransform both interval limits
- 4ExampleCompute the full fitted probability
- 5ChallengeRescale the age comparison
- 6ExplanationFind each category’s reference
- 7ExampleAdd the relevant interaction term
- 8ChallengeCheck the subgroup claim
- 9ExplanationDefine the adjusted comparison
- 10ChallengeChoose adjustment for the total effect
- 11ChallengeAudit the result before interpreting it
- 12RecapRead the model’s actual contrast
3Build and interpret a survival curve
11 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionUse incomplete follow-up
- 2ExplanationDefine time and status
- 3ChallengeDecide what a censored record contributes
- 4ExampleSet up the ordered event times
- 5ExampleUpdate the denominator before the next event
- 6ExampleContinue until the median is reached
- 7ChallengeRead a new step curve
- 8ExplanationCompare events with their expected allocation
- 9ChallengeInterpret crossing curves
- 10ChallengeCheck the observation process too
- 11RecapRead survival with its support
4Read a Cox result without turning hazards into risks
10 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionAsk what is being multiplied
- 2ExplanationSeparate baseline change from the hazard ratio
- 3ExampleInterpret the treatment estimate
- 4ExampleTranslate through baseline survival
- 5ChallengeUse a different baseline risk
- 6ExplanationCheck whether the effect changes with time
- 7ExampleAssign treatment when it actually begins
- 8ChallengeDistinguish two timing problems
- 9ChallengeAppraise an adjusted results row
- 10RecapKeep time and scale visible
5Follow studies into a pooled result
13 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionPreserve each study’s comparison
- 2ExplanationPut ratios on the log scale
- 3ExampleCombine the five trial estimates
- 4ChallengeCalculate a small pool
- 5ConnectionDecide which effect is the target
- 6ExplanationRead Q, I² and τ² together
- 7ExampleSee what substantial heterogeneity changes
- 8ChallengeSeparate uncertainty about a mean from spread
- 9ExplanationRead each forest-plot symbol
- 10ChallengeInterpret a diamond without vote counting
- 11TipInvestigate an asymmetric funnel
- 12ChallengeConnect weighting with robustness
- 13RecapRead the pool with its variation
6Appraise a study from question to conclusion
9 steps
Save this lesson to follow every Walkthrough step by step.
- 1IntroductionBegin with the research question
- 2ExplanationSort the outcome and dependence
- 3ChallengeMatch the model to follow-up
- 4ExampleRead the adjusted row first
- 5ExampleTranslate a relative effect at its horizon
- 6ChallengeAppraise a selected p-value
- 7TipPlan the comparison before seeing results
- 8ChallengeConnect the effect, design and claim
- 9RecapKeep the claim within the evidence
Biostatistics for Health Research practice questions
Set 1: Compare binary outcomes and preserve the design10 Practice Questions
Question 1 of 10
Show answerHide answer
Question 2 of 10
Show answerHide answer
Question 3 of 10
Show answerHide answer
Question 4 of 10
Show answerHide answer
Question 5 of 10
Show answerHide answer
Question 6 of 10
Show answerHide answer
Question 7 of 10
Show answerHide answer
Question 8 of 10
Show answerHide answer
Question 9 of 10
Show answerHide answer
Question 10 of 10
Show answerHide answer
Set 2: Read logistic coefficients, units and adjustment10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 3: Use risk sets to read survival comparisons10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 4: Interpret hazards and check the time comparison10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 5: Pool evidence and investigate differences between studies10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Set 6: Choose an analysis and appraise its conclusions10 Practice Questions
Save this lesson to see every answer and practice every set.
Question 1 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 2 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 3 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 4 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 5 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 6 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 7 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 8 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 9 of 10
Show answerHide answer
Save this lesson to see this answer.
Question 10 of 10
Show answerHide answer
Save this lesson to see this answer.
Stuck on your own question? Homework Help
Key Terms
A
Adjusted hazard ratio
Adjusted odds ratio
B
Baseline hazard
Bonferroni correction
C
Chi-square statistic
Clinical importance
Cochran’s Q
Collider
Common-effect model
Competing event
Conditional logistic regression
Confidence interval
Continuity correction
Covariance
Cox model
D
Degrees of freedom
Discordant pair
E
Effect modification
Events per coefficient
Expected count
Expected events
F
Fisher’s exact test
Forest plot
Funnel plot
G
Greenwood’s formula
H
Hazard
Hazard ratio
Heterogeneity
I
I²
Immortal time bias
Indicator variable
Interaction term
Intercept
Inverse-variance weight
K
Kaplan–Meier estimator
L
Log-rank test
Log-scale interval
Logistic regression
Logit
M
Mantel–Haenszel odds ratio
McNemar’s test
Median survival
Mediator
Meta-analysis
Meta-regression
Multiple comparisons
N
Non-collapsibility
Non-informative censoring
Number at risk
Number needed to treat
O
Odds ratio
P
P-hacking
P-value
Percentage point
Poisson regression
Predicted probability
Prediction interval
Proportional hazards
Publication bias
R
Random-effects model
Reference category
Regression coefficient
REML
Residual confounding
Restricted mean survival time
Right censoring
Risk difference
Risk ratio
Risk set
S
Schoenfeld residual
Sensitivity analysis
Small-study effect
Statistical analysis plan
Stratification
Stratified log-rank test
Survival function
T
Table 2 fallacy
Time origin
Time-varying covariate
Time-varying effect
Τ
τ²
About this lesson
Make your own Study Materials
Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.