Skip to main page content
U.S. flag

An official website of the United States government

Dot gov

The .gov means it’s official.
Federal government websites often end in .gov or .mil. Before sharing sensitive information, make sure you’re on a federal government site.

Https

The site is secure.
The https:// ensures that you are connecting to the official website and that any information you provide is encrypted and transmitted securely.

Access keys NCBI Homepage MyNCBI Homepage Main Content Main Navigation
. 2016 Nov;27(6):848-51.
doi: 10.1097/EDE.0000000000000539.

Brief Report: Estimating Differences and Ratios in Median Times to Event

Affiliations

Brief Report: Estimating Differences and Ratios in Median Times to Event

Elizabeth T Rogawski et al. Epidemiology. 2016 Nov.

Abstract

Time differences and time ratios are often more interpretable estimates of effect than hazard ratios for time-to-event data, especially for common outcomes. We developed a SAS macro for estimating time differences and time ratios between baseline-fixed binary exposure groups based on inverse probability-weighted Kaplan-Meier curves. The macro uses pooled logistic regression to calculate inverse probability of censoring and exposure weights, draws Kaplan-Meier curves based on the weighted data, and estimates the time difference and time ratio at a user-defined survival proportion. The macro also calculates the risk difference and risk ratio at a user-specified time. Confidence intervals are constructed by bootstrap. We provide an example assessing the effect of exclusive breastfeeding during diarrhea on the incidence of subsequent diarrhea in children followed from birth to 3 years in Vellore, India. The SAS macro provided here should facilitate the wider reporting of time differences and time ratios.

PubMed Disclaimer

Figures

Figure 1
Figure 1
Schematic showing the calculation of the median time difference and time ratio from inverse probability-weighted Kaplan-Meier curves.
Figure 2
Figure 2
Inverse probability-weighted Kaplan-Meier curves for time to second diarrhea episode by exclusive breastfeeding at the first episode among 982 children in birth cohorts from Vellore, Tamil Nadu, India 2002–2013. A – Crude (unweighted by covariates); B – Weighted by age at first episode, malnutrition status at first episode, child sex, low birth weight, socioeconomic status, maternal education, and household hygiene.

References

    1. Cox DR. Regression models and life-tables. Journal of the Royal Statistical Society Series B Methodological. 1972;34:187–220.
    1. Hernán MA. The hazards of hazard ratios. Epidemiology. 2010;21(1):13–15. - PMC - PubMed
    1. Wei LJ. The accelerated failure time model: a useful alternative to the Cox regression model in survival analysis. Stat Med. 1992;11(14–15):1871–1879. - PubMed
    1. Cole SR, Chu H. Effect of acyclovir on herpetic ocular recurrence using a structural nested model. Contemp Clin Trials. 2005;26(3):300–310. - PubMed
    1. Ibrahim JG, Chen M-H, Sinha D. Bayesian Survival Analysis. New York, NY: Springer New York; 2001. [Accessed December 22, 2015]. http://link.springer.com/10.1007/978-1-4757-3447-8. - DOI

Publication types

MeSH terms