{
  "_id": "6ae59bd38d250e7ad09f30dc",
  "Package": "medfit",
  "Type": "Package",
  "Title": "Infrastructure for Mediation Model Fitting and Extraction",
  "Version": "0.16.0",
  "Date": "2026-10-30",
  "Authors@R": "person(\"Davood\", \"Tofighi\",\nemail = \"dtofighi@gmail.com\",\nrole = c(\"aut\", \"cre\", \"cph\"),\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 (generalized linear models,\nlinear mixed models for cluster-randomized designs, and a\nmaximum-likelihood structural equation engine; Bayesian methods\nare planned), 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",
  "Config/roxygen2/version": "8.1.0",
  "LazyData": "true",
  "Config/pak/sysreqs": "cmake",
  "Repository": "https://data-wise.r-universe.dev",
  "Date/Publication": "2026-10-31 06:31:28 UTC",
  "RemoteUrl": "https://github.com/Data-Wise/medfit",
  "RemoteRef": "HEAD",
  "RemoteSha": "c37c7ee8b1cd1e47d0d61f3d55b0a5fce335c7cc",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-31 07:21:51 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": "medfit_0.16.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/38abebcbc4bd0cbfe11a443fcb410c6aeac3f1b60d68194d80fda049f86a71b6",
  "_filesize": 1705414,
  "_sha256": "38abebcbc4bd0cbfe11a443fcb410c6aeac3f1b60d68194d80fda049f86a71b6",
  "_expires": "2027-02-08T07:42:09.000Z",
  "_created": "2026-10-31T07:21:51.000Z",
  "_published": "2026-10-31T07:42:11.012Z",
  "_upstream": "https://github.com/Data-Wise/medfit",
  "_status": "success",
  "_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"
  },
  "_jobs": [
    {
      "job": 124476268441,
      "time": 874,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13034519503"
    },
    {
      "job": 124476268491,
      "time": 750,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "13035086582"
    },
    {
      "job": 124476268483,
      "time": 581,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13035196527"
    },
    {
      "job": 124476268439,
      "time": 520,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13034677691"
    },
    {
      "job": 124475662961,
      "time": 181,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "13034034608"
    },
    {
      "job": 124476268428,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13034054817"
    },
    {
      "job": 124476268423,
      "time": 1172,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13034663185"
    },
    {
      "job": 124476268429,
      "time": 849,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13035510521"
    },
    {
      "job": 124476268402,
      "time": 626,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13034548952"
    }
  ],
  "_buildurl": "https://github.com/r-universe/data-wise/actions/runs/41180115553",
  "_commit": {
    "id": "c37c7ee8b1cd1e47d0d61f3d55b0a5fce335c7cc",
    "author": "Davood Tofighi <dtofighi@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "Release medfit 0.16.0 (#374)\n\nReviewed candidate and Windows test portability correction. All 14 exact-head checks passed, including six clean platform/noSuggests checks, both numerical gate shards and Codecov. GitHub-only release; CRAN remains on hold.",
    "time": 1793428288
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "role": "Imports"
    },
    {
      "package": "nloptr",
      "version": ">= 1.0.4",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "lavaan",
      "version": ">= 0.6-0",
      "role": "Suggests"
    },
    {
      "package": "lme4",
      "role": "Suggests"
    },
    {
      "package": "numDeriv",
      "role": "Suggests"
    },
    {
      "package": "OpenMx",
      "role": "Suggests"
    },
    {
      "package": "pbkrtest",
      "role": "Suggests"
    },
    {
      "package": "regmedint",
      "role": "Suggests"
    },
    {
      "package": "sandwich",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "tibble",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    },
    {
      "package": "yaml",
      "role": "Suggests"
    }
  ],
  "_owner": "data-wise",
  "_selfowned": true,
  "_usedby": 3,
  "_updates": [
    {
      "week": "2025-49",
      "n": 44
    },
    {
      "week": "2025-51",
      "n": 34
    },
    {
      "week": "2026-23",
      "n": 7
    },
    {
      "week": "2026-24",
      "n": 3
    },
    {
      "week": "2026-30",
      "n": 5
    },
    {
      "week": "2026-34",
      "n": 1
    },
    {
      "week": "2026-39",
      "n": 1
    },
    {
      "week": "2026-41",
      "n": 2
    },
    {
      "week": "2026-42",
      "n": 4
    },
    {
      "week": "2026-43",
      "n": 5
    },
    {
      "week": "2026-44",
      "n": 4
    }
  ],
  "_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.2.1",
      "date": "2026-06-10"
    },
    {
      "name": "v0.3.1",
      "date": "2026-06-12"
    },
    {
      "name": "v0.3.2",
      "date": "2026-07-24"
    },
    {
      "name": "v0.4.0",
      "date": "2026-08-23"
    },
    {
      "name": "v0.5.0",
      "date": "2026-09-25"
    },
    {
      "name": "v0.6.0",
      "date": "2026-10-09"
    },
    {
      "name": "v0.7.0",
      "date": "2026-10-11"
    },
    {
      "name": "v0.8.0",
      "date": "2026-10-12"
    },
    {
      "name": "v0.10.0",
      "date": "2026-10-14"
    },
    {
      "name": "v0.9.0",
      "date": "2026-10-14"
    },
    {
      "name": "v0.11.0",
      "date": "2026-10-18"
    },
    {
      "name": "v0.11.1",
      "date": "2026-10-21"
    },
    {
      "name": "v0.12.0",
      "date": "2026-10-21"
    },
    {
      "name": "v0.13.0",
      "date": "2026-10-24"
    },
    {
      "name": "v0.14.0",
      "date": "2026-10-25"
    },
    {
      "name": "v0.14.1",
      "date": "2026-10-26"
    },
    {
      "name": "v0.15.0",
      "date": "2026-10-27"
    },
    {
      "name": "v0.16.0",
      "date": "2026-10-31"
    }
  ],
  "_stars": 2,
  "_contributors": [
    {
      "user": "data-wise",
      "count": 739,
      "uuid": 1749560
    },
    {
      "user": "claude",
      "count": 7,
      "uuid": 81847
    }
  ],
  "_userbio": {
    "uuid": 1749560,
    "type": "user",
    "name": "Davood Tofighi",
    "followers": 24,
    "description": "Data science, R, Python, Statistics, biostatistics, Psychology, and Engineering!"
  },
  "_downloads": {
    "count": 216,
    "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": 61,
  "_abi": {
    "exports": [
      {
        "key": "medfit::S7_object",
        "hash": "c2b6b1fe28eccdac"
      },
      {
        "key": "medfit::medfit::BootstrapResult",
        "hash": "506245b63c937125"
      },
      {
        "key": "medfit::medfit::MediationData",
        "hash": "d24f29aa651fe5d2"
      },
      {
        "key": "medfit::medfit::SerialMediationData",
        "hash": "9708e57f63379ff3"
      },
      {
        "key": "medfit::medfit_call_or_NULL",
        "hash": "10d6c75bb8c53a6f"
      },
      {
        "key": "medfit::medfit_data_frame_or_NULL",
        "hash": "ecff3b9ff064aa9b"
      },
      {
        "key": "medfit::medfit_list_or_NULL",
        "hash": "5a056aa08aada62d"
      },
      {
        "key": "medfit::medfit_numeric",
        "hash": "c010a759ea35e488"
      },
      {
        "key": "medfit::medfit_numeric_or_NULL",
        "hash": "f9d752ea4b8c94d4"
      }
    ],
    "imports": []
  },
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/medfit.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md"
  ],
  "_homeurl": "https://github.com/data-wise/medfit",
  "_realowner": "data-wise",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.2.1",
      "date": "2026-06-18"
    },
    {
      "version": "0.3.2",
      "date": "2026-07-23"
    }
  ],
  "_exports": [
    "bootstrap_mediation",
    "BootstrapResult",
    "ClusterMediationData",
    "compare_lr",
    "decompose",
    "extract_mediation",
    "fit_mediation",
    "fit_sem",
    "InteractionMediationData",
    "joint_effects",
    "JointMediationData",
    "mbco_sem",
    "med",
    "MediationData",
    "nde",
    "nie",
    "ParallelMediationData",
    "paths",
    "pm",
    "quick",
    "SEMFit",
    "SerialMediationData",
    "te"
  ],
  "_datasets": [
    {
      "name": "mediation_demo",
      "title": "Simulated Mediation Data for Examples",
      "object": "mediation_demo",
      "class": [
        "data.frame"
      ],
      "fields": [
        "treatment",
        "mediator1",
        "mediator2",
        "mediator3",
        "covariate1",
        "covariate2",
        "outcome",
        "outcome_int"
      ],
      "rows": 400,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "bootstrap_mediation",
      "title": "Perform Bootstrap Inference for Mediation Statistics",
      "topics": [
        "bootstrap_mediation"
      ]
    },
    {
      "page": "BootstrapResult",
      "title": "BootstrapResult S7 Class",
      "topics": [
        "BootstrapResult"
      ]
    },
    {
      "page": "ClusterMediationData",
      "title": "ClusterMediationData: Cluster-Level Treatment Mediation (2-1-1)",
      "topics": [
        "ClusterMediationData"
      ]
    },
    {
      "page": "compare_lr",
      "title": "Compare medfit's Product-Null LR with OpenMx or lavaan",
      "topics": [
        "compare_lr"
      ]
    },
    {
      "page": "decompose",
      "title": "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": "fit_sem",
      "title": "Fit a Structural Equation Model by Maximum Likelihood",
      "topics": [
        "fit_sem"
      ]
    },
    {
      "page": "InteractionMediationData",
      "title": "InteractionMediationData: Mediation with Treatment-Mediator Interaction",
      "topics": [
        "InteractionMediationData"
      ]
    },
    {
      "page": "joint_effects",
      "title": "Joint Effects at a Given Parameter Vector",
      "topics": [
        "joint_effects"
      ]
    },
    {
      "page": "JointMediationData",
      "title": "JointMediationData: Joint Natural Effects of Multiple Mediators",
      "topics": [
        "JointMediationData"
      ]
    },
    {
      "page": "mbco_sem",
      "title": "Minimum-of-k Likelihood-Ratio Test for an Indirect Effect (MBCO)",
      "topics": [
        "mbco_sem"
      ]
    },
    {
      "page": "med",
      "title": "Simple Mediation Analysis",
      "topics": [
        "med"
      ]
    },
    {
      "page": "medfit-syntax",
      "title": "medfit Model Syntax",
      "topics": [
        "medfit-syntax",
        "medfit_syntax"
      ]
    },
    {
      "page": "mediation_demo",
      "title": "Simulated Mediation Data for Examples",
      "topics": [
        "mediation_demo"
      ]
    },
    {
      "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": "quick",
      "title": "Quick Summary of Mediation Results",
      "topics": [
        "quick"
      ]
    },
    {
      "page": "SEMFit",
      "title": "SEMFit S7 Class",
      "topics": [
        "SEMFit"
      ]
    },
    {
      "page": "SEMFit-methods",
      "title": "Methods for SEMFit objects",
      "topics": [
        "SEMFit-methods"
      ]
    },
    {
      "page": "SerialMediationData",
      "title": "SerialMediationData S7 Class",
      "topics": [
        "SerialMediationData"
      ]
    },
    {
      "page": "te",
      "title": "Extract Total Effect (TE)",
      "topics": [
        "te"
      ]
    },
    {
      "page": "tidy_s7_object",
      "title": "Tidy, Glance, and Inference Methods for medfit Objects",
      "topics": [
        "glance_s7_object",
        "tidy_s7_object"
      ]
    }
  ],
  "_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",
    "cli",
    "generics",
    "lifecycle",
    "MASS",
    "nloptr",
    "rlang",
    "S7"
  ],
  "_score": 5.780965029608317,
  "_indexed": true,
  "_nocasepkg": "medfit",
  "_universes": [
    "data-wise"
  ],
  "_previous": "0.15.0",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.16.0",
      "date": "2026-10-31T07:24:12.000Z",
      "distro": "resolute",
      "commit": "c37c7ee8b1cd1e47d0d61f3d55b0a5fce335c7cc",
      "fileid": "https://r2.ropensci.org/c36ad4f2ad254ffa9810803e9605972df38051a431ad791bde53037df4e7447e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/41180115553"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.16.0",
      "date": "2026-10-31T07:24:25.000Z",
      "distro": "resolute",
      "commit": "c37c7ee8b1cd1e47d0d61f3d55b0a5fce335c7cc",
      "fileid": "https://r2.ropensci.org/356b6555ddd88fc5cc73f04537c35c5e538961dad35fc376558bf668760fe76c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/41180115553"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.16.0",
      "date": "2026-10-31T07:29:07.000Z",
      "commit": "c37c7ee8b1cd1e47d0d61f3d55b0a5fce335c7cc",
      "fileid": "https://r2.ropensci.org/76f1d2e84377de822954977646cc4fcce7278307ca7aa9af2ab42b0759a0637c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/41180115553"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.16.0",
      "date": "2026-10-31T07:29:06.000Z",
      "commit": "c37c7ee8b1cd1e47d0d61f3d55b0a5fce335c7cc",
      "fileid": "https://r2.ropensci.org/00bfa80f3339af290924c6c295a7c1f08703266b01c28c3dfacef76703e2ee74",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/41180115553"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.16.0",
      "date": "2026-10-31T07:24:09.000Z",
      "commit": "c37c7ee8b1cd1e47d0d61f3d55b0a5fce335c7cc",
      "fileid": "https://r2.ropensci.org/6c5872888a1307330f5b891d86639ad17cab20c9ad91f292077b76f2049a9d10",
      "status": "success",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/41180115553"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.16.0",
      "date": "2026-10-31T07:23:28.000Z",
      "commit": "c37c7ee8b1cd1e47d0d61f3d55b0a5fce335c7cc",
      "fileid": "https://r2.ropensci.org/08a136d7a52154d7f8cdffc8536999021d141185ea62c4f34b45bc155b8ddf0f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/41180115553"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.16.0",
      "date": "2026-10-31T07:23:45.000Z",
      "commit": "c37c7ee8b1cd1e47d0d61f3d55b0a5fce335c7cc",
      "fileid": "https://r2.ropensci.org/511e7e432ad2e26d606e110c6f58d19849b78bd5fe0f2e03884cf6b9990f0788",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/41180115553"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.16.0",
      "date": "2026-10-31T07:23:09.000Z",
      "commit": "c37c7ee8b1cd1e47d0d61f3d55b0a5fce335c7cc",
      "fileid": "https://r2.ropensci.org/cddf5b139064cd3767ce93656a41f38ade9ca6b9184bc675bf38749472cc442f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/41180115553"
    }
  ]
}