{
  "_id": "6a1f2061b401979e73420396",
  "Package": "qicharts2",
  "Title": "Quality Improvement Charts",
  "Version": "0.8.1",
  "Authors@R": "person('Jacob', 'Anhoej', email = 'jacob@anhoej.net',\nrole = c('aut', 'cre'))",
  "Description": "Functions for making run charts, Shewhart control charts\nand Pareto charts for continuous quality improvement. Included\ncontrol charts are: I, MR, Xbar, S, T, C, U, U', P, P', and G\ncharts. Non-random variation in the form of minor to moderate\npersistent shifts in data over time is identified by the Anhoej\nrules for unusually long runs and unusually few crossing\n[Anhoej, Olesen (2014) <doi:10.1371/journal.pone.0113825>].\nNon-random variation in the form of larger, possibly transient,\nshifts is identified by Shewhart's 3-sigma rule [Mohammed,\nWorthington, Woodall (2008) <doi:10.1136/qshc.2004.012047>].",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "URL": "https://github.com/anhoej/qicharts2",
  "Repository": "https://anhoej.r-universe.dev",
  "Date/Publication": "2026-01-16 08:54:52 UTC",
  "RemoteUrl": "https://github.com/anhoej/qicharts2",
  "RemoteRef": "HEAD",
  "RemoteSha": "dd68494551011304c6b3141b382b5931e4230dfa",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-16 07:53:57 UTC",
    "User": "root"
  },
  "Author": "Jacob Anhoej [aut, cre]",
  "Maintainer": "Jacob Anhoej <jacob@anhoej.net>",
  "MD5sum": "803893d5a8263691598ae6a14f5db530",
  "_user": "anhoej",
  "_type": "src",
  "_file": "qicharts2_0.8.1.tar.gz",
  "_fileid": "2a0ea65dc6dc28a58764acb45c8e66bd0341c2d7b3e9b6d20179158bf5f9d738",
  "_filesize": 2770869,
  "_sha256": "2a0ea65dc6dc28a58764acb45c8e66bd0341c2d7b3e9b6d20179158bf5f9d738",
  "_created": "2026-05-16T07:53:57.000Z",
  "_published": "2026-06-02T18:26:41.363Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79143020133,
      "time": 142,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7031762304"
    },
    {
      "job": 79143019969,
      "time": 137,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031761779"
    },
    {
      "job": 79143020236,
      "time": 143,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7031760250"
    },
    {
      "job": 79143020180,
      "time": 158,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031760670"
    },
    {
      "job": 79143019377,
      "time": 203,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031748389"
    },
    {
      "job": 79143019380,
      "time": 104,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7366417012"
    },
    {
      "job": 79143020455,
      "time": 104,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7031758620"
    },
    {
      "job": 79143020820,
      "time": 97,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7031757923"
    },
    {
      "job": 79143021198,
      "time": 99,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7031758169"
    }
  ],
  "_buildurl": "https://github.com/r-universe/anhoej/actions/runs/25956595330",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/anhoej/qicharts2",
  "_commit": {
    "id": "dd68494551011304c6b3141b382b5931e4230dfa",
    "author": "Jacob Anhøj <jacob@anhoej.net>",
    "committer": "Jacob Anhøj <jacob@anhoej.net>",
    "message": "Rename plot.bchart() -> plot_bchart().\n",
    "time": 1768553692
  },
  "_maintainer": {
    "name": "Jacob Anhoej",
    "email": "jacob@anhoej.net",
    "login": "anhoej",
    "uuid": 4472772
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 3.5.0",
      "role": "Depends"
    },
    {
      "package": "ggplot2",
      "version": ">= 2.2.0",
      "role": "Imports"
    },
    {
      "package": "scales",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 0.7.0",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "role": "Suggests"
    },
    {
      "package": "tidyr",
      "role": "Suggests"
    }
  ],
  "_owner": "anhoej",
  "_selfowned": true,
  "_usedby": 4,
  "_updates": [
    {
      "week": "2025-20",
      "n": 2
    },
    {
      "week": "2025-24",
      "n": 1
    },
    {
      "week": "2025-25",
      "n": 2
    },
    {
      "week": "2025-36",
      "n": 1
    },
    {
      "week": "2025-37",
      "n": 2
    },
    {
      "week": "2026-03",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 42,
  "_contributors": [
    {
      "user": "anhoej",
      "count": 291,
      "uuid": 4472772
    },
    {
      "user": "rmadillo",
      "count": 3,
      "uuid": 7614301
    },
    {
      "user": "andrjohns",
      "count": 2,
      "uuid": 27717896
    },
    {
      "user": "katrinleinweber",
      "count": 1,
      "uuid": 9948149
    }
  ],
  "_userbio": {
    "uuid": 4472772,
    "type": "user",
    "name": "Jacob Anhøj"
  },
  "_downloads": {
    "count": 1353,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/qicharts2"
  },
  "_devurl": "https://github.com/anhoej/qicharts2",
  "_searchresults": 173,
  "_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/qicharts2.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/anhoej/qicharts2",
  "_realowner": "anhoej",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.1",
      "date": "2017-08-28"
    },
    {
      "version": "0.2.0",
      "date": "2017-11-19"
    },
    {
      "version": "0.2.1",
      "date": "2017-12-08"
    },
    {
      "version": "0.2.3",
      "date": "2017-12-16"
    },
    {
      "version": "0.3.0",
      "date": "2018-02-03"
    },
    {
      "version": "0.4.0",
      "date": "2018-03-03"
    },
    {
      "version": "0.5.1",
      "date": "2018-07-10"
    },
    {
      "version": "0.6.0",
      "date": "2019-03-16"
    },
    {
      "version": "0.6.1",
      "date": "2020-03-15"
    },
    {
      "version": "0.7.1",
      "date": "2020-10-28"
    },
    {
      "version": "0.7.2",
      "date": "2021-07-08"
    },
    {
      "version": "0.7.4",
      "date": "2023-08-21"
    },
    {
      "version": "0.7.5",
      "date": "2024-05-09"
    },
    {
      "version": "0.8.0",
      "date": "2025-05-15"
    },
    {
      "version": "0.8.1",
      "date": "2025-06-23"
    }
  ],
  "_exports": [
    "bchart",
    "paretochart",
    "qic"
  ],
  "_datasets": [
    {
      "name": "cabg",
      "title": "Coronary artery bypass graft operations",
      "object": "cabg",
      "class": [
        "data.frame"
      ],
      "fields": [
        "date",
        "age",
        "gender",
        "los",
        "death",
        "readmission"
      ],
      "rows": 2205,
      "table": true,
      "tojson": true
    },
    {
      "name": "cdi",
      "title": "Clostridium difficile infections",
      "object": "cdi",
      "class": [
        "data.frame"
      ],
      "fields": [
        "month",
        "n",
        "days",
        "period",
        "notes"
      ],
      "rows": 36,
      "table": true,
      "tojson": true
    },
    {
      "name": "complaints",
      "title": "Complaints",
      "object": "complaints",
      "class": [
        "data.frame"
      ],
      "fields": [
        "month",
        "complaints",
        "sales"
      ],
      "rows": 20,
      "table": true,
      "tojson": true
    },
    {
      "name": "gtt",
      "title": "Patient harm identified using the Global Trigger Tool",
      "object": "gtt",
      "class": [
        "data.frame"
      ],
      "fields": [
        "admission_id",
        "admission_dte",
        "discharge_dte",
        "month",
        "days",
        "harms",
        "E",
        "F",
        "G",
        "H",
        "I"
      ],
      "rows": 340,
      "table": true,
      "tojson": true
    },
    {
      "name": "hospital_infections",
      "title": "Hospital acquired infections",
      "object": "hospital_infections",
      "class": [
        "data.frame"
      ],
      "fields": [
        "hospital",
        "infection",
        "month",
        "n",
        "days"
      ],
      "rows": 432,
      "table": true,
      "tojson": true
    },
    {
      "name": "lots",
      "title": "Lots",
      "object": "lots",
      "class": [
        "data.frame"
      ],
      "fields": [
        "lot",
        "value",
        "n"
      ],
      "rows": 20,
      "table": true,
      "tojson": true
    },
    {
      "name": "nhs_accidents",
      "title": "NHS accidents",
      "object": "nhs_accidents",
      "class": [
        "data.frame"
      ],
      "fields": [
        "i",
        "r",
        "n"
      ],
      "rows": 20,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "bchart",
      "title": "Bernoulli CUSUM chart for binary data (EXPERIMENTAL)",
      "topics": [
        "bchart"
      ]
    },
    {
      "page": "cabg",
      "title": "Coronary artery bypass graft operations",
      "topics": [
        "cabg"
      ]
    },
    {
      "page": "cdi",
      "title": "Clostridium difficile infections",
      "topics": [
        "cdi"
      ]
    },
    {
      "page": "complaints",
      "title": "Complaints",
      "topics": [
        "complaints"
      ]
    },
    {
      "page": "gtt",
      "title": "Patient harm identified using the Global Trigger Tool",
      "topics": [
        "gtt"
      ]
    },
    {
      "page": "hospital_infections",
      "title": "Hospital acquired infections",
      "topics": [
        "hospital_infections"
      ]
    },
    {
      "page": "lots",
      "title": "Lots",
      "topics": [
        "lots"
      ]
    },
    {
      "page": "nhs_accidents",
      "title": "NHS accidents",
      "topics": [
        "nhs_accidents"
      ]
    },
    {
      "page": "paretochart",
      "title": "Paretochart",
      "topics": [
        "paretochart"
      ]
    },
    {
      "page": "qic",
      "title": "Statistical process control charts.",
      "topics": [
        "qic"
      ]
    },
    {
      "page": "qicharts2",
      "title": "'qicharts2' package",
      "topics": [
        "qicharts2-package",
        "qicharts2"
      ]
    },
    {
      "page": "summary.qic",
      "title": "Prints summary of a qic object",
      "topics": [
        "summary.qic"
      ]
    }
  ],
  "_readme": "https://github.com/anhoej/qicharts2/raw/HEAD/README.md",
  "_rundeps": [
    "cli",
    "cpp11",
    "farver",
    "ggplot2",
    "glue",
    "gtable",
    "isoband",
    "labeling",
    "lifecycle",
    "R6",
    "RColorBrewer",
    "rlang",
    "S7",
    "scales",
    "vctrs",
    "viridisLite",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "qicharts2.Rmd",
      "filename": "qicharts2.html",
      "title": "Quality Improvement Charts",
      "author": "Jacob Anhøj",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Installation",
        "Your first run and control charts",
        "Understanding variation",
        "Testing for special cause variation",
        "Shewhart's 3-sigma rule",
        "The Western Electric rules",
        "The Anhøj rules",
        "Choosing the right control chart",
        "Case 1: Patient harm",
        "Run chart of adverse events per 1000 patient days",
        "U chart of adverse events per 1000 patient days",
        "Run and P control charts of percent harmed patients",
        "Pareto analysis of adverse event types and severity",
        "Case 2: Clostridium difficile infections",
        "Run charts for number of infections",
        "C chart for number of infections",
        "U chart for infection rate",
        "When should you recompute the limits?",
        "Case 3: Coronary artery bypass graft",
        "I and MR charts for age of individual patients",
        "Xbar and S charts for average and standard deviation of patient age",
        "P charts for proportion of patients who were readmitted or died within 30 after surgery",
        "T and G charts for rare events",
        "Faceting readmission rates by gender",
        "Case 4: Faceting hospital infections by hospital and infection",
        "U chart of the total number of infections per 10,000 risk days",
        "Faceted U chart by type of infection",
        "Two-way faceted U chart by infection and hospital",
        "Funnels plot of infection rates by hospital",
        "Case 5: Prime charts for count data with very large sample sizes",
        "Conclusion",
        "References",
        "Appendix 1: Calculating 3-sigma limits",
        "Appendix 2: Critical values for longest run and number of crossings"
      ],
      "created": "2017-08-01 08:51:04",
      "modified": "2025-05-15 07:25:04",
      "commits": 16
    }
  ],
  "_score": 9.02601694561127,
  "_indexed": true,
  "_nocasepkg": "qicharts2",
  "_universes": [
    "anhoej"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.8.1",
      "date": "2026-05-16T07:56:01.000Z",
      "distro": "noble",
      "commit": "dd68494551011304c6b3141b382b5931e4230dfa",
      "fileid": "dc4212b04afb9d8a3146bde2f26854e5eb8a4934d6cfb88be42d4d111e397840",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/anhoej/actions/runs/25956595330"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.8.1",
      "date": "2026-05-16T07:56:00.000Z",
      "distro": "noble",
      "commit": "dd68494551011304c6b3141b382b5931e4230dfa",
      "fileid": "23573c810c1caf4cd7b051fe60456a1bbed847c7dc83da9bb0b92eb1efd6e8fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/anhoej/actions/runs/25956595330"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.8.1",
      "date": "2026-05-16T07:55:56.000Z",
      "commit": "dd68494551011304c6b3141b382b5931e4230dfa",
      "fileid": "3eef3f4e39848e57e1283e34912341736ced18cdee8a67df082d596f0b329def",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/anhoej/actions/runs/25956595330"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.8.1",
      "date": "2026-05-16T07:55:56.000Z",
      "commit": "dd68494551011304c6b3141b382b5931e4230dfa",
      "fileid": "99c0b25db7bbb07386bf05d2d4042c7f1671321ffa8c162dfa00e9080c06abbd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/anhoej/actions/runs/25956595330"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.8.1",
      "date": "2026-05-16T07:55:18.000Z",
      "commit": "dd68494551011304c6b3141b382b5931e4230dfa",
      "fileid": "eec56f03f42cc3f2b4961f631f39052291fcf9d94bbe389279d23e56b65495a2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/anhoej/actions/runs/25956595330"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.8.1",
      "date": "2026-05-16T07:55:13.000Z",
      "commit": "dd68494551011304c6b3141b382b5931e4230dfa",
      "fileid": "3ec8936635c7f0800bbbf27fa777df36838a0c102bb3c24506e45dffdcdbe094",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/anhoej/actions/runs/25956595330"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.8.1",
      "date": "2026-05-16T07:55:14.000Z",
      "commit": "dd68494551011304c6b3141b382b5931e4230dfa",
      "fileid": "4f9a5a4832f0733f9ba65310583884607a7f4a8ea45ccefb6142ccf04b1d3f45",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/anhoej/actions/runs/25956595330"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.8.1",
      "date": "2026-06-02T18:26:23.000Z",
      "commit": "dd68494551011304c6b3141b382b5931e4230dfa",
      "fileid": "ef65bdf9a278e99496a7b577da61a1ac065b9ed363e77c231a228238cb050474",
      "status": "success",
      "buildurl": "https://github.com/r-universe/anhoej/actions/runs/25956595330"
    }
  ]
}