Related Experiment Video
Updated: Jun 7, 2025

An R-Based Landscape Validation of a Competing Risk Model
Published on: September 16, 2022
Calculating risk and prevalence ratios and differences in R: Developing intuition with a hands-on tutorial and code
Rachel R Yorlets1, Youjin Lee2, Jason R Gantenberg3
1Department of Epidemiology, Brown University School of Public Health, Providence, RI, USA; Population Studies and Training Center, Brown University, Providence, RI, USA.
Abstract:
Epidemiologic research questions often focus on evaluating binary outcomes, yet curricula and scientific literature do not always provide clear guidance or examples on selecting and calculating an appropriate measure of association in these scenarios. Reporting inappropriate measures may lead to misleading statistical conclusions. We present a hands-on tutorial that includes annotated code written in an open-source statistical programming language (R) showing readers how to apply, compare, and understand four methods used to estimate a risk or prevalence ratio (or difference), rather than presenting an odds ratio. We will provide guidance on when to use each method, discuss the strengths and limitations of each approach, and compare the results obtained across them. Ultimately, we aim to help trainees, public health researchers, and interdisciplinary professionals develop an intuition for these methods and empower them to implement and interpret these methods in their own research.
Related Concept Videos
Types of Biopharmaceutical Studies: Controlled and Non-Controlled Approaches
Non-controlled studies, commonly employed for initial exploration, lack a control group, rendering them susceptible to biases and external influences. In contrast,...
Relative Risk
Odds Ratio
Statistical Methods for Analyzing Epidemiological Data
Introduction to R
Introduction To Survival Analysis
The primary goal of survival analysis is to estimate survival time—the time...

