{
  "_id": "6aef54e4a2c425adab329bea",
  "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\")),\nperson(\"Xingling\", \"Guo\",\nrole = c(\"aut\")))",
  "Description": "Causal mediation analysis for longitudinal data with\ntime-varying exposures, mediators and confounders, covering\nboth interventional (<doi:10.1002/sim.7426>) and natural\n(<doi:10.1515/jci-2016-0006>) direct and indirect effects.\nEstimation uses the parametric g-formula\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",
  "Repository": "https://adayim.r-universe.dev",
  "Date/Publication": "2026-10-13 12:21:39 UTC",
  "RemoteUrl": "https://github.com/adayim/causalmed",
  "RemoteRef": "HEAD",
  "RemoteSha": "1b7a9112e313ec60f9cf69d93a112ee06e80ad04",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-07 16:38:44 UTC",
    "User": "root"
  },
  "Author": "Alimu Dayimu [aut, cre],\nXingling Guo [aut]",
  "Maintainer": "Alimu Dayimu <ad938@cam.ac.uk>",
  "_user": "adayim",
  "_type": "src",
  "_file": "causalMed_0.1.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/f502baf9ac472f37373fe8fdb5efb3f8eeea980703b34d4df75a838bdfc18418",
  "_filesize": 1569910,
  "_sha256": "f502baf9ac472f37373fe8fdb5efb3f8eeea980703b34d4df75a838bdfc18418",
  "_expires": "2027-02-15T16:42:10.000Z",
  "_created": "2026-11-07T16:38:44.000Z",
  "_published": "2026-11-07T16:42:12.222Z",
  "_upstream": "https://github.com/adayim/causalmed",
  "_status": "success",
  "_maintainer": {
    "name": "Alimu Dayimu",
    "email": "ad938@cam.ac.uk",
    "login": "adayim",
    "description": "",
    "uuid": 5401293
  },
  "_jobs": [
    {
      "job": 128462421977,
      "time": 168,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13581733892"
    },
    {
      "job": 128462422119,
      "time": 147,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13582017126"
    },
    {
      "job": 128462421986,
      "time": 106,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13582415447"
    },
    {
      "job": 128462422107,
      "time": 124,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13581099758"
    },
    {
      "job": 128461290718,
      "time": 269,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13582082731"
    },
    {
      "job": 128462422109,
      "time": 106,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13582420001"
    },
    {
      "job": 128462422089,
      "time": 111,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13582267233"
    },
    {
      "job": 128462422070,
      "time": 121,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13581239311"
    },
    {
      "job": 128462422149,
      "time": 115,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13581284280"
    }
  ],
  "_buildurl": "https://github.com/r-universe/adayim/actions/runs/42391960777",
  "_commit": {
    "id": "1b7a9112e313ec60f9cf69d93a112ee06e80ad04",
    "author": "Alim Dayim <alimdayim@hotmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #41 from adayim/dev\n\nPrepare CRAN release",
    "time": 1791894099
  },
  "_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": "adayim",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-52",
      "n": 5
    },
    {
      "week": "2026-13",
      "n": 3
    },
    {
      "week": "2026-20",
      "n": 1
    },
    {
      "week": "2026-23",
      "n": 2
    },
    {
      "week": "2026-28",
      "n": 4
    },
    {
      "week": "2026-29",
      "n": 1
    },
    {
      "week": "2026-30",
      "n": 1
    },
    {
      "week": "2026-34",
      "n": 1
    },
    {
      "week": "2026-35",
      "n": 1
    },
    {
      "week": "2026-36",
      "n": 3
    },
    {
      "week": "2026-38",
      "n": 1
    },
    {
      "week": "2026-40",
      "n": 1
    },
    {
      "week": "2026-42",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.2",
      "date": "2026-09-20"
    }
  ],
  "_topics": [
    "g-formula",
    "mediation-analysis"
  ],
  "_stars": 12,
  "_contributors": [
    {
      "user": "adayim",
      "count": 168,
      "uuid": 5401293
    },
    {
      "user": "xinglg",
      "count": 8,
      "uuid": 200106156
    },
    {
      "user": "wangchuanhai123",
      "count": 5,
      "uuid": 189462303
    }
  ],
  "_userbio": {
    "uuid": 5401293,
    "type": "user",
    "name": "Alim Dayim",
    "followers": 49
  },
  "_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"
  ],
  "_homeurl": "https://github.com/adayim/causalmed",
  "_realowner": "adayim",
  "_cranurl": true,
  "_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/adayim/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-07-18 20:52:27",
      "modified": "2026-10-04 23:10:54",
      "commits": 7
    },
    {
      "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-07-18 20:52:27",
      "modified": "2026-10-04 23:10:54",
      "commits": 6
    },
    {
      "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-07-18 20:52:27",
      "modified": "2026-10-04 23:10:54",
      "commits": 6
    },
    {
      "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-07-18 20:52:27",
      "modified": "2026-10-04 23:10:54",
      "commits": 6
    }
  ],
  "_score": 6.836577274840649,
  "_indexed": true,
  "_nocasepkg": "causalmed",
  "_universes": [
    "adayim"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-11-07T16:41:07.000Z",
      "distro": "resolute",
      "commit": "1b7a9112e313ec60f9cf69d93a112ee06e80ad04",
      "fileid": "https://r2.ropensci.org/9f50f071fd26de7184d75f53a8f71849338fdfd7dcf22551dd48fc7274fab098",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/adayim/actions/runs/42391960777"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.3",
      "date": "2026-11-07T16:40:59.000Z",
      "distro": "resolute",
      "commit": "1b7a9112e313ec60f9cf69d93a112ee06e80ad04",
      "fileid": "https://r2.ropensci.org/76fe30fbf62a33f065203f67bf5df44c55f811e14c1e0b12233bad5e45d20bd1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/adayim/actions/runs/42391960777"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-11-07T16:40:20.000Z",
      "commit": "1b7a9112e313ec60f9cf69d93a112ee06e80ad04",
      "fileid": "https://r2.ropensci.org/f96af0d4ff3619bc8c3d4659a6b37783535472adbff9901f7e4dc3fbc0c3ae66",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/adayim/actions/runs/42391960777"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.3",
      "date": "2026-11-07T16:40:37.000Z",
      "commit": "1b7a9112e313ec60f9cf69d93a112ee06e80ad04",
      "fileid": "https://r2.ropensci.org/65b7fa52269e60f972a736b8a1f9664f86b857b162a5cce6866ae2059d333045",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/adayim/actions/runs/42391960777"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.3",
      "date": "2026-11-07T16:40:51.000Z",
      "commit": "1b7a9112e313ec60f9cf69d93a112ee06e80ad04",
      "fileid": "https://r2.ropensci.org/d40cf5c4b9fb66e33f1fab69e1b85fd8fa796cfb7b627c71ae2eefc4b61b1cc8",
      "status": "success",
      "buildurl": "https://github.com/r-universe/adayim/actions/runs/42391960777"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-11-07T16:40:06.000Z",
      "commit": "1b7a9112e313ec60f9cf69d93a112ee06e80ad04",
      "fileid": "https://r2.ropensci.org/71235cef04b2511784df20b78facb28765893f8e55e7141293e0ba4ba567756a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/adayim/actions/runs/42391960777"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-11-07T16:40:12.000Z",
      "commit": "1b7a9112e313ec60f9cf69d93a112ee06e80ad04",
      "fileid": "https://r2.ropensci.org/4e5c3e3adce9f0e11deb6f33ffb856643483cfe1222100d6b85c76e9ec77de4f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/adayim/actions/runs/42391960777"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.3",
      "date": "2026-11-07T16:40:03.000Z",
      "commit": "1b7a9112e313ec60f9cf69d93a112ee06e80ad04",
      "fileid": "https://r2.ropensci.org/cdc1dcf5d93c0d2cd3f78ee7430b7d868c108dbbbae55fcd839924a05d32ec62",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/adayim/actions/runs/42391960777"
    }
  ]
}