{
  "_id": "6a2bb63657839859431989d5",
  "Package": "medsim",
  "Type": "Package",
  "Title": "Simulation Infrastructure for Mediation Analysis",
  "Version": "0.2.1.9000",
  "Authors@R": "person(\"Davood\", \"Tofighi\",\nemail = \"dtofighi@gmail.com\",\nrole = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0001-8523-7776\"))",
  "Maintainer": "Davood Tofighi <dtofighi@gmail.com>",
  "Description": "Provides standardized infrastructure for conducting Monte\nCarlo simulation studies in mediation analysis. Features\ninclude environment-aware execution (local vs HPC cluster),\nparallel processing with progress reporting, ground truth\ncaching, automated result analysis, and publication-ready\nvisualization. Designed to work seamlessly with the\nmediationverse ecosystem: 'medfit', 'probmed', 'RMediation',\nand 'medrobust'.",
  "License": "GPL (>= 3)",
  "URL": "https://github.com/Data-Wise/medsim,\nhttps://data-wise.github.io/medsim/",
  "BugReports": "https://github.com/Data-Wise/medsim/issues",
  "Remotes": [
    "Data-Wise/medfit"
  ],
  "Config/Needs/website": "pkgdown, quarto",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "quarto",
  "Config/testthat/edition": "3",
  "Config/roxygen2/version": "8.0.0",
  "RoxygenNote": "7.3.3",
  "Repository": "https://data-wise.r-universe.dev",
  "Date/Publication": "2026-06-12 00:22:56 UTC",
  "RemoteUrl": "https://github.com/Data-Wise/medsim",
  "RemoteRef": "dev",
  "RemoteSha": "fe5e50ea79ddc6c49245e7f039ca72474697c112",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-06-12 07:25:42 UTC",
    "User": "root"
  },
  "Author": "Davood Tofighi [aut, cre] (ORCID:\n<https://orcid.org/0000-0001-8523-7776>)",
  "MD5sum": "b22a47128496443913a271075ea483f6",
  "_user": "data-wise",
  "_type": "src",
  "_file": "medsim_0.2.1.9000.tar.gz",
  "_fileid": "54b9cdfc78fb380f4f208de485b3b4c2b59d7369aec0ba19c246172e65257421",
  "_filesize": 328257,
  "_sha256": "54b9cdfc78fb380f4f208de485b3b4c2b59d7369aec0ba19c246172e65257421",
  "_created": "2026-06-12T07:25:42.000Z",
  "_published": "2026-06-12T07:33:09.968Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 80979744100,
      "time": 310,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7585644321"
    },
    {
      "job": 80979744121,
      "time": 162,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7585600421"
    },
    {
      "job": 80979744132,
      "time": 151,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7585667285"
    },
    {
      "job": 80979744122,
      "time": 168,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7585672465"
    },
    {
      "job": 80979259613,
      "time": 202,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7585554108"
    },
    {
      "job": 80979744102,
      "time": 123,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7585588990"
    },
    {
      "job": 80979744146,
      "time": 165,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7585601527"
    },
    {
      "job": 80979744126,
      "time": 147,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7585595835"
    },
    {
      "job": 80979744139,
      "time": 234,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7585621776"
    }
  ],
  "_buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401123919",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/Data-Wise/medsim",
  "_commit": {
    "id": "fe5e50ea79ddc6c49245e7f039ca72474697c112",
    "author": "Test User <test@example.com>",
    "committer": "Test User <test@example.com>",
    "message": "chore: bump to 0.2.1.9000 (dev version after v0.2.1 release)\n\nCo-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>\n",
    "time": 1781223776
  },
  "_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": "parallel",
      "role": "Imports"
    },
    {
      "package": "pbapply",
      "role": "Imports"
    },
    {
      "package": "ggplot2",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "medfit",
      "version": ">= 0.1.0",
      "role": "Suggests"
    },
    {
      "package": "RMediation",
      "role": "Suggests"
    },
    {
      "package": "mice",
      "role": "Suggests"
    },
    {
      "package": "mitml",
      "role": "Suggests"
    },
    {
      "package": "mvtnorm",
      "role": "Suggests"
    },
    {
      "package": "MASS",
      "role": "Suggests"
    },
    {
      "package": "tictoc",
      "role": "Suggests"
    },
    {
      "package": "here",
      "role": "Suggests"
    },
    {
      "package": "renv",
      "role": "Suggests"
    },
    {
      "package": "pak",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "quarto",
      "role": "Suggests"
    },
    {
      "package": "covr",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    },
    {
      "package": "gridExtra",
      "role": "Suggests"
    },
    {
      "package": "patchwork",
      "role": "Suggests"
    },
    {
      "package": "RColorBrewer",
      "role": "Suggests"
    }
  ],
  "_owner": "data-wise",
  "_selfowned": true,
  "_usedby": 1,
  "_updates": [
    {
      "week": "2025-49",
      "n": 29
    },
    {
      "week": "2026-20",
      "n": 4
    },
    {
      "week": "2026-24",
      "n": 3
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-05-11"
    },
    {
      "name": "v0.1.1",
      "date": "2026-05-11"
    },
    {
      "name": "v0.2.0",
      "date": "2026-06-11"
    },
    {
      "name": "v0.2.1",
      "date": "2026-06-12"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "data-wise",
      "count": 54,
      "uuid": 1749560
    }
  ],
  "_userbio": {
    "uuid": 1749560,
    "type": "user",
    "name": "Davood Tofighi",
    "description": "Data science, R, Python, Statistics, biostatistics, Psychology, and Engineering!"
  },
  "_devurl": "https://github.com/data-wise/medsim",
  "_searchresults": 18,
  "_quarto": true,
  "_topics": [
    "quarto"
  ],
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/medsim.html",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_cranurl": false,
  "_exports": [
    "medsim_amputate",
    "medsim_analyze",
    "medsim_analyze_coverage",
    "medsim_analyze_power",
    "medsim_cache_clear",
    "medsim_cache_exists",
    "medsim_cache_info",
    "medsim_cache_init",
    "medsim_cache_list",
    "medsim_cache_load",
    "medsim_cache_save",
    "medsim_check_results",
    "medsim_compare_configs",
    "medsim_compare_methods",
    "medsim_config",
    "medsim_detect_cores",
    "medsim_detect_environment",
    "medsim_estimate_speedup",
    "medsim_figures",
    "medsim_get_optimal_cores",
    "medsim_method_ipw",
    "medsim_method_mbco_mi",
    "medsim_method_mc_ci",
    "medsim_plot_combined_panel",
    "medsim_plot_coverage",
    "medsim_plot_error_boxplot",
    "medsim_plot_timing",
    "medsim_rnonnormal",
    "medsim_run",
    "medsim_run_parallel",
    "medsim_scenario",
    "medsim_scenario_missing",
    "medsim_scenario_missing_grid",
    "medsim_scenarios_mediation",
    "medsim_summarize_branch_switch",
    "medsim_table_accuracy",
    "medsim_table_comparison",
    "medsim_table_coverage",
    "medsim_table_power",
    "medsim_table_timing",
    "medsim_tables",
    "medsim_tables_workflow",
    "medsim_validate_scenario",
    "medsim_workflow",
    "medsim_write_table"
  ],
  "_help": [
    {
      "page": "medsim_amputate",
      "title": "Insert missing values under MCAR / MAR / MNAR",
      "topics": [
        "medsim_amputate"
      ]
    },
    {
      "page": "medsim_analyze",
      "title": "Analyze Simulation Results",
      "topics": [
        "medsim_analyze"
      ]
    },
    {
      "page": "medsim_analyze_coverage",
      "title": "Analyze Coverage Rates",
      "topics": [
        "medsim_analyze_coverage"
      ]
    },
    {
      "page": "medsim_analyze_power",
      "title": "Analyze Statistical Power",
      "topics": [
        "medsim_analyze_power"
      ]
    },
    {
      "page": "medsim_cache_clear",
      "title": "Clear Cache",
      "topics": [
        "medsim_cache_clear"
      ]
    },
    {
      "page": "medsim_cache_exists",
      "title": "Check if Cache Exists",
      "topics": [
        "medsim_cache_exists"
      ]
    },
    {
      "page": "medsim_cache_info",
      "title": "Get Cache Info",
      "topics": [
        "medsim_cache_info"
      ]
    },
    {
      "page": "medsim_cache_init",
      "title": "Initialize Cache Directory",
      "topics": [
        "medsim_cache_init"
      ]
    },
    {
      "page": "medsim_cache_list",
      "title": "List Cache Files",
      "topics": [
        "medsim_cache_list"
      ]
    },
    {
      "page": "medsim_cache_load",
      "title": "Load Object from Cache",
      "topics": [
        "medsim_cache_load"
      ]
    },
    {
      "page": "medsim_cache_save",
      "title": "Save Object to Cache",
      "topics": [
        "medsim_cache_save"
      ]
    },
    {
      "page": "medsim_check_results",
      "title": "Check Results for Errors",
      "topics": [
        "medsim_check_results"
      ]
    },
    {
      "page": "medsim_compare_configs",
      "title": "Compare Multiple Configurations",
      "topics": [
        "medsim_compare_configs"
      ]
    },
    {
      "page": "medsim_compare_methods",
      "title": "Compare Multiple Methods",
      "topics": [
        "medsim_compare_methods"
      ]
    },
    {
      "page": "medsim_config",
      "title": "Create Simulation Configuration",
      "topics": [
        "medsim_config"
      ]
    },
    {
      "page": "medsim_detect_cores",
      "title": "Detect Number of Available Cores",
      "topics": [
        "medsim_detect_cores"
      ]
    },
    {
      "page": "medsim_detect_environment",
      "title": "Detect Computing Environment",
      "topics": [
        "medsim_detect_environment"
      ]
    },
    {
      "page": "medsim_estimate_speedup",
      "title": "Estimate Parallel Speedup",
      "topics": [
        "medsim_estimate_speedup"
      ]
    },
    {
      "page": "medsim_figures",
      "title": "Generate all standard figures from simulation results",
      "topics": [
        "medsim_figures"
      ]
    },
    {
      "page": "medsim_get_optimal_cores",
      "title": "Get Optimal Number of Cores",
      "topics": [
        "medsim_get_optimal_cores"
      ]
    },
    {
      "page": "medsim_method_ipw",
      "title": "Thin IPW estimator adapter (robustness appendix)",
      "topics": [
        "medsim_method_ipw"
      ]
    },
    {
      "page": "medsim_method_mbco_mi",
      "title": "MBCO-MI estimator adapter",
      "topics": [
        "medsim_method_mbco_mi"
      ]
    },
    {
      "page": "medsim_method_mc_ci",
      "title": "Monte-Carlo CI estimator adapter",
      "topics": [
        "medsim_method_mc_ci"
      ]
    },
    {
      "page": "medsim_plot_combined_panel",
      "title": "Create Combined Multi-Panel Figure",
      "topics": [
        "medsim_plot_combined_panel"
      ]
    },
    {
      "page": "medsim_plot_coverage",
      "title": "Plot Coverage Rates",
      "topics": [
        "medsim_plot_coverage"
      ]
    },
    {
      "page": "medsim_plot_error_boxplot",
      "title": "Plot Error Distribution Boxplots",
      "topics": [
        "medsim_plot_error_boxplot"
      ]
    },
    {
      "page": "medsim_plot_timing",
      "title": "Plot Timing Comparison",
      "topics": [
        "medsim_plot_timing"
      ]
    },
    {
      "page": "medsim_rnonnormal",
      "title": "Draw nonnormal values with a target marginal skew/kurtosis",
      "topics": [
        "medsim_rnonnormal"
      ]
    },
    {
      "page": "medsim_run",
      "title": "Run Simulation Study",
      "topics": [
        "medsim_run"
      ]
    },
    {
      "page": "medsim_run_parallel",
      "title": "Run Tasks in Parallel",
      "topics": [
        "medsim_run_parallel"
      ]
    },
    {
      "page": "medsim_scenario",
      "title": "Create Custom Simulation Scenario",
      "topics": [
        "medsim_scenario"
      ]
    },
    {
      "page": "medsim_scenario_missing",
      "title": "Construct a missing-data mediation scenario",
      "topics": [
        "medsim_scenario_missing"
      ]
    },
    {
      "page": "medsim_scenario_missing_grid",
      "title": "Build the full factorial of missing-data scenarios",
      "topics": [
        "medsim_scenario_missing_grid"
      ]
    },
    {
      "page": "medsim_scenarios_mediation",
      "title": "Create Standard Mediation Scenarios",
      "topics": [
        "medsim_scenarios_mediation"
      ]
    },
    {
      "page": "medsim_summarize_branch_switch",
      "title": "Summarize the MBCO branch-switch rate per scenario",
      "topics": [
        "medsim_summarize_branch_switch"
      ]
    },
    {
      "page": "medsim_table_accuracy",
      "title": "Generate Accuracy Table",
      "topics": [
        "medsim_table_accuracy"
      ]
    },
    {
      "page": "medsim_table_comparison",
      "title": "Generate Method Comparison Table",
      "topics": [
        "medsim_table_comparison"
      ]
    },
    {
      "page": "medsim_table_coverage",
      "title": "Generate Coverage Table",
      "topics": [
        "medsim_table_coverage"
      ]
    },
    {
      "page": "medsim_table_power",
      "title": "Generate Power Table",
      "topics": [
        "medsim_table_power"
      ]
    },
    {
      "page": "medsim_table_timing",
      "title": "Generate Timing Comparison Table",
      "topics": [
        "medsim_table_timing"
      ]
    },
    {
      "page": "medsim_tables",
      "title": "Generate all standard LaTeX tables from simulation results",
      "topics": [
        "medsim_tables"
      ]
    },
    {
      "page": "medsim_tables_workflow",
      "title": "Generate All Tables",
      "topics": [
        "medsim_tables_workflow"
      ]
    },
    {
      "page": "medsim_validate_scenario",
      "title": "Validate Scenario",
      "topics": [
        "medsim_validate_scenario"
      ]
    },
    {
      "page": "medsim_workflow",
      "title": "Generate analysis, figures, and tables from simulation results",
      "topics": [
        "medsim_workflow"
      ]
    },
    {
      "page": "medsim_write_table",
      "title": "Write Table to File",
      "topics": [
        "medsim_write_table"
      ]
    },
    {
      "page": "print.medsim_analysis",
      "title": "Print Analysis Results",
      "topics": [
        "print.medsim_analysis"
      ]
    },
    {
      "page": "print.medsim_comparison",
      "title": "Print Method Comparison",
      "topics": [
        "print.medsim_comparison"
      ]
    },
    {
      "page": "print.medsim_config",
      "title": "Print Configuration Summary",
      "topics": [
        "print.medsim_config"
      ]
    },
    {
      "page": "print.medsim_coverage",
      "title": "Print Coverage Results",
      "topics": [
        "print.medsim_coverage"
      ]
    },
    {
      "page": "print.medsim_power",
      "title": "Print Power Results",
      "topics": [
        "print.medsim_power"
      ]
    },
    {
      "page": "print.medsim_results",
      "title": "Print Simulation Results",
      "topics": [
        "print.medsim_results"
      ]
    },
    {
      "page": "print.medsim_scenario",
      "title": "Print Scenario Summary",
      "topics": [
        "print.medsim_scenario"
      ]
    },
    {
      "page": "print.medsim_table",
      "title": "Print medsim_table",
      "topics": [
        "print.medsim_table"
      ]
    },
    {
      "page": "summary.medsim_results",
      "title": "Summarize Simulation Results",
      "topics": [
        "summary.medsim_results"
      ]
    }
  ],
  "_pkglogo": "https://github.com/Data-Wise/medsim/raw/dev/man/figures/logo.png",
  "_readme": "https://github.com/Data-Wise/medsim/raw/dev/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "dplyr",
    "farver",
    "generics",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "magrittr",
    "pbapply",
    "pillar",
    "pkgconfig",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "getting-started.qmd",
      "filename": "getting-started.html",
      "title": "Getting Started with medsim",
      "engine": "quarto::html",
      "headings": [
        "Introduction",
        "Installation",
        "Quick Start",
        "Step 1: Define Your Method",
        "Step 2: Configure the Simulation",
        "Step 3: Select Scenarios",
        "Step 4: Run the Simulation",
        "Step 5: Analyze Results",
        "Execution Modes",
        "Custom Scenarios",
        "HPC Cluster Support",
        "Next Steps"
      ],
      "created": "2025-12-04 05:12:53",
      "modified": "2026-06-11 20:30:29",
      "commits": 4
    }
  ],
  "_score": 3.9084850188786495,
  "_indexed": true,
  "_nocasepkg": "medsim",
  "_universes": [
    "data-wise"
  ],
  "_previous": "0.2.1",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.2.1.9000",
      "date": "2026-06-12T07:30:47.000Z",
      "distro": "noble",
      "commit": "fe5e50ea79ddc6c49245e7f039ca72474697c112",
      "fileid": "87e9772477b87a0c1a967d8a21bd184f8815975130c19c4af9f44019eb5d1f00",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401123919"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.2.1.9000",
      "date": "2026-06-12T07:28:18.000Z",
      "distro": "noble",
      "commit": "fe5e50ea79ddc6c49245e7f039ca72474697c112",
      "fileid": "529ea4546b7025af854b56742499c0524088a59a9e5d0705423f909799b35284",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401123919"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.2.1.9000",
      "date": "2026-06-12T07:32:06.000Z",
      "commit": "fe5e50ea79ddc6c49245e7f039ca72474697c112",
      "fileid": "e90764fa04805e1d528cd5ced6661ed9f551ac5133e666a46924f4544cc297ad",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401123919"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.2.1.9000",
      "date": "2026-06-12T07:32:16.000Z",
      "commit": "fe5e50ea79ddc6c49245e7f039ca72474697c112",
      "fileid": "0f3c13dfe09c876d232016b13a84cc72ce03aa6e23a30fafdcd00b85c34451ff",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401123919"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.2.1.9000",
      "date": "2026-06-12T07:28:11.000Z",
      "commit": "fe5e50ea79ddc6c49245e7f039ca72474697c112",
      "fileid": "71cf64e40c6452f042fc1f62c0535f95a4e1b020c4d842f03e0abe410b1d1ba5",
      "status": "success",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401123919"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.2.1.9000",
      "date": "2026-06-12T07:27:51.000Z",
      "commit": "fe5e50ea79ddc6c49245e7f039ca72474697c112",
      "fileid": "519bb69d3617b69225f0f19e9c993af5ee2cf46525e9b8a162864b07b721b60d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401123919"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.2.1.9000",
      "date": "2026-06-12T07:27:52.000Z",
      "commit": "fe5e50ea79ddc6c49245e7f039ca72474697c112",
      "fileid": "ccf446bc8c01cf7234bb414e630145d37c32d60a5001a20247b245d0d185a0fb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401123919"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.2.1.9000",
      "date": "2026-06-12T07:29:17.000Z",
      "commit": "fe5e50ea79ddc6c49245e7f039ca72474697c112",
      "fileid": "c22654cdd1131ce3b9b01113e20c905a5cc57698af67a9fa0892401701dbd57d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/data-wise/actions/runs/27401123919"
    }
  ]
}