stdReg2
Regression Standardization for Causal Inference
Description
Contains more modern tools for causal inference using regression standardization. Four general classes of models are implemented; generalized linear models, conditional generalized estimating equation models, Cox proportional hazards models, and shared frailty gamma-Weibull models. Methodological details are described in Sjölander, A. (2016) <doi:10.1007/s10654-016-0157-3>. Also includes functionality for doubly robust estimation for generalized linear models in some special cases, and the ability to implement custom models.
Downloads
563
Last 30 days
6112th
1.2K
Last 90 days
3.2K
Last year
Trend: +39.7% (30d vs prior 30d)
16
Last 30 days
30
Last 90 days
98
Last year
Trend: +14.3% (30d vs prior 30d)
CRAN Check Status
Show all 13 flavors
| Flavor | Status |
|---|---|
| r-devel-linux-x86_64-debian-clang | OK |
| r-devel-linux-x86_64-debian-gcc | OK |
| r-devel-linux-x86_64-fedora-clang | OK |
| r-devel-linux-x86_64-fedora-gcc | OK |
| r-devel-windows-x86_64 | OK |
| r-oldrel-macos-arm64 | OK |
| r-oldrel-macos-x86_64 | OK |
| r-oldrel-windows-x86_64 | OK |
| r-patched-linux-x86_64 | OK |
| r-release-linux-x86_64 | OK |
| r-release-macos-arm64 | OK |
| r-release-macos-x86_64 | OK |
| r-release-windows-x86_64 | OK |
Check History
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 21, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE May 8, 2026
examples
Running examples in ‘stdReg2-Ex.R’ failed The error most likely occurred in: > ### Name: standardize_glm > ### Title: Get regression standardized estimates from a glm > ### Aliases: standardize_glm > > ### ** Examples > > > # basic example > # ne ...[truncated]... data > # here the matching variable needs to be passed as an argument > singapore <- AF::singapore Error in loadNamespace(x) : there is no package called ‘AF’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted
examples
Running examples in ‘stdReg2-Ex.R’ failed The error most likely occurred in: > ### Name: standardize_glm > ### Title: Get regression standardized estimates from a glm > ### Aliases: standardize_glm > > ### ** Examples > > > # basic example > # ne ...[truncated]... data > # here the matching variable needs to be passed as an argument > singapore <- AF::singapore Error in loadNamespace(x) : there is no package called ‘AF’ Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart Execution halted