Skip to content
CRAN requires the check problems on this package to be fixed before Oct 31 or it will be archived. See the check details
txshift needs hal9001, which CRAN will archive unless its check problems are fixed by Oct 29.

txshift

0.3.8Package record

Efficient Estimation of the Causal Effects of Stochastic Interventions

0packages depend
2.9Kdownloads / year
60.8%test coverage
0/13flavors OK

Overview

About

Efficient estimation of the population-level causal effects of stochastic interventions on a continuous-valued exposure. Both one-step and targeted minimum loss estimators are implemented for the counterfactual mean value of an outcome of interest under an additive modified treatment policy, a stochastic intervention that may depend on the natural value of the exposure. To accommodate settings with outcome-dependent two-phase sampling, procedures incorporating inverse probability of censoring weighting are provided to facilitate the construction of inefficient and efficient one-step and targeted minimum loss estimators. The causal parameter and its estimation were first described by Díaz and van der Laan (2013) doi:10.1111/j.1541-0420.2011.01685.x, while the multiply robust estimation procedure and its application to data from two-phase sampling designs is detailed in NS Hejazi, MJ van der Laan, HE Janes, PB Gilbert, and DC Benkeser (2020) doi:10.1111/biom.13375. The software package implementation is described in NS Hejazi and DC Benkeser (2020) doi:10.21105/joss.02447. Estimation of nuisance parameters may be enhanced through the Super Learner ensemble model in 'sl3', available for download from GitHub using 'remotes::install_github("tlverse/sl3")'.

Install

Health

CRAN checks
13NOTE
Check messages
NOTERd filesr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-x86_64, r-oldrel-macos-arm64, r-oldrel-macos-x86_64, r-oldrel-windows-x86_64, r-patched-linux-x86_64, r-release-linux-x86_64, r-release-macos-arm64, r-release-macos-x86_64, r-release-windows-x86_64
checkRd: (-1) est_g_exp.Rd:55: Lost braces; missing escapes or markup?
    55 |  {A - delta}, {A + delta}, and {A + 2 * delta}).
       |  ^
checkRd: (-1) est_g_exp.Rd:55: Lost braces; missing escapes or markup?
    55 |  {A - delta}, {A + delta}, and {A + 2 * delta}).
       |               ^
checkRd: (-1) est_g_exp.Rd:55: Lost braces; missing escapes or markup?
    55 |  {A - delta}, {A + delta}, and {A + 2 * delta}).
       |                                ^

CRAN check page ↗

Slowest check: 4.4 min · r-oldrel-windows-x86_64
Status changes
  • NOTE13 NOTENow
  • NOTE14 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.3.8
READMEYes · 1,169 wordsVignettesYes · 1 · dynamicNEWSYes · 100% structured · does not mention 0.3.8Citation fileYes · cites a publication
Cites a JOSS paper
Help pages
21
Examples that run
100%6 run in a plain check
Exported functions with examples
100%
Documented parameters
68%
Return-value docs
100%
Help pages citing references
0% with a bibliography file

Downloads

2.9K
CRAN downloads in the past year
Rank #11,647 · ~8/day · ~242/mo
Daily download trend is not available in this view yet.
49230 days
90790 days
2.9K1 year
Compare downloads with other packages →
Also on63 r2u4 autocran

Repository

14Stars
5Forks
2Open issues
1Open PRs
3Releases
402Commits
3Commit identities
causal-inferencetargeted-learningmachine-learningstochastic-interventionstreatment-effectsvariable-importancecensored-datacausal-effects
402 commits · Last activity 2024-09-21 · 0% stars, 30d · Default branch at 0.3.9, ahead of CRAN 0.3.8 (checked 2026-10-11)
Responsiveness
How these are sampled
PRs merged (all time)
95%
Median days to close, 50 most recently updated closed issues
10
Median days to close, 50 most recently updated closed PRs
0

Stars over time

2024-11-18 · 132026-07-07 · 14
PracticesBeta

11 development-tooling and community-health practices detected across 7 families in the upstream repository

Checks run against github.com/nhejazi/txshift on 2026-10-11.

Continuous integration (2)
GitHub ActionsR CMD check workflow

The R CMD check workflow runs on Linux, macOS and Windows

Governance and community (1)
Contributing guide
Docs source (3)
README.Rmdpkgdown

GitHub Pages site last deployed 2024-09-21

Coverage (1)
Coverage reporting (Codecov)
Show all practicesHide 3 practices
Reproducibility and dev environment (1)
Makefile
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v3 (2026-09-26)

Dependencies

Declared dependencies
21 external dependencies (excludes base and recommended)

Installing txshift adds 51 packages (23 with compiled code, 45 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, data.table 5.7 MB.

Depends (1)
R >= 3.2.0
LinkingTo (0)
none
Enhances (0)
none
Dependencies facing archival

CRAN will archive these unless their check problems are fixed by the date shown. This package needs each one to install.

Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (5)
Author, Maintainer since 0.3.4 (2020), Copyright holder
Contributor
Contributor
Contributor, Thesis advisor
Releases (5)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • 0.3.8Latest
    record
    2022-02-09 · current release · diff ↗
  • unarchivedReturned to CRAN
    2022-01-28
  • 0.3.7
    record
    2022-01-28 · diff ↗
  • archivedRemoved from CRAN
    2021-11-03
    requires archived packages 'hal9001' and 'haldensify',
  • 0.3.6
    record
    2021-10-18 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.3.5
    record
    2021-02-07 · diff ↗
  • 0.3.4
    record
    2020-09-25
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2020-09-25
Total releases
5 / 6 yrs
License
MIT + file LICENSE OSI
Minimum R
≥ 3.2.0
Download size
70 KB

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("txshift")

The package provides a citation file that builds its entry when R runs it. Run citation() to see it.

Cite the R Observatory

For a number measured here: a download total, a coverage figure, an archival date.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for txshift version 0.3.8 [Data set]. HJJB, LLC. Data release v2026-10-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy