The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

CausalState: Causal Inference in a Longitudinal Transitioning State Environment

Implements Sequential Doubly Robust (SDR) and infinite-dimensional Targeted Maximum Likelihood (iTMLE) estimators for longitudinal modified treatment policies in settings with transitioning states, such as ICU, ward, or emergency department care episodes. Treatment is permitted in active states and becomes structurally inapplicable after a state transition (e.g. discharge or death). Supports asymmetric g- and Q-model regularisation, k-fold cross-fitting, and pluggable SuperLearner ensembles. Includes specialised SuperLearner wrappers (SL.tgt.* and SL.tmle_* families) for the iTMLE targeting step, which pass the logit offset as a covariate column to preserve correct subsetting during SuperLearner cross-validation. Methods based on Diaz et al. (2021) <doi:10.1080/01621459.2021.1955691> and Luedtke et al. (2017) <doi:10.48550/arXiv.1705.02459>.

Version: 0.10.2
Depends: R (≥ 4.1.0)
Imports: data.table (≥ 1.14.0), SuperLearner, origami, glmnet, xgboost, dplyr, tidyr, rlang, magrittr, parallel, stats
Suggests: testthat (≥ 3.0.0), knitr, rmarkdown, ggplot2, scales, stringr, hal9001, dbarts, mgcv, earth, nnls
Published: 2026-08-24
DOI: 10.32614/CRAN.package.CausalState (may not be active yet)
Author: Sebastiaan Blank ORCID iD [aut, cre, cph]
Maintainer: Sebastiaan Blank <sebastiaan.blank at mail.com>
BugReports: https://github.com/sebastiaan-blank/CausalState/issues
License: AGPL-3
URL: https://github.com/sebastiaan-blank/CausalState
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: CausalState results

Documentation:

Reference manual: CausalState.html , CausalState.pdf
Vignettes: Diagnostics workflow (source, R code)
Getting started with CausalState (source, R code)
Wu-Benkeser density-ratio metalearner (source, R code)

Downloads:

Package source: CausalState_0.10.2.tar.gz
Windows binaries: r-devel: CausalState_0.10.2.zip, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): CausalState_0.10.2.tgz, r-oldrel (arm64): CausalState_0.10.2.tgz, r-release (x86_64): CausalState_0.10.2.tgz, r-oldrel (x86_64): CausalState_0.10.2.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=CausalState to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.