{
  "_id": "6a2bb5ef578398594319883d",
  "Package": "medfit",
  "Type": "Package",
  "Title": "Infrastructure for Mediation Model Fitting and Extraction",
  "Version": "0.3.1",
  "Date": "2026-06-11",
  "Authors@R": "person(\"Davood\", \"Tofighi\",\nemail = \"dtofighi@gmail.com\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0001-8523-7776\"))",
  "Description": "Provides S7-based infrastructure for fitting mediation\nmodels, extracting path coefficients, and performing bootstrap\ninference. Designed as a foundation package for the mediation\nanalysis ecosystem, supporting 'probmed', 'RMediation', and\n'medrobust' packages. Implements unified interfaces for model\nfitting across different engines (currently generalized linear\nmodels, with future support for mixed models and Bayesian\nmethods), standardized extraction of mediation paths from\nvarious model types, and robust bootstrap inference methods.\nMediation methods are described in MacKinnon, Lockwood and\nWilliams (2004) <doi:10.1207/s15327906mbr3901_4>, Preacher and\nHayes (2008) <doi:10.3758/brm.40.3.879>, Tofighi and MacKinnon\n(2011) <doi:10.3758/s13428-011-0076-x>, and VanderWeele (2014)\n<doi:10.1097/EDE.0000000000000121>.",
  "License": "GPL (>= 3)",
  "URL": "https://data-wise.github.io/medfit/,\nhttps://github.com/data-wise/medfit",
  "BugReports": "https://github.com/data-wise/medfit/issues",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE, roclets = c(\"rd\", \"collate\",\n\"namespace\"))",
  "Config/testthat/edition": "3",
  "Config/Needs/website": "knitr, rmarkdown, quarto",
  "RoxygenNote": "7.3.3",
  "Repository": "https://data-wise.r-universe.dev",
  "Date/Publication": "2026-06-12 03:08:07 UTC",
  "RemoteUrl": "https://github.com/Data-Wise/medfit",
  "RemoteRef": "HEAD",
  "RemoteSha": "84cf62fc8aa6d1a5d4dab904b3bf4f44d662c563",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-12 07:25:13 UTC",
    "User": "root"
  },
  "Author": "Davood Tofighi [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-8523-7776>)",
  "Maintainer": "Davood Tofighi <dtofighi@gmail.com>",
  "MD5sum": "5a4e5840030e59da1815ff0c3ea0a415",
  "_user": "data-wise",
  "_type": "src",
  "_file": "medfit_0.3.1.tar.gz",
  "_fileid": "dbeb4d658c16a24e6a858c02bc78da44c9a625c68b3acb2a6bce1afa9ab9b6a9",
  "_filesize": 795000,
  "_sha256": "dbeb4d658c16a24e6a858c02bc78da44c9a625c68b3acb2a6bce1afa9ab9b6a9",
  "_created": "2026-06-12T07:25:13.000Z",
  "_published": "2026-06-12T07:31:59.441Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80979655149,
      "time": 271,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7585621262"
    },
    {
      "job": 80979655162,
      "time": 145,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7585584618"
    },
    {
      "job": 80979655188,
      "time": 131,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7585612603"
    },
    {
      "job": 80979655236,
      "time": 125,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7585649550"
    },
    {
      "job": 80979249250,
      "time": 169,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7585543357"
    },
    {
      "job": 80979655134,
      "time": 98,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7585571246"
    },
    {
      "job": 80979655163,
      "time": 129,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7585580338"
    },
    {
      "job": 80979655156,
      "time": 83,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7585567526"
    },
    {
      "job": 80979655181,
      "time": 97,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7585570893"
    }
  ],
  "_buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401121892",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/Data-Wise/medfit",
  "_commit": {
    "id": "84cf62fc8aa6d1a5d4dab904b3bf4f44d662c563",
    "author": "Davood Tofighi <dtofighi@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Merge pull request #46 from Data-Wise/dev\n\ndocs: activate r-universe badge (medfit 0.3.1 live on universe)",
    "time": 1781233687
  },
  "_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"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "S7",
      "version": ">= 0.1.0",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "checkmate",
      "role": "Imports"
    },
    {
      "package": "generics",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "lavaan",
      "version": ">= 0.6-0",
      "role": "Suggests"
    },
    {
      "package": "sandwich",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    }
  ],
  "_owner": "data-wise",
  "_selfowned": true,
  "_usedby": 2,
  "_updates": [
    {
      "week": "2025-49",
      "n": 44
    },
    {
      "week": "2025-51",
      "n": 34
    },
    {
      "week": "2026-23",
      "n": 7
    },
    {
      "week": "2026-24",
      "n": 3
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2025-12-20"
    },
    {
      "name": "v0.2.0",
      "date": "2026-06-01"
    },
    {
      "name": "v0.3.0",
      "date": "2026-06-06"
    },
    {
      "name": "v0.3.1",
      "date": "2026-06-12"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "data-wise",
      "count": 161,
      "uuid": 1749560
    },
    {
      "user": "claude",
      "count": 7,
      "uuid": 81847
    }
  ],
  "_userbio": {
    "uuid": 1749560,
    "type": "user",
    "name": "Davood Tofighi",
    "description": "Data science, R, Python, Statistics, biostatistics, Psychology, and Engineering!"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/medfit"
  },
  "_devurl": "https://github.com/data-wise/medfit",
  "_pkgdown": "https://data-wise.github.io/medfit/",
  "_searchresults": 24,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/medfit.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "bootstrap_mediation",
    "BootstrapResult",
    "decompose",
    "extract_mediation",
    "fit_mediation",
    "InteractionMediationData",
    "med",
    "MediationData",
    "nde",
    "nie",
    "ParallelMediationData",
    "paths",
    "pm",
    "quick",
    "SerialMediationData",
    "te"
  ],
  "_help": [
    {
      "page": "bootstrap_mediation",
      "title": "Perform Bootstrap Inference for Mediation Statistics",
      "topics": [
        "bootstrap_mediation"
      ]
    },
    {
      "page": "BootstrapResult",
      "title": "BootstrapResult S7 Class",
      "topics": [
        "BootstrapResult"
      ]
    },
    {
      "page": "decompose",
      "title": "Four-Way Decomposition of a Mediation Effect",
      "topics": [
        "decompose"
      ]
    },
    {
      "page": "extract_mediation",
      "title": "Extract Mediation Structure from Fitted Models",
      "topics": [
        "extract_mediation"
      ]
    },
    {
      "page": "fit_mediation",
      "title": "Fit Mediation Models",
      "topics": [
        "fit_mediation"
      ]
    },
    {
      "page": "InteractionMediationData",
      "title": "InteractionMediationData: Mediation with Treatment-Mediator Interaction",
      "topics": [
        "InteractionMediationData"
      ]
    },
    {
      "page": "med",
      "title": "Simple Mediation Analysis",
      "topics": [
        "med"
      ]
    },
    {
      "page": "MediationData",
      "title": "MediationData S7 Class",
      "topics": [
        "MediationData"
      ]
    },
    {
      "page": "nde",
      "title": "Extract Natural Direct Effect (NDE)",
      "topics": [
        "nde"
      ]
    },
    {
      "page": "nie",
      "title": "Extract Natural Indirect Effect (NIE)",
      "topics": [
        "nie"
      ]
    },
    {
      "page": "ParallelMediationData",
      "title": "ParallelMediationData: Parallel (Multiple-Mediator) Mediation Structure",
      "topics": [
        "ParallelMediationData"
      ]
    },
    {
      "page": "paths",
      "title": "Extract All Path Coefficients",
      "topics": [
        "paths"
      ]
    },
    {
      "page": "pm",
      "title": "Extract Proportion Mediated (PM)",
      "topics": [
        "pm"
      ]
    },
    {
      "page": "print.mediation_effect",
      "title": "Print Method for mediation_effect",
      "topics": [
        "print.mediation_effect"
      ]
    },
    {
      "page": "print.summary.BootstrapResult",
      "title": "Print Summary for BootstrapResult",
      "topics": [
        "print.summary.BootstrapResult"
      ]
    },
    {
      "page": "print.summary.MediationData",
      "title": "Print Summary for MediationData",
      "topics": [
        "print.summary.MediationData"
      ]
    },
    {
      "page": "print.summary.SerialMediationData",
      "title": "Print Summary for SerialMediationData",
      "topics": [
        "print.summary.SerialMediationData"
      ]
    },
    {
      "page": "quick",
      "title": "Quick Summary of Mediation Results",
      "topics": [
        "quick"
      ]
    },
    {
      "page": "SerialMediationData",
      "title": "SerialMediationData S7 Class",
      "topics": [
        "SerialMediationData"
      ]
    },
    {
      "page": "te",
      "title": "Extract Total Effect (TE)",
      "topics": [
        "te"
      ]
    }
  ],
  "_pkglogo": "https://github.com/Data-Wise/medfit/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/Data-Wise/medfit/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "checkmate",
    "generics",
    "MASS",
    "S7"
  ],
  "_score": 3.459392487759231,
  "_indexed": true,
  "_nocasepkg": "medfit",
  "_universes": [
    "data-wise"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-06-12T07:29:34.000Z",
      "distro": "noble",
      "commit": "84cf62fc8aa6d1a5d4dab904b3bf4f44d662c563",
      "fileid": "5ffa93118e63bd544cf9e9bd2e3fa31f153601e846b16a0ed4337fc2b159acf0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401121892"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.3.1",
      "date": "2026-06-12T07:27:25.000Z",
      "distro": "noble",
      "commit": "84cf62fc8aa6d1a5d4dab904b3bf4f44d662c563",
      "fileid": "b28d055056f7a71334f409b5aa01370f81fa298e3c9f033045472f4b6b0ab2e3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401121892"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-06-12T07:29:02.000Z",
      "commit": "84cf62fc8aa6d1a5d4dab904b3bf4f44d662c563",
      "fileid": "9407c02d54c50e4e54f54020a702586067c9f0389971b2653d4ed40e787e0a4e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401121892"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.3.1",
      "date": "2026-06-12T07:31:03.000Z",
      "commit": "84cf62fc8aa6d1a5d4dab904b3bf4f44d662c563",
      "fileid": "706a6ad2f4e57b34185b79c7a1542bbc3099fdaadfbf8c1a723f89b431d3f19f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401121892"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.3.1",
      "date": "2026-06-12T07:27:09.000Z",
      "commit": "84cf62fc8aa6d1a5d4dab904b3bf4f44d662c563",
      "fileid": "64277419add9de0e47225ef313f1e46e6d0606fc3763596458e2d441bf3605f9",
      "status": "success",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401121892"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-06-12T07:27:04.000Z",
      "commit": "84cf62fc8aa6d1a5d4dab904b3bf4f44d662c563",
      "fileid": "daf4bc2356c6328f0ab1762036d2c80aedfd37df2daab0fac15cc78f025453a8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401121892"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-06-12T07:26:16.000Z",
      "commit": "84cf62fc8aa6d1a5d4dab904b3bf4f44d662c563",
      "fileid": "5b2b0fa22ef2c6a145082160c9ee403a4ed20c04bc81b23be61323e2f12bd6c7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401121892"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.3.1",
      "date": "2026-06-12T07:26:24.000Z",
      "commit": "84cf62fc8aa6d1a5d4dab904b3bf4f44d662c563",
      "fileid": "372c8f7bf3171e5ab1b99881a209cd0e03a3b92cda702fbda36556ab0bc00705",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401121892"
    }
  ]
}