Package: causalMed 0.1.3
causalMed: Parametric G-Formula for Longitudinal Mediation and Total Effects
Causal mediation analysis for longitudinal data with time-varying exposures, mediators and confounders, covering both interventional (Lin et al. (2017) <doi:10.1002/sim.7426>) and natural (Zheng and van der Laan (2017) <doi:10.1515/jci-2016-0006>) direct and indirect effects. Estimation uses the parametric g-formula (Robins (1986) <doi:10.1016/0270-0255(86)90088-6>), which is also exposed directly so that counterfactual means or risks can be estimated under static, dynamic or time-varying hypothetical interventions.
Authors:
causalMed_0.1.3.tar.gz
causalMed_0.1.3.zip(r-4.7-any)causalMed_0.1.3.zip(r-4.6-any)
causalMed_0.1.3.tar.gz(r-4.7-any)causalMed_0.1.3.tar.gz(r-4.6-any)
causalMed_0.1.3.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
causalMed/json (API)
| # Install 'causalMed' in R: |
| install.packages('causalMed', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/adayim/causalmed/issues
Pkgdown/docs site:https://adayim.github.io
- gvhd - Bone marrow transplant data
- nonsurvivaldata - Example Dataset for a Non-Survival Outcome
- survivaldata - Example Dataset for a Survival Outcome
- yamamurodata - Yamamuro et al. (2021) Multi-Mediator Simulation Dataset
Last updated from:910cb66d3b. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 188 | ||
| source / vignettes | OK | 277 | ||
| linux-release | OK | 185 | ||
| windows-devel | OK | 117 | ||
| windows-release | OK | 100 | ||
| wasm-release | OK | 118 |
Exports:dyn_intgformulamediationrecodesspec_model
Dependencies:codetoolsdata.tablefuturefuture.applyglobalslistenvnnetparallellyprogressr
Last update: 2026-11-06
Started: 2026-11-06
Last update: 2026-11-06
Started: 2026-11-06
Last update: 2026-11-06
Started: 2026-11-06
Last update: 2026-11-06
Started: 2026-11-06
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Define a dynamic intervention rule | dyn_int |
| Parametric g-formula for time-varying interventions | gformula |
| Bone marrow transplant data (graft-versus-host disease) | gvhd |
| Mediation analysis with the parametric g-formula | mediation |
| Example Dataset for a Non-Survival Outcome | nonsurvivaldata |
| Print the results of gformula() or mediation() | print.gformula |
| Recode variables inside the simulation | recodes |
| Specify a model for one time-varying variable | spec_model |
| Summarise the results of gformula() or mediation() | summary.gformula |
| Example Dataset for a Survival Outcome | survivaldata |
| Yamamuro et al. (2021) Multi-Mediator Simulation Dataset | yamamurodata |
