{
  "_id": "6aca7cc6fe5cc25786e8a149",
  "Package": "twangMediation",
  "Title": "Twang Causal Mediation Modeling via Weighting",
  "Version": "1.2.1",
  "Authors@R": "c(person(given = \"Dan\",\nfamily = \"McCaffrey\",\nrole = c(\"aut\", \"cre\"),\nemail = \"dmccaffrey@ets.org\"),\nperson(given = \"Katherine\",\nfamily = \"Castellano\",\nrole = c(\"aut\"),\nemail = \"kecastellano@ets.org\"),\nperson(given = \"Donna\",\nfamily = \"Coffman\",\nrole = c(\"aut\"),\nemail = \"donna.coffman@temple.edu\"),\nperson(given = \"Brian\",\nfamily = \"Vegetabile\",\nrole = c(\"aut\"),\nemail = \"bvegetab@rand.org\"),\nperson(given = \"Megan\",\nfamily = \"Schuler\",\nrole = c(\"aut\"),\nemail = \"mschuler@rand.org\"),\nperson(given = \"Haoyu\",\nfamily = \"Zhou\",\nrole = c(\"aut\"),\nemail = \"haoyu.zhou@temple.edu\"))",
  "Author": "Dan McCaffrey [aut, cre], Katherine Castellano [aut], Donna\nCoffman [aut], Brian Vegetabile [aut], Megan Schuler [aut],\nHaoyu Zhou [aut]",
  "Maintainer": "Dan McCaffrey <dmccaffrey@ets.org>",
  "Description": "Provides functions for estimating natural direct and\nindirect effects for mediation analysis. It uses weighting\nwhere the weights are functions of estimates of the probability\nof exposure or treatment assignment (Hong, G (2010).\n<https://cepa.stanford.edu/sites/default/files/workshops/GH_JSM%20Proceedings%202010.pdf>\nHuber, M. (2014). <doi:10.1002/jae.2341>). Estimation of\nprobabilities can use generalized boosting or logistic\nregression. Additional functions provide diagnostics of the\nmodel fit and weights. The vignette provides details and\nexamples.",
  "VignetteBuilder": "R.rsp",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "RoxygenNote": "7.3.2",
  "LazyData": "true",
  "Config/testthat/edition": "3",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-10 16:50:13 UTC",
    "User": "root"
  },
  "Config/pak/sysreqs": "make libjpeg-dev libpng-dev",
  "Repository": "https://danielmc1603.r-universe.dev",
  "Date/Publication": "2025-11-16 08:20:02 UTC",
  "RemoteUrl": "https://github.com/cran/twangMediation",
  "RemoteRef": "HEAD",
  "RemoteSha": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
  "_user": "danielmc1603",
  "_type": "src",
  "_file": "twangMediation_1.2.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/5685df101ce502ac63e944224a628bc63a7aeccd02c1e02ab316e900787c6a64",
  "_filesize": 1155860,
  "_sha256": "5685df101ce502ac63e944224a628bc63a7aeccd02c1e02ab316e900787c6a64",
  "_expires": "2027-01-18T17:58:28.000Z",
  "_created": "2026-10-10T16:50:13.000Z",
  "_published": "2026-10-10T17:58:30.027Z",
  "_buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/38069077242",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 114263228029,
      "time": 170,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11675749138"
    },
    {
      "job": 114263227933,
      "time": 141,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11676382090"
    },
    {
      "job": 114263227990,
      "time": 220,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11678131351"
    },
    {
      "job": 114263227939,
      "time": 179,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11677647164"
    },
    {
      "job": 114262679551,
      "time": 169,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11676521346"
    },
    {
      "job": 114263228006,
      "time": 96,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "11675602608"
    },
    {
      "job": 114263227989,
      "time": 121,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "11675808911"
    },
    {
      "job": 114263227993,
      "time": 106,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "11675797486"
    },
    {
      "job": 114263228009,
      "time": 129,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "11676535089"
    }
  ],
  "_upstream": "https://github.com/cran/twangMediation",
  "_commit": {
    "id": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
    "author": "Dan McCaffrey <dmccaffrey@ets.org>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 1.2.1\n",
    "time": 1763281202
  },
  "_maintainer": {
    "name": "Dan McCaffrey",
    "email": "dmccaffrey@ets.org",
    "login": "danielmc1603",
    "description": "",
    "uuid": 45241123
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 2.10",
      "role": "Depends"
    },
    {
      "package": "twang",
      "role": "Imports"
    },
    {
      "package": "gbm",
      "version": ">= 1.5-3",
      "role": "Imports"
    },
    {
      "package": "gridExtra",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "lattice",
      "role": "Imports"
    },
    {
      "package": "latticeExtra",
      "role": "Imports"
    },
    {
      "package": "survey",
      "role": "Imports"
    },
    {
      "package": "R.rsp",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "cran",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-46",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "1.2.1",
      "date": "2025-11-16"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "danielmc1603",
      "count": 4,
      "uuid": 45241123
    }
  ],
  "_userbio": {
    "uuid": 45241123,
    "type": "user",
    "name": "danielmc1603",
    "followers": 0
  },
  "_downloads": {
    "count": 328,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/twangMediation"
  },
  "_searchresults": 0,
  "_rbuild": "4.6.1",
  "_assets": [
    "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/twangMediation.html"
  ],
  "_realowner": "danielmc1603",
  "_cranurl": false,
  "_releases": [
    {
      "version": "1.0",
      "date": "2021-07-27"
    },
    {
      "version": "1.1",
      "date": "2021-12-13"
    },
    {
      "version": "1.2",
      "date": "2022-08-16"
    },
    {
      "version": "1.2.1",
      "date": "2025-11-16"
    }
  ],
  "_exports": [
    "bal.table.mediation",
    "desc.effects",
    "wgtmed"
  ],
  "_datasets": [
    {
      "name": "NSDUH_female",
      "title": "A dataset containing the substance use condition and sexual orientation of 40293 women respondents to the 2017 & 2018 National Survey of Drug Use and Health",
      "object": "NSDUH_female",
      "class": [
        "data.frame"
      ],
      "fields": [
        "cigmon",
        "educ",
        "income",
        "NSDUHwt",
        "vestr",
        "verep",
        "employ",
        "race",
        "alc15",
        "cig15",
        "lgb_flag",
        "alc_cig_depend",
        "weight2y",
        "age"
      ],
      "rows": 40293,
      "table": true,
      "tojson": true
    },
    {
      "name": "tMdat",
      "title": "Simulated data for twangMediation",
      "object": "tMdat",
      "class": [
        "data.frame"
      ],
      "fields": [
        "w1",
        "w2",
        "w3",
        "A",
        "M",
        "Y",
        "te.wgt"
      ],
      "rows": 500,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "twangMediation-package",
      "title": "twangMediation: Twang Causal Mediation Modeling via Weighting",
      "topics": [
        "twangMediation-package",
        "twangMediation"
      ]
    },
    {
      "page": "bal.table.mediation",
      "title": "Compute the balance table for mediation object",
      "topics": [
        "bal.table.mediation"
      ]
    },
    {
      "page": "calculate_effects",
      "title": "Calculate the actual effects",
      "topics": [
        "calculate_effects"
      ]
    },
    {
      "page": "check_missing",
      "title": "Check vector for NA or NAN values",
      "topics": [
        "check_missing"
      ]
    },
    {
      "page": "desc.effects",
      "title": "Describe the effects",
      "topics": [
        "desc.effects"
      ]
    },
    {
      "page": "desc.effects.mediation",
      "title": "Describe the effects from a mediation object",
      "topics": [
        "desc.effects.mediation"
      ]
    },
    {
      "page": "dx.wts.mediation",
      "title": "Compute diagnostics assessing covariates balance",
      "topics": [
        "dx.wts.mediation"
      ]
    },
    {
      "page": "NSDUH_female",
      "title": "A dataset containing the substance use condition and sexual orientation of 40293 women respondents to the 2017 & 2018 National Survey of Drug Use and Health",
      "topics": [
        "NSDUH_female"
      ]
    },
    {
      "page": "plot.mediation",
      "title": "Plot the 'mediation' object",
      "topics": [
        "plot.mediation"
      ]
    },
    {
      "page": "print.bal.table.mediation",
      "title": "Default print statement for 'mediation' class",
      "topics": [
        "print.bal.table.mediation"
      ]
    },
    {
      "page": "print.mediation",
      "title": "Default print statement for 'mediation' class",
      "topics": [
        "print.mediation"
      ]
    },
    {
      "page": "summary.mediation",
      "title": "Displays a useful description of a 'mediation' object",
      "topics": [
        "summary.mediation"
      ]
    },
    {
      "page": "swapTxCtrl",
      "title": "Auxiliary function to swap treatment and control in one element of a desc object from a ps object or dx.wts object",
      "topics": [
        "swapTxCtrl"
      ]
    },
    {
      "page": "tMdat",
      "title": "Simulated data for twangMediation",
      "topics": [
        "tMdat"
      ]
    },
    {
      "page": "weighted_mean",
      "title": "Calculate a weighted mean",
      "topics": [
        "weighted_mean"
      ]
    },
    {
      "page": "wgtmed",
      "title": "Weighted mediation analysis",
      "topics": [
        "wgtmed"
      ]
    }
  ],
  "_rundeps": [
    "cli",
    "cpp11",
    "data.table",
    "DBI",
    "deldir",
    "farver",
    "gbm",
    "ggplot2",
    "glue",
    "gridExtra",
    "gtable",
    "interp",
    "isoband",
    "jpeg",
    "jsonlite",
    "labeling",
    "lattice",
    "latticeExtra",
    "lifecycle",
    "MASS",
    "Matrix",
    "MatrixModels",
    "minqa",
    "mitools",
    "numDeriv",
    "png",
    "R6",
    "RColorBrewer",
    "Rcpp",
    "RcppArmadillo",
    "RcppEigen",
    "rlang",
    "S7",
    "scales",
    "survey",
    "survival",
    "twang",
    "vctrs",
    "viridisLite",
    "withr",
    "xgboost",
    "xtable"
  ],
  "_vignettes": [
    {
      "source": "twangMediation.pdf.asis",
      "filename": "twangMediation.pdf",
      "title": "twangMediation Tutorial",
      "engine": "R.rsp::asis",
      "headings": [
        "Introduction",
        "An Overview of Causal Mediation",
        "Identification Assumptions",
        "Estimation",
        "Using twangMediation for causal mediation",
        "About this Tutorial"
      ],
      "created": "2025-11-16 08:20:02",
      "modified": "2025-11-16 08:20:02",
      "commits": 1
    }
  ],
  "_score": 2,
  "_indexed": true,
  "_nocasepkg": "twangmediation",
  "_universes": [
    "danielmc1603"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.2.1",
      "date": "2026-10-10T16:52:48.000Z",
      "distro": "resolute",
      "commit": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
      "fileid": "https://r2.ropensci.org/ff5454325c6056e2c704887f5c98563fdcdee926d9d240c89f4088c678319f00",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/38069077242"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.2.1",
      "date": "2026-10-10T16:52:13.000Z",
      "distro": "resolute",
      "commit": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
      "fileid": "https://r2.ropensci.org/8443b2bfa859e2212ab9898645f5208668016aab2aa440a7d38899c9487e37c1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/38069077242"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.1",
      "date": "2026-10-10T17:56:35.000Z",
      "commit": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
      "fileid": "https://r2.ropensci.org/96948ed151d6adfce2e6a4b9f5d57f81aead3434d863eca82ae8a5acc9f39482",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/38069077242"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.2.1",
      "date": "2026-10-10T17:55:45.000Z",
      "commit": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
      "fileid": "https://r2.ropensci.org/ec95e0f95180b7cf829eba269c3d2f054b5052442194a3483770edf6e0f648b1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/38069077242"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.1",
      "date": "2026-10-10T16:52:12.000Z",
      "commit": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
      "fileid": "https://r2.ropensci.org/c1a35b895eef7431ed9c3c97e8382e063dec0eb9be72707f428869bb8439e7b7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/38069077242"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.1",
      "date": "2026-10-10T16:51:36.000Z",
      "commit": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
      "fileid": "https://r2.ropensci.org/2a49ff89b07ce00f7ed4c3e67a380143fbb75334bb1f3f137759df95a86371d1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/38069077242"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.1",
      "date": "2026-10-10T16:51:22.000Z",
      "commit": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
      "fileid": "https://r2.ropensci.org/5df5755c2f815e180a1afa641917487dd765ed3f31107378e683b75196734b9e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/38069077242"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.2.1",
      "date": "2026-10-10T16:51:43.000Z",
      "commit": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
      "fileid": "https://r2.ropensci.org/2ce5c637190c47cfab73bbb3036b10c3a620ae437af9ce2ebc1eadf034c79bff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/38069077242"
    }
  ]
}