{
  "_id": "6aee4424ce821f1cf255e6e8",
  "Package": "causalMed",
  "Title": "Parametric G-Formula for Longitudinal Mediation and Total\nEffects",
  "Version": "0.1.3",
  "Authors@R": "c(person(\"Alimu\", \"Dayimu\", \nemail = \"ad938@cam.ac.uk\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0001-9998-7463\")),\nperson(\"Xingling\", \"Guo\",\nrole = c(\"aut\")))",
  "Description": "Causal mediation analysis for longitudinal data with\ntime-varying exposures, mediators and confounders, covering\nboth interventional (Lin et al. (2017) <doi:10.1002/sim.7426>)\nand natural (Zheng and van der Laan (2017)\n<doi:10.1515/jci-2016-0006>) direct and indirect effects.\nEstimation uses the parametric g-formula (Robins (1986)\n<doi:10.1016/0270-0255(86)90088-6>), which is also exposed\ndirectly so that counterfactual means or risks can be estimated\nunder static, dynamic or time-varying hypothetical\ninterventions.",
  "License": "GPL (>= 2)",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "URL": "https://github.com/adayim/causalMed,\nhttps://adayim.github.io/causalMed/",
  "BugReports": "https://github.com/adayim/causalMed/issues",
  "VignetteBuilder": "knitr",
  "Config/roxygen2/version": "8.0.0",
  "RoxygenNote": "7.3.3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-06 21:14:35 UTC",
    "User": "root"
  },
  "Author": "Alimu Dayimu [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-9998-7463>), Xingling Guo [aut]",
  "Maintainer": "Alimu Dayimu <ad938@cam.ac.uk>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-11-06 18:07:56 UTC",
  "RemoteUrl": "https://github.com/cran/causalMed",
  "RemoteRef": "HEAD",
  "RemoteSha": "910cb66d3b42ff30c8fd4fdcb0f93fc1355fd24e",
  "_user": "cran",
  "_type": "src",
  "_file": "causalMed_0.1.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/74b570d3ef43238b1ff8de6110daf3b2257c436ce1f28ac779347b9f2f9a6a1f",
  "_filesize": 1571636,
  "_sha256": "74b570d3ef43238b1ff8de6110daf3b2257c436ce1f28ac779347b9f2f9a6a1f",
  "_expires": "2027-02-14T21:18:26.000Z",
  "_created": "2026-11-06T21:14:35.000Z",
  "_published": "2026-11-06T21:18:28.489Z",
  "_upstream": "https://github.com/cran/causalMed",
  "_status": "success",
  "_maintainer": {
    "name": "Alimu Dayimu",
    "email": "ad938@cam.ac.uk",
    "login": "adayim",
    "orcid": "0000-0001-9998-7463",
    "description": "",
    "uuid": 5401293
  },
  "_jobs": [
    {
      "job": 128158338127,
      "time": 188,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13542046547"
    },
    {
      "job": 128158338082,
      "time": 185,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13540519954"
    },
    {
      "job": 128155920510,
      "time": 277,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13541596178"
    },
    {
      "job": 128158337877,
      "time": 118,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13540969140"
    },
    {
      "job": 128158338132,
      "time": 117,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13541286844"
    },
    {
      "job": 128158337937,
      "time": 100,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13542191184"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/42294376541",
  "_commit": {
    "id": "910cb66d3b42ff30c8fd4fdcb0f93fc1355fd24e",
    "author": "Alimu Dayimu <ad938@cam.ac.uk>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.3\n",
    "time": 1793988476
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.1",
      "role": "Depends"
    },
    {
      "package": "data.table",
      "role": "Imports"
    },
    {
      "package": "nnet",
      "role": "Imports"
    },
    {
      "package": "future",
      "role": "Imports"
    },
    {
      "package": "future.apply",
      "role": "Imports"
    },
    {
      "package": "progressr",
      "role": "Imports"
    },
    {
      "package": "gfoRmula",
      "role": "Suggests"
    },
    {
      "package": "Hmisc",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "survival",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-45",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.3",
      "date": "2026-11-06"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "adayim",
      "count": 1,
      "uuid": 5401293
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 635,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/causalMed"
  },
  "_devurl": "https://github.com/adayim/causalmed",
  "_pkgdown": "https://adayim.github.io/causalMed/",
  "_searchresults": 11,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/causalMed.html",
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_cranurl": false,
  "_releases": [
    {
      "version": "0.1.3",
      "date": "2026-11-06"
    }
  ],
  "_exports": [
    "dyn_int",
    "gformula",
    "mediation",
    "recodes",
    "spec_model"
  ],
  "_datasets": [
    {
      "name": "gvhd",
      "title": "Bone marrow transplant data (graft-versus-host disease)",
      "object": "gvhd",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "age",
        "male",
        "cmv",
        "all",
        "wait",
        "daysnorelapse",
        "daysnoplatnorm",
        "daysnogvhd",
        "daysrelapse",
        "daysplatnorm",
        "daysgvhd",
        "day",
        "d",
        "gvhd",
        "relapse",
        "platnorm",
        "gvhdm1",
        "relapsem1",
        "platnormm1",
        "censlost"
      ],
      "rows": 108714,
      "table": true,
      "tojson": true
    },
    {
      "name": "nonsurvivaldata",
      "title": "Example Dataset for a Non-Survival Outcome",
      "object": "nonsurvivaldata",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "time",
        "V",
        "L1",
        "L2",
        "A",
        "M",
        "Y_cont",
        "Y_bin",
        "lag1_A",
        "lag1_L1",
        "lag1_L2",
        "lag1_M"
      ],
      "rows": 15000,
      "table": true,
      "tojson": true
    },
    {
      "name": "survivaldata",
      "title": "Example Dataset for a Survival Outcome",
      "object": "survivaldata",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "time",
        "V",
        "A",
        "L",
        "M",
        "Y",
        "C",
        "lag1_A",
        "lag1_M",
        "lag1_L"
      ],
      "rows": 10223,
      "table": true,
      "tojson": true
    },
    {
      "name": "yamamurodata",
      "title": "Yamamuro et al. (2021) Multi-Mediator Simulation Dataset",
      "object": "yamamurodata",
      "class": [
        "data.frame"
      ],
      "fields": [
        "id",
        "time",
        "V",
        "A",
        "L",
        "M1",
        "M2",
        "Y",
        "lag1_A",
        "lag1_L",
        "lag1_M1",
        "lag1_M2",
        "L0base",
        "M10base",
        "M20base"
      ],
      "rows": 29482,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "dyn_int",
      "title": "Define a dynamic intervention rule",
      "topics": [
        "dyn_int"
      ]
    },
    {
      "page": "gformula",
      "title": "Parametric g-formula for time-varying interventions",
      "topics": [
        "gformula"
      ]
    },
    {
      "page": "gvhd",
      "title": "Bone marrow transplant data (graft-versus-host disease)",
      "topics": [
        "gvhd"
      ]
    },
    {
      "page": "mediation",
      "title": "Mediation analysis with the parametric g-formula",
      "topics": [
        "mediation"
      ]
    },
    {
      "page": "nonsurvivaldata",
      "title": "Example Dataset for a Non-Survival Outcome",
      "topics": [
        "nonsurvivaldata"
      ]
    },
    {
      "page": "print.gformula",
      "title": "Print the results of gformula() or mediation()",
      "topics": [
        "print.gformula"
      ]
    },
    {
      "page": "recodes",
      "title": "Recode variables inside the simulation",
      "topics": [
        "recodes"
      ]
    },
    {
      "page": "spec_model",
      "title": "Specify a model for one time-varying variable",
      "topics": [
        "spec_model"
      ]
    },
    {
      "page": "summary.gformula",
      "title": "Summarise the results of gformula() or mediation()",
      "topics": [
        "summary.gformula"
      ]
    },
    {
      "page": "survivaldata",
      "title": "Example Dataset for a Survival Outcome",
      "topics": [
        "survivaldata"
      ]
    },
    {
      "page": "yamamurodata",
      "title": "Yamamuro et al. (2021) Multi-Mediator Simulation Dataset",
      "topics": [
        "yamamurodata"
      ]
    }
  ],
  "_readme": "https://github.com/cran/causalMed/raw/HEAD/README.md",
  "_rundeps": [
    "codetools",
    "data.table",
    "future",
    "future.apply",
    "globals",
    "listenv",
    "nnet",
    "parallelly",
    "progressr"
  ],
  "_vignettes": [
    {
      "source": "causalMed-02-mediation.Rmd",
      "filename": "causalMed-02-mediation.html",
      "title": "Causal Mediation Analysis with causalMed",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "The two estimands",
        "Requirements",
        "Survival data",
        "Single mediator: interventional effects",
        "The interventions",
        "The decomposition",
        "Permutation averaging: n_vw",
        "Other exposure regimes",
        "Multiple mediators: the Yamamuro et al. (2021) simulation",
        "Censoring",
        "Absorbing states with subset",
        "Bootstrap confidence intervals",
        "Natural effects",
        "Targeted estimation",
        "References"
      ],
      "created": "2026-11-06 18:07:56",
      "modified": "2026-11-06 18:07:56",
      "commits": 1
    },
    {
      "source": "causalMed-04-vs-gfoRmula.Rmd",
      "filename": "causalMed-04-vs-gfoRmula.html",
      "title": "causalMed and gfoRmula: A Comparative Overview",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Shared foundation",
        "What gfoRmula offers that causalMed does not",
        "What causalMed adds: mediation",
        "Interfaces",
        "Side-by-side estimates",
        "Data preparation",
        "Example 1: Binary end-of-follow-up outcome",
        "Example 2: Survival (time-to-event) outcome",
        "Example 3: Dynamic intervention",
        "Larger Monte Carlo sample",
        "References"
      ],
      "created": "2026-11-06 18:07:56",
      "modified": "2026-11-06 18:07:56",
      "commits": 1
    },
    {
      "source": "causalMed-03-gformula.Rmd",
      "filename": "causalMed-03-gformula.html",
      "title": "Estimating Total Effects with the Parametric G-formula",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Example 1: binary end-of-follow-up outcome",
        "Example 2: survival (time-to-event) outcome",
        "Dynamic (threshold) interventions",
        "Custom covariate distributions",
        "A published example: preventing GvHD (Keil et al. 2014)",
        "Bootstrap Confidence Intervals",
        "Working with Results",
        "Extracting fitted models",
        "Retrieving the simulated data",
        "References"
      ],
      "created": "2026-11-06 18:07:56",
      "modified": "2026-11-06 18:07:56",
      "commits": 1
    },
    {
      "source": "causalMed-01-overview.Rmd",
      "filename": "causalMed-01-overview.html",
      "title": "Getting Started with causalMed",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Data",
        "Specifying models",
        "Lagged and derived variables",
        "Quick start: total effects with gformula()",
        "Quick start: mediation with mediation()",
        "Parallel bootstrap",
        "Causal assumptions",
        "References"
      ],
      "created": "2026-11-06 18:07:56",
      "modified": "2026-11-06 18:07:56",
      "commits": 1
    }
  ],
  "_score": 3.3424226808222066,
  "_indexed": true,
  "_nocasepkg": "causalmed",
  "_universes": [
    "cran",
    "adayim"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-11-06T21:17:21.000Z",
      "distro": "resolute",
      "commit": "910cb66d3b42ff30c8fd4fdcb0f93fc1355fd24e",
      "fileid": "https://r2.ropensci.org/b73dea1c92f32572999977d88d85566134d31fe7d5c0fa717f0cc7ed4975da9f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42294376541"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-11-06T21:17:21.000Z",
      "distro": "resolute",
      "commit": "910cb66d3b42ff30c8fd4fdcb0f93fc1355fd24e",
      "fileid": "https://r2.ropensci.org/43d0eaf6f981c396e918faabb730658c1df398f382a6769da13871c5df108c55",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42294376541"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.3",
      "date": "2026-11-06T21:16:54.000Z",
      "commit": "910cb66d3b42ff30c8fd4fdcb0f93fc1355fd24e",
      "fileid": "https://r2.ropensci.org/f75da976e57dd3e8faf6b8993bde92236c4f91d96e7f5f073ee9f79e7f6205fc",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42294376541"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-11-06T21:16:04.000Z",
      "commit": "910cb66d3b42ff30c8fd4fdcb0f93fc1355fd24e",
      "fileid": "https://r2.ropensci.org/b98a984ef6d73af237f0b3b68380fad7b06ab13a4225b6e0bfe7f5b0b77f4781",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42294376541"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-11-06T21:16:00.000Z",
      "commit": "910cb66d3b42ff30c8fd4fdcb0f93fc1355fd24e",
      "fileid": "https://r2.ropensci.org/de357b5ea14f477e8af3ff4133c4c9ce240f9e08ddc034d8e831d13510938170",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42294376541"
    }
  ]
}