{
  "_id": "6a2127e0cd65a98ecbd21924",
  "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-06-04 07:16:53 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",
  "MD5sum": "eca6ab8197727e10edf6b50dacc9383b",
  "_user": "danielmc1603",
  "_type": "src",
  "_file": "twangMediation_1.2.1.tar.gz",
  "_fileid": "e867e5fa89def3df1ba69c6b8dd986504e2d3676c90403580fb55e95f84163c3",
  "_filesize": 1156444,
  "_sha256": "e867e5fa89def3df1ba69c6b8dd986504e2d3676c90403580fb55e95f84163c3",
  "_created": "2026-06-04T07:16:53.000Z",
  "_published": "2026-06-04T07:23:12.653Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79468912609,
      "time": 176,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7405353013"
    },
    {
      "job": 79468912660,
      "time": 170,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405351646"
    },
    {
      "job": 79468912594,
      "time": 243,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7405387383"
    },
    {
      "job": 79468912593,
      "time": 147,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405358161"
    },
    {
      "job": 79468464368,
      "time": 197,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405304597"
    },
    {
      "job": 79468912595,
      "time": 119,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405337327"
    },
    {
      "job": 79468912602,
      "time": 177,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7405353261"
    },
    {
      "job": 79468912625,
      "time": 120,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7405337818"
    },
    {
      "job": 79468912638,
      "time": 165,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7405350204"
    }
  ],
  "_buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/26936809280",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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
  },
  "_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"
  },
  "_downloads": {
    "count": 218,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/twangMediation"
  },
  "_searchresults": 0,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/twangMediation.html",
    "manual.pdf"
  ],
  "_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": [],
      "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-06-04T07:19:12.000Z",
      "distro": "noble",
      "commit": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
      "fileid": "31fec0c1d35e3eeb177f0312800ccd7d09381749c656e2d33c815a0c731bf984",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/26936809280"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.2.1",
      "date": "2026-06-04T07:19:13.000Z",
      "distro": "noble",
      "commit": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
      "fileid": "edbed300a3cf1e100d5f5972a08ddd7dee6fd8744d28c7bca3741e47a016aa5f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/26936809280"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.2.1",
      "date": "2026-06-04T07:21:39.000Z",
      "commit": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
      "fileid": "1e493a3299167bd77dbb3ddef5ba145f86ac963984ff270b063eefa84b7204c1",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/26936809280"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.2.1",
      "date": "2026-06-04T07:19:54.000Z",
      "commit": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
      "fileid": "481d8a1781901967bd39f5d3d3d68ebf2ca4b94035e4354b87003042ffbe452d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/26936809280"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.2.1",
      "date": "2026-06-04T07:19:10.000Z",
      "commit": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
      "fileid": "a422145589498405cc2c2057d8806d4539b8b1e29138b6fbf1af952f019d3db0",
      "status": "success",
      "buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/26936809280"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.2.1",
      "date": "2026-06-04T07:19:01.000Z",
      "commit": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
      "fileid": "e4ea3431bfabf40943141193e988c860b19dbdc541dcc9b0c584766fdf92547f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/26936809280"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.2.1",
      "date": "2026-06-04T07:18:14.000Z",
      "commit": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
      "fileid": "d89f1516c1541f418c09cfd969f3b2ebead67bec42ffd6af8049addba3587292",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/26936809280"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.2.1",
      "date": "2026-06-04T07:18:51.000Z",
      "commit": "d3bfcfc04b0f6dfcd455c6c1acfc3c56d135e339",
      "fileid": "37fd3b94fb9d86bb0121f252b1f7e9f204aa752c89b2cf8c04c0112a5a18820f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/danielmc1603/actions/runs/26936809280"
    }
  ]
}