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 (<doi:10.1002/sim.7426>) and natural (<doi:10.1515/jci-2016-0006>) direct and indirect effects. Estimation uses the parametric g-formula (<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.zip(r-4.5-any)
causalMed_0.1.3.tgz(r-4.6-any)causalMed_0.1.3.tgz(r-4.5-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://adayim.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:1b7a9112e3. Checks:9 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 168 | ||
| source / vignettes | OK | 269 | ||
| linux-release | OK | 147 | ||
| macos-release | OK | 124 | ||
| macos-oldrel | OK | 106 | ||
| windows-devel | OK | 111 | ||
| windows-release | OK | 115 | ||
| windows-oldrel | OK | 121 | ||
| wasm-release | OK | 106 |
Exports:dyn_intgformulamediationrecodesspec_model
Dependencies:codetoolsdata.tablefuturefuture.applyglobalslistenvnnetparallellyprogressr
Last update: 2026-10-04
Started: 2026-07-18
Last update: 2026-10-04
Started: 2026-07-18
Last update: 2026-10-04
Started: 2026-07-18
Last update: 2026-10-04
Started: 2026-07-18
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 |
