Epidemiological regressions for estimating risk ratios and risk differences with the R package rqlm: A practical guide
DOI:
https://doi.org/10.51094/jxiv.1054キーワード:
binary outcome、 risk ratio、 risk difference、 modified Poisson regression、 modified least-squares regression、 modified logistic regression、 target trial emulation、 R抄録
Risk ratios and risk differences express relative and absolute differences in the probability of a binary outcome. They are often useful in epidemiological and clinical studies, but obtaining adjusted estimates with appropriate confidence intervals can require several programming steps. The R package rqlm brings these steps together through modified Poisson regression, modified least-squares regression, and modified logistic regression using pseudo-observations. This tutorial is written for researchers who can specify an ordinary regression model and want to apply these methods without working through their mathematical derivations. We explain how to choose an effect measure, prepare data, fit the models, read their output, and save results. Complete example commands appear alongside the explanations. The worked examples use two fully synthetic datasets based on a target trial emulation comparing initiation of an SGLT2 inhibitor with initiation of a DPP-4 inhibitor in older adults with type 2 diabetes. Strong baseline prognostic differences illustrate why an unadjusted comparison can be misleading. We then explain the practical purpose and limitations of small-sample variance corrections and the Hadamard option for modified least-squares regression. An exactly unbiased variance estimator does not provide an exact 95% confidence interval. The main workflow uses standard robust inference, with selected additional options explained separately.
利益相反に関する開示
The authors declare no conflicts of interest regarding this article.ダウンロード *前日までの集計結果を表示します
引用文献
Cheung, Y. B. (2007). A modified least-squares regression approach to the estimation of risk difference. American Journal of Epidemiology, 166, 1337–1344. doi:10.1093/aje/kwm223.
Diaz-Quijano, F. A. (2012). A simple method for estimating relative risk using logistic regression. BMC Medical Research Methodology, 12, 14. doi:10.1186/1471-2288-12-14.
Dobriban, E., Su, W. J., Yang, Y., and Zhang, Z. (2024). Robust inference under heteroskedasticity via the Hadamard estimator. arXiv:1807.00347v2. doi:10.48550/arXiv.1807.00347.
Gosho, M., Ishii, R., Noma, H., and Maruo, K. (2023). A comparison of bias-adjusted generalized estimating equations for sparse binary data in small-sample longitudinal studies. Statistics in Medicine, 42, 2711–2727. doi:10.1002/sim.9744.
Gosho, M., Sato, Y., and Takeuchi, H. (2014). Robust covariance estimator for small-sample adjustment in the generalized estimating equations: a simulation study. Science Journal of Applied Mathematics and Statistics, 2, 20–25. doi:10.11648/j.sjams.20140201.13.
Greenland, S. (1987). Interpretation and choice of effect measures in epidemiologic analyses. American Journal of Epidemiology, 125, 761–768. doi:10.1093/oxfordjournals.aje.a114593.
Hernán, M. A., Wang, W., and Leaf, D. E. (2022). Target trial emulation: a framework for causal inference from observational data. JAMA, 328, 2446–2447. doi:10.1001/jama.2022.21383.
Kitano, T., and Noma, H. (2026). Exact unbiased covariance estimation for modified least-squares regression with binary outcomes. In preparation.
Morel, J. G., Bokossa, M. C., and Neerchal, N. K. (2003). Small sample correction for the variance of GEE estimators. Biometrical Journal, 45, 395–409. doi:10.1002/bimj.200390021.
Noma, H. (2026a). Robust variance estimators for risk ratio estimators from logistic regression in cohort and case-cohort studies. Statistics & Probability Letters, 234, 110698. doi:10.1016/j.spl.2026.110698.
Noma, H. (2026b). Target trial emulation with the R package TTE: A tutorial and methodological guide. arXiv:2608.01625. doi: 10.48550/arXiv.2608.01625.
Noma, H., and Gosho, M. (2025). Finite-sample improved confidence intervals based on the estimating equation theory for the modified Poisson and least-squares regressions. Epidemiologic Methods, 14, 20240030.
Noma, H., Goto, A., Sugimoto, T., Sunada, H., Oda, F., Maeda, M., and Fukuda, H. (2026). Real-world effectiveness of SGLT2 inhibitors in adults aged 75 years or older: a target trial emulation. Age and Ageing, 55, afag246. doi:10.1093/ageing/afag246.
Noma, H., Sunada, H., and Gosho, M. (2025). Quasi-likelihood ratio tests and the Bartlett-type correction for improved inferences of the modified Poisson and least-squares regressions for binary outcomes. Statistica Neerlandica, 79, e70012. doi:10.1111/stan.70012.
Nurminen, M. (1995). To use or not to use the odds ratio in epidemiologic analyses. European Journal of Epidemiology, 11, 365–371.
Schouten, E. G., Dekker, J. M., Kok, F. J., Le Cessie, S., van Houwelingen, H. C., Pool, J., and Vandenbroucke, J. P. (1993). Risk ratio and rate ratio estimation in case-cohort designs: hypertension and cardiovascular mortality. Statistics in Medicine, 12, 1733–1745. doi:10.1002/sim.4780121808.
Shiiba, H., and Noma, H. (2025). Confidence intervals of risk ratios for the augmented logistic regression with pseudo-observations. Stats, 8, 83. doi:10.3390/stats8030083.
Wang, M., and Long, Q. (2011). Modified robust variance estimator for generalized estimating equations with improved small-sample performance. Statistics in Medicine, 30, 1278–1291. doi:10.1002/sim.4150.
Zou, G. (2004). A modified Poisson regression approach to prospective studies with binary data. American Journal of Epidemiology, 159, 702–706. doi:10.1093/aje/kwh090.
ダウンロード
公開済
投稿日時: 2025-01-22 13:29:55 UTC
公開日時: 2025-01-24 01:10:52 UTC — 2026-10-06 04:20:39 UTCに更新
バージョン
- 2026-10-06 04:20:39 UTC(2)
- 2025-01-24 01:10:52 UTC(1)
改版理由
本稿は、R package rqlmの解説論文です。rqlmパッケージのアップデートを反映し、改訂を行いました。ライセンス
Copyright(c)2025
Noma, Hisashi
この作品は、Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Licenseの下でライセンスされています。
