{
  "_id": "6ad467f3dc7ca4d810c6c9b6",
  "Package": "missingmed",
  "Type": "Package",
  "Title": "Mediation Analysis with Multiple Imputation for Missing Data",
  "Version": "0.10.0",
  "Date": "2026-10-14",
  "Authors@R": "person(\"Davood\", \"Tofighi\",\nemail = \"dtofighi@gmail.com\",\nrole = c(\"aut\", \"cre\", \"cph\"),\ncomment= c(ORCID= \"0000-0001-8523-7776\")\n)",
  "VignetteBuilder": "knitr, rmarkdown",
  "Language": "en-US",
  "Config/testthat/edition": "3",
  "Description": "Mediation analysis with incomplete data. Fits the mediator\nand outcome regressions on each dataset imputed with 'mice'\n(through 'medfit'), pools them with Rubin's rules, and infers\nthe indirect effect with a Monte Carlo confidence interval\n('RMediation') or a D4-stacked model-based constrained\noptimization (MBCO) likelihood-ratio test. Also provides an\ninverse probability weighting estimator, treatment-by-mediator\ninteraction models, and a delta-adjustment sensitivity analysis\nfor departures from missing at random. Structural equation\nmodels, including a latent mediator, are fit with 'lavaan'.",
  "License": "GPL (>= 3)",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE, roclets = c(\"rd\",\"collate\",\"namespace\"))",
  "URL": "https://github.com/Data-Wise/missingmed,\nhttps://data-wise.github.io/missingmed/",
  "BugReports": "https://github.com/Data-Wise/missingmed/issues",
  "Config/roxygen2/version": "8.1.0",
  "Config/pak/sysreqs": "cmake make libicu-dev libx11-dev zlib1g-dev",
  "Repository": "https://data-wise.r-universe.dev",
  "Date/Publication": "2026-10-14 21:54:04 UTC",
  "RemoteUrl": "https://github.com/Data-Wise/missingmed",
  "RemoteRef": "main",
  "RemoteSha": "ed28304c2276394dc1ee489d4896be6d6271ab2d",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-18 06:24:27 UTC",
    "User": "root"
  },
  "Author": "Davood Tofighi [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0001-8523-7776>)",
  "Maintainer": "Davood Tofighi <dtofighi@gmail.com>",
  "_user": "data-wise",
  "_type": "src",
  "_file": "missingmed_0.10.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/b2154820badbffdcf274a321d8151c8953cb5d27762a187f25be6d83aa7fb35d",
  "_filesize": 1027386,
  "_sha256": "b2154820badbffdcf274a321d8151c8953cb5d27762a187f25be6d83aa7fb35d",
  "_expires": "2027-01-26T06:32:17.000Z",
  "_created": "2026-10-18T06:24:27.000Z",
  "_published": "2026-10-18T06:32:19.612Z",
  "_buildurl": "https://github.com/r-universe/data-wise/actions/runs/39103731302",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117605727481,
      "time": 217,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12126814292"
    },
    {
      "job": 117605727461,
      "time": 269,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12127253245"
    },
    {
      "job": 117605727406,
      "time": 185,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "ERROR",
      "artifact": "12128330097"
    },
    {
      "job": 117605727423,
      "time": 187,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "ERROR",
      "artifact": "12128190572"
    },
    {
      "job": 117605146176,
      "time": 201,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12127760580"
    },
    {
      "job": 117605727389,
      "time": 132,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12126804151"
    },
    {
      "job": 117605727416,
      "time": 197,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12127154973"
    },
    {
      "job": 117605727487,
      "time": 216,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12128105429"
    },
    {
      "job": 117605727433,
      "time": 189,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12127304664"
    }
  ],
  "_upstream": "https://github.com/Data-Wise/missingmed",
  "_commit": {
    "id": "ed28304c2276394dc1ee489d4896be6d6271ab2d",
    "author": "Davood Tofighi <dtofighi@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #97 from Data-Wise/dev\n\nRelease: missingmed v0.10.0",
    "time": 1792014844
  },
  "_maintainer": {
    "name": "Davood Tofighi",
    "email": "dtofighi@gmail.com",
    "login": "data-wise",
    "description": "Data science, R, Python, Statistics, biostatistics, Psychology, and Engineering!",
    "uuid": 1749560,
    "orcid": "0000-0001-8523-7776"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "methods",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "S7",
      "version": ">= 0.2.0",
      "role": "Imports"
    },
    {
      "package": "medfit",
      "version": ">= 0.3.1",
      "role": "Imports"
    },
    {
      "package": "RMediation",
      "version": ">= 1.5.0",
      "role": "Imports"
    },
    {
      "package": "mice",
      "version": ">= 3.18.0",
      "role": "Imports"
    },
    {
      "package": "lavaan",
      "version": ">= 0.7-3",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "version": ">= 3.0.0",
      "role": "Imports"
    },
    {
      "package": "broom",
      "version": ">= 0.7.0",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 0.4.0",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "version": ">= 1.0.3",
      "role": "Imports"
    },
    {
      "package": "sandwich",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "mitml",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "quarto",
      "role": "Suggests"
    },
    {
      "package": "pkgdown",
      "role": "Suggests"
    }
  ],
  "_owner": "data-wise",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-46",
      "n": 2
    },
    {
      "week": "2025-47",
      "n": 3
    },
    {
      "week": "2026-24",
      "n": 1
    },
    {
      "week": "2026-35",
      "n": 2
    },
    {
      "week": "2026-39",
      "n": 1
    },
    {
      "week": "2026-41",
      "n": 6
    },
    {
      "week": "2026-42",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "v0.2.0",
      "date": "2026-06-12"
    },
    {
      "name": "v0.3.0",
      "date": "2026-08-30"
    },
    {
      "name": "v0.3.1",
      "date": "2026-08-30"
    },
    {
      "name": "v0.4.0",
      "date": "2026-09-23"
    },
    {
      "name": "v0.5.0",
      "date": "2026-10-07"
    },
    {
      "name": "v0.5.1",
      "date": "2026-10-08"
    },
    {
      "name": "v0.6.0",
      "date": "2026-10-08"
    },
    {
      "name": "v0.7.0",
      "date": "2026-10-09"
    },
    {
      "name": "v0.8.0",
      "date": "2026-10-09"
    },
    {
      "name": "v0.9.0",
      "date": "2026-10-10"
    },
    {
      "name": "v0.10.0",
      "date": "2026-10-14"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "data-wise",
      "count": 222,
      "uuid": 1749560
    }
  ],
  "_userbio": {
    "uuid": 1749560,
    "type": "user",
    "name": "Davood Tofighi",
    "followers": 23,
    "description": "Data science, R, Python, Statistics, biostatistics, Psychology, and Engineering!"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/missingmed"
  },
  "_devurl": "https://github.com/data-wise/missingmed",
  "_pkgdown": "https://data-wise.github.io/missingmed/",
  "_searchresults": 21,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/missingmed.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_cranurl": false,
  "_exports": [
    "infer",
    "mbco_d4",
    "MbcoMIResult",
    "MDMediationData",
    "MDMediationFit",
    "MDMediationResult",
    "MDSensitivityResult",
    "n_imp",
    "n_imputations",
    "per_imputation_list",
    "pool",
    "run",
    "sensitivity_mnar",
    "set_md_mediation",
    "tidy"
  ],
  "_help": [
    {
      "page": "infer",
      "title": "Inference on the indirect effect under multiple imputation",
      "topics": [
        "infer"
      ]
    },
    {
      "page": "mbco_d4",
      "title": "D4-stacked MBCO test of an indirect effect across imputed datasets",
      "topics": [
        "mbco_d4"
      ]
    },
    {
      "page": "MbcoMIResult",
      "title": "MbcoMIResult: D4-stacked MBCO test result (S7)",
      "topics": [
        "MbcoMIResult"
      ]
    },
    {
      "page": "MDMediationData",
      "title": "MDMediationData: imputed data + mediation specification (S7)",
      "topics": [
        "MDMediationData"
      ]
    },
    {
      "page": "MDMediationFit",
      "title": "MDMediationFit: per-imputation mediation fits (S7)",
      "topics": [
        "MDMediationFit"
      ]
    },
    {
      "page": "MDMediationResult",
      "title": "MDMediationResult: pooled mediation result (S7)",
      "topics": [
        "MDMediationResult"
      ]
    },
    {
      "page": "MDSensitivityResult",
      "title": "MDSensitivityResult: MNAR sensitivity curve (S7)",
      "topics": [
        "MDSensitivityResult"
      ]
    },
    {
      "page": "n_imp",
      "title": "Get the number of imputations from a mids object",
      "topics": [
        "n_imp"
      ]
    },
    {
      "page": "n_imputations",
      "title": "Number of imputations",
      "topics": [
        "n_imputations"
      ]
    },
    {
      "page": "per_imputation_list",
      "title": "Access the per-imputation mediation fits (for MBCO)",
      "topics": [
        "per_imputation_list"
      ]
    },
    {
      "page": "pool",
      "title": "Pool per-imputation mediation fits with Rubin's rules",
      "topics": [
        "pool"
      ]
    },
    {
      "page": "run",
      "title": "Fit the mediation model across imputations",
      "topics": [
        "run"
      ]
    },
    {
      "page": "sensitivity_mnar",
      "title": "MNAR sensitivity analysis by delta-adjusted imputation",
      "topics": [
        "sensitivity_mnar"
      ]
    },
    {
      "page": "set_md_mediation",
      "title": "Set up a mediation analysis with missing data (MI or IPW)",
      "topics": [
        "set_md_mediation"
      ]
    }
  ],
  "_pkglogo": "https://github.com/Data-Wise/missingmed/raw/main/man/figures/logo.png",
  "_readme": "https://github.com/Data-Wise/missingmed/raw/main/README.md",
  "_rundeps": [
    "backports",
    "bit",
    "bit64",
    "boot",
    "broom",
    "checkmate",
    "cli",
    "clipr",
    "codetools",
    "cpp11",
    "crayon",
    "cubature",
    "dplyr",
    "forcats",
    "foreach",
    "generics",
    "glmnet",
    "glue",
    "haven",
    "hms",
    "iterators",
    "jomo",
    "lattice",
    "lavaan",
    "lifecycle",
    "lme4",
    "magrittr",
    "MASS",
    "Matrix",
    "medfit",
    "mice",
    "minqa",
    "mitml",
    "mnormt",
    "nlme",
    "nloptr",
    "nnet",
    "numDeriv",
    "ordinal",
    "pan",
    "pbivnorm",
    "pillar",
    "pkgconfig",
    "prettyunits",
    "progress",
    "purrr",
    "quadprog",
    "R6",
    "rbibutils",
    "Rcpp",
    "RcppEigen",
    "Rdpack",
    "readr",
    "reformulas",
    "rlang",
    "RMediation",
    "rpart",
    "S7",
    "sandwich",
    "shape",
    "stringi",
    "stringr",
    "survival",
    "tibble",
    "tidyr",
    "tidyselect",
    "tzdb",
    "ucminf",
    "utf8",
    "vctrs",
    "vroom",
    "withr",
    "zoo"
  ],
  "_vignettes": [
    {
      "source": "worked-analysis.Rmd",
      "filename": "worked-analysis.html",
      "title": "A worked analysis with a missing mediator",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Part 1: the core analysis",
        "The data",
        "Step 1: the complete-data reference",
        "Step 2: make the mediator missing at random",
        "Step 3: impute the mediator",
        "Step 4: a pooled Monte Carlo interval",
        "Step 5: test the indirect effect with D4-MBCO",
        "Step 6: when both paths are weak",
        "Step 7: how much does the conclusion depend on MAR?",
        "Part 2: new since missingmed 0.5.0",
        "The model is checked before it is fitted",
        "Arguments that do not apply are reported",
        "A treatment-by-mediator interaction",
        "Sensitivity analysis with the MBCO test",
        "Summary"
      ],
      "created": "2026-10-08 03:39:54",
      "modified": "2026-10-08 03:39:54",
      "commits": 1
    },
    {
      "source": "missingmed.Rmd",
      "filename": "missingmed.html",
      "title": "Getting started with missingmed",
      "engine": "knitr::rmarkdown",
      "headings": [
        "A worked example",
        "1. Specify the mediation model",
        "2. Fit each imputation",
        "3. Pool with Rubin's rules",
        "4. Inference on the indirect effect",
        "A binary mediator (or outcome)",
        "Structural equation models and latent mediators",
        "Migrating from the S4 API"
      ],
      "created": "2026-06-12 03:42:10",
      "modified": "2026-10-09 16:22:10",
      "commits": 8
    },
    {
      "source": "technical.Rmd",
      "filename": "technical.html",
      "title": "Technical reference: design, contracts, and methodology",
      "engine": "knitr::rmarkdown",
      "headings": [
        "1. Architecture (S7, four verbs, three classes)",
        "2. Ecosystem contracts",
        "2.1 medfit::MediationData (the fitting contract)",
        "2.2 RMediation (the inference contract)",
        "2.3 Dependency direction (no cycle)",
        "3. The MI estimator and Rubin's rules",
        "Worked example: pooling three imputations",
        "3A. Treatment-by-mediator interaction (X:M)",
        "3A.1 Estimand",
        "3A.2 The four-way decomposition, pooled",
        "3A.3 What stays refused",
        "4. MBCO under MI: D4-stacking (and why it is hosted here)",
        "4.1 Why MBCO does not commute with Rubin's rules",
        "4.2 D4 combination",
        "Worked example: pooling three MBCO statistics",
        "4.3 Hosting decision",
        "5. The IPW estimator",
        "5.1 Pipeline",
        "5.2 Weight estimation",
        "Worked example: four weights, stabilized and trimmed",
        "5.3 Variance: sandwich vs model",
        "5A. Non-gaussian models (family_y, family_m) and the scale of a*b",
        "5A.1 The scale caveat",
        "5A.2 IPW plus a binomial family: the non-integer-successes warning",
        "5B. MNAR sensitivity (sensitivity_mnar())",
        "5B.1 Method",
        "5B.2 What delta actually is — read before choosing a value",
        "5B.3 Reading a tipping point",
        "5B.4 Binary targets: when is a log-odds delta of 1 plausible?",
        "5B.5 Limitations",
        "6. Cross-package engineering decisions",
        "7. Design-choice summary",
        "7A. Self-check",
        "7A.1 Three common confusions",
        "8. References"
      ],
      "created": "2026-06-12 03:42:10",
      "modified": "2026-10-10 04:53:48",
      "commits": 9
    },
    {
      "source": "mbco-mi.Rmd",
      "filename": "mbco-mi.html",
      "title": "Testing an indirect effect with incomplete data",
      "engine": "knitr::rmarkdown",
      "headings": [
        "What you get",
        "Before you impute: the imputation model",
        "Worked example",
        "The interval",
        "The test",
        "The result object",
        "Options and edge cases",
        "ariv = \"fixed\" or \"own\"",
        "Without the pipeline: mbco_d4()",
        "A single imputation",
        "When (k) differs across imputations",
        "MBCO on a pooled object",
        "Models with an X:M interaction",
        "Why MBCO does not commute with Rubin's rules",
        "Operating characteristics",
        "Not covered here",
        "References"
      ],
      "created": "2026-06-12 03:42:10",
      "modified": "2026-10-14 21:54:04",
      "commits": 6
    }
  ],
  "_score": 4.468347330412158,
  "_indexed": true,
  "_nocasepkg": "missingmed",
  "_universes": [
    "data-wise"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.10.0",
      "date": "2026-10-18T06:27:08.000Z",
      "distro": "resolute",
      "commit": "ed28304c2276394dc1ee489d4896be6d6271ab2d",
      "fileid": "https://r2.ropensci.org/1f58125e0c1362f57292992ee2c4657ba72e42303b9b7c7b619f7cff01fca0d0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/39103731302"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.10.0",
      "date": "2026-10-18T06:27:17.000Z",
      "distro": "resolute",
      "commit": "ed28304c2276394dc1ee489d4896be6d6271ab2d",
      "fileid": "https://r2.ropensci.org/3a7acc074c7fc07121a8ddbd38ecdda83e90138b12f61ccc50ff8c9924777048",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/39103731302"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.10.0",
      "date": "2026-10-18T06:30:23.000Z",
      "commit": "ed28304c2276394dc1ee489d4896be6d6271ab2d",
      "fileid": "https://r2.ropensci.org/42a3bb6ea896ca32b7a2989eaf89fb72f9c0a096801de4230737cf345dda4cbb",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/39103731302"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.10.0",
      "date": "2026-10-18T06:30:07.000Z",
      "commit": "ed28304c2276394dc1ee489d4896be6d6271ab2d",
      "fileid": "https://r2.ropensci.org/614caa3f26ee332eb803eb984cde70d322d42887388deec14a810426ccb50972",
      "status": "failure",
      "check": "ERROR",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/39103731302"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.10.0",
      "date": "2026-10-18T06:27:01.000Z",
      "commit": "ed28304c2276394dc1ee489d4896be6d6271ab2d",
      "fileid": "https://r2.ropensci.org/ed6e0e9e0490521c646c35db52bc6c5dffed4075514cf21430db5b54ae9ecd81",
      "status": "success",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/39103731302"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.10.0",
      "date": "2026-10-18T06:25:47.000Z",
      "commit": "ed28304c2276394dc1ee489d4896be6d6271ab2d",
      "fileid": "https://r2.ropensci.org/9f20edca8faa1e28e00dba687299c9dcc80267abbb64cb584252ed7f654c5067",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/39103731302"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.10.0",
      "date": "2026-10-18T06:25:53.000Z",
      "commit": "ed28304c2276394dc1ee489d4896be6d6271ab2d",
      "fileid": "https://r2.ropensci.org/1aebb938682cff966d7029114f48fdcffa77fa56cf72bb755d0407f7c8cf4fa3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/39103731302"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.10.0",
      "date": "2026-10-18T06:25:58.000Z",
      "commit": "ed28304c2276394dc1ee489d4896be6d6271ab2d",
      "fileid": "https://r2.ropensci.org/11b93c95ca215eb60feb171dc948e0f930e981389bba9801499b73b5f41e6a1c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/39103731302"
    }
  ]
}