{
  "_id": "6a116f4aacfb0bcc41cf5b05",
  "Package": "powergrid",
  "Title": "Power Analysis Across a Grid of Assumptions",
  "Version": "0.5.2",
  "Authors@R": "c(\nperson(given = \"Gilles\",\nfamily = \"Dutilh\", email = \"info@gillesdutilh.com\", role = c(\"aut\", \"cre\"),\ncomment = c(ORCID = \"0000-0002-6719-2508\")),\nperson(given = \"Richard Charles\",\nfamily = \"Allen\", email = \"richardcharles.allen@usb.ch\", role = c(\"aut\"),\ncomment = c(ORCID = \"0000-0001-6012-7888\"))\n)",
  "Description": "Evaluate a function across a grid of parameters. The\nfunction may be evaluated once, or many times for simulation.\nParallel computing is facilitated. Utilities aim at performing\nanalyses of power and sample size, allowing for easy search of\nminimum n (or min/max of any other parameter) to achieve a\ndesired minimal level of power (or maximum of any other\nobjective). Plotting functions are included that present the\ndependency of n and power in relation to further assumptions.",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "URL": "https://github.com/SwissClinicalTrialOrganisation/powergrid",
  "BugReports": "https://github.com/SwissClinicalTrialOrganisation/powergrid/issues",
  "Repository": "https://ctu-bern.r-universe.dev",
  "Date/Publication": "2026-04-23 12:15:50 UTC",
  "RemoteUrl": "https://github.com/SwissClinicalTrialOrganisation/powergrid",
  "RemoteRef": "HEAD",
  "RemoteSha": "4cd66e6a3317ec62abb68f57dc7ab59d202cc9e9",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-23 09:08:47 UTC",
    "User": "root"
  },
  "Author": "Gilles Dutilh [aut, cre] (ORCID:\n<https://orcid.org/0000-0002-6719-2508>),\nRichard Charles Allen [aut] (ORCID:\n<https://orcid.org/0000-0001-6012-7888>)",
  "Maintainer": "Gilles Dutilh <info@gillesdutilh.com>",
  "MD5sum": "e1fa83a448bf7e45040bc29bf7e5a607",
  "_user": "ctu-bern",
  "_type": "src",
  "_file": "powergrid_0.5.2.tar.gz",
  "_fileid": "8c05c53dbe1023b4a5c6f07fdad9ff3c27d21ae68d00979b6f40d62af4bd6e88",
  "_filesize": 964399,
  "_sha256": "8c05c53dbe1023b4a5c6f07fdad9ff3c27d21ae68d00979b6f40d62af4bd6e88",
  "_created": "2026-05-23T09:08:47.000Z",
  "_published": "2026-05-23T09:11:38.766Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77511436034,
      "time": 135,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7175863055"
    },
    {
      "job": 77511436041,
      "time": 132,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7175862620"
    },
    {
      "job": 77511436052,
      "time": 81,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7175858564"
    },
    {
      "job": 77511436036,
      "time": 92,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7175859369"
    },
    {
      "job": 77511325480,
      "time": 136,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7175851715"
    },
    {
      "job": 77511436033,
      "time": 98,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7175859926"
    },
    {
      "job": 77511436038,
      "time": 100,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "NOTE",
      "artifact": "7175860158"
    },
    {
      "job": 77511436054,
      "time": 116,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "NOTE",
      "artifact": "7175861402"
    },
    {
      "job": 77511436049,
      "time": 102,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "NOTE",
      "artifact": "7175860267"
    }
  ],
  "_buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26328852850",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/SwissClinicalTrialOrganisation/powergrid",
  "_commit": {
    "id": "4cd66e6a3317ec62abb68f57dc7ab59d202cc9e9",
    "author": "gillesdutilh <gilles.dutilh@gmail.com>",
    "committer": "gillesdutilh <gilles.dutilh@gmail.com>",
    "message": "typo causing broken link in AddExample docs\n",
    "time": 1776946550
  },
  "_maintainer": {
    "name": "Gilles Dutilh",
    "email": "info@gillesdutilh.com",
    "orcid": "0000-0002-6719-2508"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "methods",
      "role": "Imports"
    },
    {
      "package": "future.apply",
      "version": ">= 1.11.2",
      "role": "Suggests"
    },
    {
      "package": "future",
      "version": ">= 1.33.2",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "progressr",
      "role": "Suggests"
    }
  ],
  "_owner": "swissclinicaltrialorganisation",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-21",
      "n": 2
    },
    {
      "week": "2025-24",
      "n": 1
    },
    {
      "week": "2025-25",
      "n": 1
    },
    {
      "week": "2025-26",
      "n": 2
    },
    {
      "week": "2025-28",
      "n": 12
    },
    {
      "week": "2025-29",
      "n": 1
    },
    {
      "week": "2025-32",
      "n": 1
    },
    {
      "week": "2025-35",
      "n": 5
    },
    {
      "week": "2025-36",
      "n": 50
    },
    {
      "week": "2025-37",
      "n": 33
    },
    {
      "week": "2025-38",
      "n": 5
    },
    {
      "week": "2025-39",
      "n": 5
    },
    {
      "week": "2025-40",
      "n": 9
    },
    {
      "week": "2025-41",
      "n": 2
    },
    {
      "week": "2026-06",
      "n": 1
    },
    {
      "week": "2026-15",
      "n": 1
    },
    {
      "week": "2026-17",
      "n": 2
    }
  ],
  "_tags": [
    {
      "name": "v0.2.0",
      "date": "2025-09-10"
    },
    {
      "name": "v0.3.0",
      "date": "2025-09-11"
    },
    {
      "name": "v0.4.0",
      "date": "2025-09-16"
    },
    {
      "name": "v0.5.1",
      "date": "2025-09-30"
    }
  ],
  "_stars": 1,
  "_contributors": [
    {
      "user": "gillesdutilh",
      "count": 355,
      "uuid": 45421065
    },
    {
      "user": "allenr-ch",
      "count": 71,
      "uuid": 208921946
    },
    {
      "user": "aghaynes",
      "count": 9,
      "uuid": 6594028
    }
  ],
  "_userbio": {
    "uuid": 45794307,
    "type": "organization",
    "name": "CTU Bern",
    "description": "CTU Bern is the Clinical Trials Unit of the Faculty of Medicine and the Department of Clinical Research of the University of Bern"
  },
  "_downloads": {
    "count": 149,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/powergrid"
  },
  "_devurl": "https://github.com/swissclinicaltrialorganisation/powergrid",
  "_searchresults": 9,
  "_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/powergrid.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/swissclinicaltrialorganisation/powergrid",
  "_realowner": "swissclinicaltrialorganisation",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.5.0",
      "date": "2025-10-03"
    }
  ],
  "_exports": [
    "AddExample",
    "ArraySlicer",
    "Example",
    "FindTarget",
    "GridPlot",
    "PowerDF",
    "PowerGrid",
    "PowerPlot",
    "Refine",
    "SummarizeIterations"
  ],
  "_help": [
    {
      "page": "sub-.power_array",
      "title": "indexing with [ ] for class 'power_array' [ ]: R:%20",
      "topics": [
        "[.power_array"
      ]
    },
    {
      "page": "AddExample",
      "title": "Add an example to an existing PowerPlot or GridPlot",
      "topics": [
        "AddExample"
      ]
    },
    {
      "page": "ArraySlicer",
      "title": "Cut slice from array (typically of class 'power_array')",
      "topics": [
        "ArraySlicer"
      ]
    },
    {
      "page": "CheckArrayDim",
      "title": "Check the dimensions of a power array",
      "topics": [
        "CheckArrayDim"
      ]
    },
    {
      "page": "EnsureSingleFunOut",
      "title": "Ensure a power_array has only a single fun_out value",
      "topics": [
        "EnsureSingleFunOut"
      ]
    },
    {
      "page": "EnsureSummarized",
      "title": "Ensure a power_array is summarized",
      "topics": [
        "EnsureSummarized"
      ]
    },
    {
      "page": "Example",
      "title": "Find combination of parameters required for achieving a desired power (or other objective).",
      "topics": [
        "Example"
      ]
    },
    {
      "page": "FindTarget",
      "title": "Find requirements for target power (or other objective)",
      "topics": [
        "FindTarget"
      ]
    },
    {
      "page": "GridPlot",
      "title": "Plot requirements for achieving a target power as a function of assumptions about two parameters",
      "topics": [
        "GridPlot"
      ]
    },
    {
      "page": "PowerDF",
      "title": "Transform power_array into power_df",
      "topics": [
        "PowerDF"
      ]
    },
    {
      "page": "PowerGrid",
      "title": "Evaluate function (iteratively) at a grid of input arguments",
      "topics": [
        "PowerGrid"
      ]
    },
    {
      "page": "PowerPlot",
      "title": "Plot the relation between assumed parameters and requirements for achieving a target power (or other objective)",
      "topics": [
        "PowerPlot"
      ]
    },
    {
      "page": "print.power_array",
      "title": "print",
      "topics": [
        "print.power_array"
      ]
    },
    {
      "page": "print.power_example",
      "title": "Print example",
      "topics": [
        "print.power_example"
      ]
    },
    {
      "page": "Refine",
      "title": "Refine or extend the result of PowerGrid",
      "topics": [
        "Refine"
      ]
    },
    {
      "page": "SummarizeIterations",
      "title": "Summary of object that has individual iterations saved.",
      "topics": [
        "SummarizeIterations"
      ]
    },
    {
      "page": "summary.power_array",
      "title": "Summary of power_grid object.",
      "topics": [
        "summary.power_array"
      ]
    },
    {
      "page": "summary.power_example",
      "title": "Print contents of an example",
      "topics": [
        "summary.power_example"
      ]
    }
  ],
  "_readme": "https://github.com/SwissClinicalTrialOrganisation/powergrid/raw/HEAD/README.md",
  "_rundeps": [],
  "_vignettes": [
    {
      "source": "powergrid.Rmd",
      "filename": "powergrid.html",
      "title": "powergrid",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Functions covered",
        "Outline",
        "Technical example",
        "Now, forget about FindTarget!",
        "Four use cases",
        "Power and sample size for a t-test",
        "Calculate and inspect",
        "Focus on an example situation",
        "Draw a figure with example",
        "Why target, not power?",
        "More elaborate exploration of power",
        "GridPlot",
        "Power evaluation using simulation and resampling",
        "Target a maximum CI95-width",
        "Find the upper bound"
      ],
      "created": "2025-03-27 18:31:56",
      "modified": "2025-10-01 10:24:58",
      "commits": 9
    }
  ],
  "_score": 5.230448921378274,
  "_indexed": false,
  "_nocasepkg": "powergrid",
  "_universes": [
    "ctu-bern"
  ],
  "_indexurl": "https://swissclinicaltrialorganisation.r-universe.dev/powergrid",
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.5.2",
      "date": "2026-05-23T09:10:49.000Z",
      "distro": "noble",
      "commit": "4cd66e6a3317ec62abb68f57dc7ab59d202cc9e9",
      "fileid": "37ecb0e09e92f81bd1c3c0e4d8e05f629864e928ef64d6a86f1931a02e6e9d15",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26328852850"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.5.2",
      "date": "2026-05-23T09:10:52.000Z",
      "distro": "noble",
      "commit": "4cd66e6a3317ec62abb68f57dc7ab59d202cc9e9",
      "fileid": "996feede396cf13dbdbc82d32873dd0c5d0dad784810098d1c650f5f29a84625",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26328852850"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.5.2",
      "date": "2026-05-23T09:10:11.000Z",
      "commit": "4cd66e6a3317ec62abb68f57dc7ab59d202cc9e9",
      "fileid": "8495c186d8a40ee5de8527c0a6d1c421931a569555336d79b8bc4ae67dc49285",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26328852850"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.5.2",
      "date": "2026-05-23T09:10:16.000Z",
      "commit": "4cd66e6a3317ec62abb68f57dc7ab59d202cc9e9",
      "fileid": "d816c1bb88359b3c56e4247870173aaab11a7b3c428fdbc1acc02a3d352b9228",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26328852850"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.5.2",
      "date": "2026-05-23T09:10:43.000Z",
      "commit": "4cd66e6a3317ec62abb68f57dc7ab59d202cc9e9",
      "fileid": "ea3a233d3e2046f0970d158a5efd898a2c639b63d12470ea2a485176f87dd237",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26328852850"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.5.2",
      "date": "2026-05-23T09:10:07.000Z",
      "commit": "4cd66e6a3317ec62abb68f57dc7ab59d202cc9e9",
      "fileid": "5a2c48526ec1a0bf648920524d1bcc4aa6ba499ce33f357568c2d9a7f0b41dc9",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26328852850"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.5.2",
      "date": "2026-05-23T09:10:28.000Z",
      "commit": "4cd66e6a3317ec62abb68f57dc7ab59d202cc9e9",
      "fileid": "145aa427d503a46bee02c5772f7d2cdc74555895a6970735b2fac280b530e25c",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26328852850"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.5.2",
      "date": "2026-05-23T09:10:08.000Z",
      "commit": "4cd66e6a3317ec62abb68f57dc7ab59d202cc9e9",
      "fileid": "a59c947f5588823c5c788138ecf1434a008627e22f4f0537238a758de8ded583",
      "status": "success",
      "check": "NOTE",
      "buildurl": "https://github.com/r-universe/ctu-bern/actions/runs/26328852850"
    }
  ]
}