{
  "_id": "6a1f25c3b401979e73421ad5",
  "Package": "RMediation",
  "Type": "Package",
  "Title": "Mediation Analysis Confidence Intervals",
  "Version": "1.4.0",
  "Date": "2025-11-18",
  "Author": "Davood Tofighi [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-8523-7776>)",
  "Maintainer": "Davood Tofighi <dtofighi@gmail.com>",
  "Authors@R": "person(\"Davood\", \"Tofighi\",\nemail = \"dtofighi@gmail.com\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0001-8523-7776\"))",
  "Description": "Computes confidence intervals for nonlinear functions of\nmodel parameters (e.g., product of k coefficients) in\nsingle-level and multilevel structural equation models. Methods\ninclude the distribution of the product, Monte Carlo\nsimulation, and bootstrap methods. It also performs the\nModel-Based Constrained Optimization (MBCO) procedure for\nhypothesis testing of indirect effects. References: Tofighi,\nD., and MacKinnon, D. P. (2011). RMediation: An R package for\nmediation analysis confidence intervals. Behavior Research\nMethods, 43, 692-700. <doi:10.3758/s13428-011-0076-x>; Tofighi,\nD., and Kelley, K. (2020). Improved inference in mediation\nanalysis: Introducing the model-based constrained optimization\nprocedure. Psychological Methods, 25(4), 496-515.\n<doi:10.1037/met0000259>; Tofighi, D. (2020). Bootstrap\nModel-Based Constrained Optimization Tests of Indirect Effects.\nFrontiers in Psychology, 10, 2989.\n<doi:10.3389/fpsyg.2019.02989>.",
  "License": "GPL (>= 3) | file LICENSE",
  "URL": "https://data-wise.github.io/rmediation/,\nhttps://github.com/data-wise/rmediation",
  "BugReports": "https://github.com/data-wise/rmediation/issues",
  "VignetteBuilder": "knitr",
  "Remotes": [
    "data-wise/medfit"
  ],
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE, roclets = c(\"rd\", \"collate\",\n\"namespace\"))",
  "RoxygenNote": "7.3.3",
  "Config/testthat/edition": "3",
  "Config/Needs/website": "pkgdown, quarto",
  "SystemRequirements": "GNU make",
  "Config/pak/sysreqs": "make",
  "Repository": "https://data-wise.r-universe.dev",
  "Date/Publication": "2025-12-17 08:00:21 UTC",
  "RemoteUrl": "https://github.com/data-wise/rmediation",
  "RemoteRef": "HEAD",
  "RemoteSha": "42df74e4f9f89abc7e8a6999ee24d9f864c1d72c",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-16 07:50:47 UTC",
    "User": "root"
  },
  "MD5sum": "66ddf0d839d97f81629e4231071efed5",
  "_user": "data-wise",
  "_type": "src",
  "_file": "RMediation_1.4.0.tar.gz",
  "_fileid": "5281c71ac84681e933fd556c24724929619af5f813fb4c57cff48d3b44261d44",
  "_filesize": 903160,
  "_sha256": "5281c71ac84681e933fd556c24724929619af5f813fb4c57cff48d3b44261d44",
  "_created": "2026-05-16T07:50:47.000Z",
  "_published": "2026-06-02T18:49:39.220Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79143189578,
      "time": 154,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7031745023"
    },
    {
      "job": 79143189728,
      "time": 154,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031744965"
    },
    {
      "job": 79143189739,
      "time": 195,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7031743220"
    },
    {
      "job": 79143189165,
      "time": 160,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031740742"
    },
    {
      "job": 79143188499,
      "time": 200,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031729005"
    },
    {
      "job": 79143188742,
      "time": 1431,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 79143189791,
      "time": 117,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7031741276"
    },
    {
      "job": 79143190316,
      "time": 89,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7031738648"
    },
    {
      "job": 79143189767,
      "time": 97,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031739381"
    }
  ],
  "_buildurl": "https://github.com/r-universe/data-wise/actions/runs/25956532490",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/data-wise/rmediation",
  "_commit": {
    "id": "42df74e4f9f89abc7e8a6999ee24d9f864c1d72c",
    "author": "Davood Tofighi <dtofighi@gmail.com>",
    "committer": "GitHub <noreply@github.com>",
    "message": "docs: document workflow optimization and standardization changes (#3)\n\n",
    "time": 1765958421
  },
  "_maintainer": {
    "name": "Davood Tofighi",
    "email": "dtofighi@gmail.com",
    "login": "data-wise",
    "uuid": 1749560,
    "orcid": "0000-0001-8523-7776"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "checkmate",
      "version": ">= 2.1.0",
      "role": "Imports"
    },
    {
      "package": "graphics",
      "version": ">= 4.1.0",
      "role": "Imports"
    },
    {
      "package": "grDevices",
      "version": ">= 4.1.0",
      "role": "Imports"
    },
    {
      "package": "lavaan",
      "version": ">= 0.5-20",
      "role": "Imports"
    },
    {
      "package": "MASS",
      "version": ">= 7.3",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "S7",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "medfit",
      "role": "Suggests"
    },
    {
      "package": "OpenMx",
      "version": ">= 2.13",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "data-wise",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-46",
      "n": 4
    },
    {
      "week": "2025-47",
      "n": 56
    },
    {
      "week": "2025-49",
      "n": 34
    },
    {
      "week": "2025-51",
      "n": 1
    }
  ],
  "_tags": [],
  "_topics": [
    "causal-inference",
    "confidence-intervals",
    "likelihood-ratio-test",
    "mediation",
    "mediation-analysis"
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "data-wise",
      "count": 197,
      "uuid": 1749560
    }
  ],
  "_userbio": {
    "uuid": 1749560,
    "type": "user",
    "name": "Davood Tofighi",
    "description": "Data science, R, Python, Statistics, biostatistics, Psychology, and Engineering!"
  },
  "_downloads": {
    "count": 620,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/RMediation"
  },
  "_mentions": 11,
  "_devurl": "https://github.com/data-wise/rmediation",
  "_pkgdown": "https://data-wise.github.io/rmediation/",
  "_searchresults": 51,
  "_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/readme.html",
    "extra/readme.md",
    "extra/RMediation.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/data-wise/rmediation",
  "_realowner": "data-wise",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0",
      "date": "2011-02-08"
    },
    {
      "version": "1.1",
      "date": "2011-10-10"
    },
    {
      "version": "1.1.2",
      "date": "2013-09-12"
    },
    {
      "version": "1.1.3",
      "date": "2014-03-07"
    },
    {
      "version": "1.1.4",
      "date": "2016-03-14"
    },
    {
      "version": "1.2.0",
      "date": "2022-07-09"
    },
    {
      "version": "1.2.1",
      "date": "2023-05-03"
    },
    {
      "version": "1.2.2",
      "date": "2023-05-12"
    },
    {
      "version": "1.3.0",
      "date": "2025-11-20"
    }
  ],
  "_exports": [
    "cdf",
    "ci",
    "ci_mediation_data",
    "ci_serial_mediation_data",
    "dist_quantile",
    "mbco",
    "MBCOResult",
    "medci",
    "medci_prototype",
    "pMC",
    "pprodnormal",
    "ProductNormal",
    "ProductNormal2",
    "qMC",
    "qprodnormal",
    "tidy"
  ],
  "_datasets": [
    {
      "name": "memory_exp",
      "title": "Memory Experiment Data Description from MacKinnon et al., 2018",
      "object": "memory_exp",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "study",
        "repetition",
        "recall",
        "imagery",
        "x"
      ],
      "rows": 369,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "cdf",
      "title": "Cumulative Distribution Function",
      "topics": [
        "cdf"
      ]
    },
    {
      "page": "ci",
      "title": "Confidence Interval",
      "topics": [
        "ci"
      ]
    },
    {
      "page": "ci_mediation_data",
      "title": "Confidence Interval for MediationData Objects",
      "topics": [
        "ci_mediation_data",
        "ci_serial_mediation_data"
      ]
    },
    {
      "page": "dist_quantile",
      "title": "Distribution Quantile Function",
      "topics": [
        "dist_quantile"
      ]
    },
    {
      "page": "is_valid_for_computation",
      "title": "Method to check if ProductNormal object is properly specified for computation",
      "topics": [
        "is_valid_for_computation"
      ]
    },
    {
      "page": "mbco",
      "title": "Model-based Constrained Optimization (MBCO) Chi-squared Test",
      "topics": [
        "mbco"
      ]
    },
    {
      "page": "MBCOResult",
      "title": "MBCO Result Class",
      "topics": [
        "MBCOResult"
      ]
    },
    {
      "page": "medci",
      "title": "Confidence Interval for the Mediated Effect",
      "topics": [
        "medci"
      ]
    },
    {
      "page": "memory_exp",
      "title": "Memory Experiment Data Description from MacKinnon et al., 2018",
      "topics": [
        "memory_exp"
      ]
    },
    {
      "page": "pMC",
      "title": "Probability (percentile) for the Monte Carlo Sampling Distribution of a nonlinear function of coefficients estimates",
      "topics": [
        "pMC"
      ]
    },
    {
      "page": "pprodnormal",
      "title": "Percentile for the Distribution of Product of Two Normal Variables",
      "topics": [
        "pprodnormal"
      ]
    },
    {
      "page": "ProductNormal",
      "title": "ProductNormal Class",
      "topics": [
        "ProductNormal"
      ]
    },
    {
      "page": "ProductNormal_from_lavaan",
      "title": "Utility function to create ProductNormal from lavaan parameter estimates",
      "topics": [
        "ProductNormal_from_lavaan"
      ]
    },
    {
      "page": "ProductNormal2",
      "title": "Enhanced ProductNormal constructor with better validation",
      "topics": [
        "ProductNormal2"
      ]
    },
    {
      "page": "qMC",
      "title": "Quantile for the Monte Carlo Sampling Distribution of a nonlinear function of coefficients estimates",
      "topics": [
        "qMC"
      ]
    },
    {
      "page": "qprodnormal",
      "title": "Quantile for the Distribution of Product of Two Normal Variables",
      "topics": [
        "qprodnormal"
      ]
    },
    {
      "page": "tidy",
      "title": "Tidy generic function",
      "topics": [
        "tidy"
      ]
    },
    {
      "page": "tidy_logLik",
      "title": "Creates a data.frame for a log-likelihood object",
      "topics": [
        "tidy.logLik"
      ]
    },
    {
      "page": "utils_validation",
      "title": "Enhanced validation and utility functions for ProductNormal class",
      "topics": [
        "utils_validation"
      ]
    },
    {
      "page": "validate_ProductNormal",
      "title": "Additional validation for ProductNormal objects",
      "topics": [
        "validate_ProductNormal"
      ]
    }
  ],
  "_pkglogo": "https://github.com/data-wise/rmediation/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/data-wise/rmediation/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "checkmate",
    "lavaan",
    "MASS",
    "mnormt",
    "numDeriv",
    "pbivnorm",
    "quadprog",
    "S7"
  ],
  "_vignettes": [
    {
      "source": "methods-comparison.Rmd",
      "filename": "methods-comparison.html",
      "title": "Comparing Confidence Interval Methods in RMediation",
      "author": "RMediation Development Team",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Overview of Methods",
        "Method Comparison",
        "Performance and Accuracy Comparison",
        "When to Use Each Method",
        "Distribution of Product (DOP)",
        "Monte Carlo (MC)",
        "Asymptotic Normal",
        "Working with S7 Classes",
        "Practical Recommendations",
        "Conclusion"
      ],
      "created": "2025-12-04 23:20:33",
      "modified": "2025-12-04 23:20:33",
      "commits": 1
    },
    {
      "source": "getting-started.Rmd",
      "filename": "getting-started.html",
      "title": "Getting Started with RMediation",
      "author": "RMediation Development Team",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Basic Usage",
        "Single Mediator Analysis",
        "Multiple Mediators",
        "Using S7 Classes",
        "Available Methods",
        "Integration with Structural Equation Modeling",
        "Validation and Error Handling",
        "Conclusion"
      ],
      "created": "2025-12-04 23:20:33",
      "modified": "2025-12-04 23:20:33",
      "commits": 1
    }
  ],
  "_score": 6.309630167425899,
  "_indexed": true,
  "_nocasepkg": "rmediation",
  "_universes": [
    "data-wise"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.4.0",
      "date": "2026-05-16T07:53:11.000Z",
      "distro": "noble",
      "commit": "42df74e4f9f89abc7e8a6999ee24d9f864c1d72c",
      "fileid": "7b0ce017165f726c6d95bc72c63b550597c851b3e2e237af828e070fedf38f24",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/25956532490"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.4.0",
      "date": "2026-05-16T07:53:10.000Z",
      "distro": "noble",
      "commit": "42df74e4f9f89abc7e8a6999ee24d9f864c1d72c",
      "fileid": "4b5b0a530e198b37cf111a0529d68bd5da3cb059c565044927353b0bc4fd2c2b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/25956532490"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.4.0",
      "date": "2026-05-16T07:53:03.000Z",
      "commit": "42df74e4f9f89abc7e8a6999ee24d9f864c1d72c",
      "fileid": "dd5c335483741a2670c3fee3a2e6dddf9d5a5c0df9702e82d6ca77f95da93fa2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/25956532490"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.4.0",
      "date": "2026-05-16T07:52:36.000Z",
      "commit": "42df74e4f9f89abc7e8a6999ee24d9f864c1d72c",
      "fileid": "610f0a054ea723e89c4e35bec7b5a9dfaf895ce679e13ea3a8697be3ded4af06",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/25956532490"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.4.0",
      "date": "2026-05-16T07:52:29.000Z",
      "commit": "42df74e4f9f89abc7e8a6999ee24d9f864c1d72c",
      "fileid": "d36ae7c5b2d3e96acdaa3cb8a215ab4b43f5e1d4bac28749de9dbe15ec15f86b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/25956532490"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.4.0",
      "date": "2026-05-16T07:52:08.000Z",
      "commit": "42df74e4f9f89abc7e8a6999ee24d9f864c1d72c",
      "fileid": "0dc5385ba8ebbef98ec7f09cfaa4c9f1d66d1df0399d5d4970191e7925228cb3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/25956532490"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.4.0",
      "date": "2026-05-16T07:52:09.000Z",
      "commit": "42df74e4f9f89abc7e8a6999ee24d9f864c1d72c",
      "fileid": "c77a1c869bd6d9bcef4752adb7b0cfae9cd8589b77640653fc47a2334982392c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/25956532490"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.4.0",
      "date": "2026-05-22T05:42:18.000Z",
      "commit": "42df74e4f9f89abc7e8a6999ee24d9f864c1d72c",
      "fileid": "386a5ecceb7cc2755caca8af1634b062e426917c166fc35426f3a4296f97e7ea",
      "status": "success",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/25956532490"
    }
  ]
}