{
  "_id": "6a1022b8acfb0bcc41c8cd3e",
  "Package": "txshift",
  "Title": "Efficient Estimation of the Causal Effects of Stochastic\nInterventions",
  "Version": "0.3.9",
  "Authors@R": "c(\nperson(\"Nima\", \"Hejazi\", email = \"nh@nimahejazi.org\",\nrole = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-7127-2789\")),\nperson(\"David\", \"Benkeser\", email = \"benkeser@emory.edu\",\nrole = \"aut\",\ncomment = c(ORCID = \"0000-0002-1019-8343\")),\nperson(\"Iván\", \"Díaz\", email = \"ild2005@med.cornell.edu\",\nrole = \"ctb\",\ncomment = c(ORCID = \"0000-0001-9056-2047\")),\nperson(\"Jeremy\", \"Coyle\", email = \"jeremy.coyle@gmail.com\",\nrole = \"ctb\",\ncomment = c(ORCID = \"0000-0002-9874-6649\")),\nperson(\"Mark\", \"van der Laan\", email = \"laan@berkeley.edu\",\nrole = c(\"ctb\", \"ths\"),\ncomment = c(ORCID = \"0000-0003-1432-5511\"))\n)",
  "Maintainer": "Nima Hejazi <nh@nimahejazi.org>",
  "Description": "Efficient estimation of the population-level causal\neffects of stochastic interventions on a continuous-valued\nexposure. Both one-step and targeted minimum loss estimators\nare implemented for the counterfactual mean value of an outcome\nof interest under an additive modified treatment policy, a\nstochastic intervention that may depend on the natural value of\nthe exposure. To accommodate settings with outcome-dependent\ntwo-phase sampling, procedures incorporating inverse\nprobability of censoring weighting are provided to facilitate\nthe construction of inefficient and efficient one-step and\ntargeted minimum loss estimators.  The causal parameter and its\nestimation were first described by Díaz and van der Laan (2013)\n<doi:10.1111/j.1541-0420.2011.01685.x>, while the multiply\nrobust estimation procedure and its application to data from\ntwo-phase sampling designs is detailed in NS Hejazi, MJ van der\nLaan, HE Janes, PB Gilbert, and DC Benkeser (2020)\n<doi:10.1111/biom.13375>. The software package implementation\nis described in NS Hejazi and DC Benkeser (2020)\n<doi:10.21105/joss.02447>. Estimation of nuisance parameters\nmay be enhanced through the Super Learner ensemble model in\n'sl3', available for download from GitHub using\n'remotes::install_github(\"tlverse/sl3\")'.",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/nhejazi/txshift",
  "BugReports": "https://github.com/nhejazi/txshift/issues",
  "Encoding": "UTF-8",
  "VignetteBuilder": "knitr",
  "RoxygenNote": "7.3.2",
  "RdMacros": "Rdpack",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://nhejazi.r-universe.dev",
  "Date/Publication": "2024-09-21 20:33:00 UTC",
  "RemoteUrl": "https://github.com/nhejazi/txshift",
  "RemoteRef": "HEAD",
  "RemoteSha": "06ce36d94009e99d21051978b71897139fc06610",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-22 09:28:55 UTC",
    "User": "root"
  },
  "Author": "Nima Hejazi [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-7127-2789>),\nDavid Benkeser [aut] (ORCID: <https://orcid.org/0000-0002-1019-8343>),\nIván Díaz [ctb] (ORCID: <https://orcid.org/0000-0001-9056-2047>),\nJeremy Coyle [ctb] (ORCID: <https://orcid.org/0000-0002-9874-6649>),\nMark van der Laan [ctb, ths] (ORCID:\n<https://orcid.org/0000-0003-1432-5511>)",
  "MD5sum": "4b3220c10cdd360e0219439194ed8490",
  "_user": "nhejazi",
  "_type": "src",
  "_file": "txshift_0.3.9.tar.gz",
  "_fileid": "d87119194e2d30b349fe48f6ff0c44f03fa0f6fda1a0222069d8f8da74fbef0c",
  "_filesize": 249305,
  "_sha256": "d87119194e2d30b349fe48f6ff0c44f03fa0f6fda1a0222069d8f8da74fbef0c",
  "_created": "2026-05-22T09:28:55.000Z",
  "_published": "2026-05-22T09:32:40.844Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77353202375,
      "time": 168,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7157339882"
    },
    {
      "job": 77353202319,
      "time": 191,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7157346331"
    },
    {
      "job": 77353202260,
      "time": 130,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7157328407"
    },
    {
      "job": 77353202294,
      "time": 146,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7157333114"
    },
    {
      "job": 77352685701,
      "time": 204,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7157287828"
    },
    {
      "job": 77353202274,
      "time": 124,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7157326476"
    },
    {
      "job": 77353202323,
      "time": 145,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7157332979"
    },
    {
      "job": 77353202295,
      "time": 138,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7157330851"
    },
    {
      "job": 77353202344,
      "time": 171,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7157340936"
    }
  ],
  "_buildurl": "https://github.com/r-universe/nhejazi/actions/runs/26279716200",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/nhejazi/txshift",
  "_commit": {
    "id": "06ce36d94009e99d21051978b71897139fc06610",
    "author": "Nima Hejazi <nh@nimahejazi.org>",
    "committer": "Nima Hejazi <nh@nimahejazi.org>",
    "message": "add lmtp pointer + loosen ipcw test\n",
    "time": 1726950780
  },
  "_maintainer": {
    "name": "Nima Hejazi",
    "email": "nh@nimahejazi.org",
    "login": "nhejazi",
    "bluesky": "@nimahejazi.org",
    "linkedin": "in/nshejazi",
    "orcid": "0000-0002-7127-2789",
    "description": "assistant professor of biostatistics at the harvard school of public health working on causal {inference, machine learning}",
    "uuid": 8527276
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.2.0",
      "role": "Depends"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "assertthat",
      "role": "Imports"
    },
    {
      "package": "mvtnorm",
      "role": "Imports"
    },
    {
      "package": "hal9001",
      "version": ">= 0.4.6",
      "role": "Imports"
    },
    {
      "package": "haldensify",
      "version": ">= 0.2.3",
      "role": "Imports"
    },
    {
      "package": "lspline",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "latex2exp",
      "role": "Imports"
    },
    {
      "package": "Rdpack",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "future",
      "role": "Suggests"
    },
    {
      "package": "future.apply",
      "role": "Suggests"
    },
    {
      "package": "origami",
      "version": ">= 1.0.7",
      "role": "Suggests"
    },
    {
      "package": "ranger",
      "role": "Suggests"
    },
    {
      "package": "Rsolnp",
      "role": "Suggests"
    },
    {
      "package": "nnls",
      "role": "Suggests"
    },
    {
      "package": "sl3",
      "version": ">= 1.4.5",
      "role": "Enhances"
    }
  ],
  "_owner": "nhejazi",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [],
  "_tags": [],
  "_topics": [
    "causal-effects",
    "causal-inference",
    "censored-data",
    "machine-learning",
    "robust-statistics",
    "statistics",
    "stochastic-interventions",
    "stochastic-treatment-regimes",
    "targeted-learning",
    "treatment-effects",
    "variable-importance"
  ],
  "_stars": 14,
  "_contributors": [
    {
      "user": "nhejazi",
      "count": 392,
      "uuid": 8527276
    },
    {
      "user": "benkeser",
      "count": 3,
      "uuid": 17482713
    }
  ],
  "_userbio": {
    "uuid": 8527276,
    "type": "user",
    "name": "nima hejazi",
    "description": "assistant professor of biostatistics at the harvard school of public health working on causal {inference, machine learning}"
  },
  "_downloads": {
    "count": 217,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/txshift"
  },
  "_devurl": "https://github.com/nhejazi/txshift",
  "_searchresults": 30,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/txshift.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/nhejazi/txshift",
  "_realowner": "nhejazi",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.3.4",
      "date": "2020-09-25"
    },
    {
      "version": "0.3.5",
      "date": "2021-02-07"
    },
    {
      "version": "0.3.6",
      "date": "2021-10-18"
    },
    {
      "version": "0.3.7",
      "date": "2022-01-28"
    },
    {
      "version": "0.3.8",
      "date": "2022-02-09"
    }
  ],
  "_exports": [
    "msm_vimshift",
    "txshift"
  ],
  "_help": [
    {
      "page": "bound_precision",
      "title": "Bound Precision",
      "topics": [
        "bound_precision"
      ]
    },
    {
      "page": "bound_propensity",
      "title": "Bound Generalized Propensity Score",
      "topics": [
        "bound_propensity"
      ]
    },
    {
      "page": "confint.txshift",
      "title": "Confidence Intervals for Counterfactual Mean Under Stochastic Intervention",
      "topics": [
        "confint.txshift"
      ]
    },
    {
      "page": "eif",
      "title": "Compute the Shift Parameter Estimate and the Efficient Influence Function",
      "topics": [
        "eif"
      ]
    },
    {
      "page": "est_g_cens",
      "title": "Estimate the Censoring Mechanism",
      "topics": [
        "est_g_cens"
      ]
    },
    {
      "page": "est_g_exp",
      "title": "Estimate the Exposure Mechanism via Generalized Propensity Score",
      "topics": [
        "est_g_exp"
      ]
    },
    {
      "page": "est_Hn",
      "title": "Estimate Auxiliary Covariate of Full Data Efficient Influence Function",
      "topics": [
        "est_Hn"
      ]
    },
    {
      "page": "est_Q",
      "title": "Estimate the Outcome Mechanism",
      "topics": [
        "est_Q"
      ]
    },
    {
      "page": "est_samp",
      "title": "Estimate Probability of Censoring by Two-Phase Sampling",
      "topics": [
        "est_samp"
      ]
    },
    {
      "page": "fit_fluctuation",
      "title": "Fit One-Dimensional Fluctuation Model for Updating Initial Estimates",
      "topics": [
        "fit_fluctuation"
      ]
    },
    {
      "page": "ipcw_eif_update",
      "title": "Iterative IPCW Update Procedure of Augmented Efficient Influence Function",
      "topics": [
        "ipcw_eif_update"
      ]
    },
    {
      "page": "msm_vimshift",
      "title": "Working marginal structural model for causal effects of an intervention grid",
      "topics": [
        "msm_vimshift"
      ]
    },
    {
      "page": "onestep_txshift",
      "title": "One-Step Estimate of Counterfactual Mean of Stochastic Shift Intervention",
      "topics": [
        "onestep_txshift"
      ]
    },
    {
      "page": "plot.txshift_msm",
      "title": "Plot working MSM for causal effects of an intervention grid",
      "topics": [
        "plot.txshift_msm"
      ]
    },
    {
      "page": "print.txshift",
      "title": "Print Method for Counterfactual Mean of Stochastic Shift Intervention",
      "topics": [
        "print.txshift"
      ]
    },
    {
      "page": "print.txshift_msm",
      "title": "Print Method for Marginal Structural Models",
      "topics": [
        "print.txshift_msm"
      ]
    },
    {
      "page": "scale_to_original",
      "title": "Transform values from the unit interval back to their original scale",
      "topics": [
        "scale_to_original"
      ]
    },
    {
      "page": "scale_to_unit",
      "title": "Transform values by scaling to the unit interval",
      "topics": [
        "scale_to_unit"
      ]
    },
    {
      "page": "shift_additive",
      "title": "Simple Additive Modified Treatment Policy",
      "topics": [
        "shift_additive"
      ]
    },
    {
      "page": "tmle_txshift",
      "title": "Targeted Minimum Loss Estimate of Counterfactual Mean of Stochastic Shift Intervention",
      "topics": [
        "tmle_txshift"
      ]
    },
    {
      "page": "txshift",
      "title": "Efficient Estimate of Counterfactual Mean of Stochastic Shift Intervention",
      "topics": [
        "txshift"
      ]
    }
  ],
  "_readme": "https://github.com/nhejazi/txshift/raw/HEAD/README.md",
  "_rundeps": [
    "abind",
    "assertthat",
    "cli",
    "codetools",
    "cpp11",
    "data.table",
    "digest",
    "dplyr",
    "farver",
    "foreach",
    "future",
    "future.apply",
    "generics",
    "ggplot2",
    "glmnet",
    "globals",
    "glue",
    "gtable",
    "hal9001",
    "haldensify",
    "isoband",
    "iterators",
    "labeling",
    "latex2exp",
    "lattice",
    "lifecycle",
    "listenv",
    "lspline",
    "magrittr",
    "Matrix",
    "matrixStats",
    "mvtnorm",
    "origami",
    "parallelly",
    "pillar",
    "pkgconfig",
    "R6",
    "rbibutils",
    "RColorBrewer",
    "Rcpp",
    "RcppEigen",
    "Rdpack",
    "rlang",
    "S7",
    "scales",
    "shape",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "intro_txshift.Rmd",
      "filename": "intro_txshift.html",
      "title": "Evaluating Causal Effects of Modified Treatment Policies",
      "author": "Nima Hejazi and David Benkeser",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Data and Notation",
        "Simulate Data",
        "Estimating the Effects of Additive MTPs",
        "Interlude: Ensemble Machine Learning with sl3",
        "Efficient Effect Estimates with Machine Learning",
        "Estimating the Effects of Additive MTPs Under Two-Phase Sampling",
        "Statistical Inference for One-step and TML Estimators",
        "Advanced Usage: User-Specified Nuisance Regressions",
        "References"
      ],
      "created": "2018-01-23 04:56:50",
      "modified": "2023-05-15 20:50:59",
      "commits": 27
    }
  ],
  "_score": 5.3222192947339195,
  "_indexed": true,
  "_nocasepkg": "txshift",
  "_universes": [
    "nhejazi"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.9",
      "date": "2026-05-22T09:31:08.000Z",
      "distro": "noble",
      "commit": "06ce36d94009e99d21051978b71897139fc06610",
      "fileid": "57e49ce08115f125dc6b6ac8e3b4750290f32a57deb8d9b473fdb53ece8037fe",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nhejazi/actions/runs/26279716200"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.9",
      "date": "2026-05-22T09:31:22.000Z",
      "distro": "noble",
      "commit": "06ce36d94009e99d21051978b71897139fc06610",
      "fileid": "060f396df2b2f595491d183938c6ab653d3bd5cb1041735ecd55d26ac74c41ea",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nhejazi/actions/runs/26279716200"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.9",
      "date": "2026-05-22T09:30:40.000Z",
      "commit": "06ce36d94009e99d21051978b71897139fc06610",
      "fileid": "fef76306c39d822520f413c357c42e71bca3ff643152edec78d476dcf20d28a7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nhejazi/actions/runs/26279716200"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.9",
      "date": "2026-05-22T09:30:43.000Z",
      "commit": "06ce36d94009e99d21051978b71897139fc06610",
      "fileid": "d14b592ac0b761b85f5901dbace3acd12f78621c4efc190208c624a0bfcd94b3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nhejazi/actions/runs/26279716200"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.9",
      "date": "2026-05-22T09:31:18.000Z",
      "commit": "06ce36d94009e99d21051978b71897139fc06610",
      "fileid": "ea441823c06493a2d406e39124860022a2c19d434e2255885bb3e695c5094fbe",
      "status": "success",
      "buildurl": "https://github.com/r-universe/nhejazi/actions/runs/26279716200"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.9",
      "date": "2026-05-22T09:30:26.000Z",
      "commit": "06ce36d94009e99d21051978b71897139fc06610",
      "fileid": "f2c94ef7d5a0be472f7e0d996ae558d7b64275b51c9ed03fc8c4a7099b26a02e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nhejazi/actions/runs/26279716200"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.9",
      "date": "2026-05-22T09:30:19.000Z",
      "commit": "06ce36d94009e99d21051978b71897139fc06610",
      "fileid": "dab8723babd53c4c1ce75296b59f0e1ff4431a2f82a5a34d3ced6162dba45b4f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nhejazi/actions/runs/26279716200"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.9",
      "date": "2026-05-22T09:30:40.000Z",
      "commit": "06ce36d94009e99d21051978b71897139fc06610",
      "fileid": "976c0763df39259ad0a1b6cbb5456effbc3d76b00af5780f9a3adf32164c99ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/nhejazi/actions/runs/26279716200"
    }
  ]
}