Skip to content

stdReg2

Regression Standardization for Causal Inference

v1.0.7 · May 13, 2026 · AGPL (>= 3)

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

CRAN

563

Last 30 days

6112th

1.2K

Last 90 days

3.2K

Last year

Trend: +39.7% (30d vs prior 30d)

r2u CRAN

16

Last 30 days

30

Last 90 days

98

Last year

Trend: +14.3% (30d vs prior 30d)

CRAN Check Status

13 OK
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
ERROR r-devel-linux-x86_64-fedora-clang

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
ERROR r-devel-linux-x86_64-fedora-gcc

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
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (1)

suggests

Dependency Network

Dependencies Reverse dependencies data.table drgee generics survival sandwich outstandR stdReg2

Version History

4 tracked
updated 1.0.7 ← 1.0.3 diff May 14, 2026
new 1.0.3 Mar 10, 2026
updated 1.0.3 ← 1.0.1 diff Feb 27, 2025
new 1.0.1 Sep 12, 2024