{
  "_id": "6a1f1184b401979e7341da81",
  "Package": "PHEindicatormethods",
  "Type": "Package",
  "Version": "2.1.1",
  "Title": "Common Public Health Statistics and their Confidence Intervals",
  "Description": "Functions to calculate commonly used public health\nstatistics and their confidence intervals using methods\napproved for use in the production of Public Health England\nindicators such as those presented via Fingertips\n(<https://fingertips.phe.org.uk/>). It provides functions for\nthe generation of proportions, crude rates, means, directly\nstandardised rates, indirectly standardised rates, standardised\nmortality ratios, slope and relative index of inequality and\nlife expectancy. Statistical methods are referenced in the\nfollowing publications. Breslow NE, Day NE (1987)\n<doi:10.1002/sim.4780080614>. Dobson et al (1991)\n<doi:10.1002/sim.4780100317>. Armitage P, Berry G (2002)\n<doi:10.1002/9780470773666>. Wilson EB. (1927)\n<doi:10.1080/01621459.1927.10502953>. Altman DG et al (2000,\nISBN: 978-0-727-91375-3). Chiang CL. (1968, ISBN:\n978-0-882-75200-6). Newell C. (1994, ISBN: 978-0-898-62451-9).\nEayres DP, Williams ES (2004) <doi:10.1136/jech.2003.009654>.\nSilcocks PBS et al (2001) <doi:10.1136/jech.55.1.38>. Low and\nLow (2004) <doi:10.1093/pubmed/fdh175>. Fingertips Public\nHealth Technical Guide:\n<https://fingertips.phe.org.uk/profile/guidance/supporting-information/PH-methods/>.",
  "Authors@R": "c(person(\"Georgina\", \"Anderson\", email = \"georgina.anderson@dhsc.gov.uk\", role = c(\"aut\", \"cre\")),\nperson(\"Sebastian\", \"Fox \", role = c(\"ctb\")),\nperson(\"Matthew\", \"Francis \", role = c(\"ctb\")),\nperson(\"Emma\", \"Clegg \",  role = c(\"ctb\")),\nperson(\"Annabel\", \"Westermann \", role = c(\"ctb\")),\nperson(\"Joshua\", \"Woolner \", role = c(\"ctb\")),\nperson(\"Charlotte\", \"Fellows \", email = \"charlotte.fellows@dhsc.gov.uk\", role = c(\"ctb\")),\nperson(\"Olivia\", \"Box Power\", email = \"Olivia.BoxPower@dhsc.gov.uk\", role = c(\"ctb\")),\nperson(\"Paul\", \"Fryers \", email = \"paul.fryers@dhsc.gov.uk\", role = c(\"rev\")),\nperson(\"Department of Health and Social Care\", role = c(\"cph\"))\n)",
  "BugReports": "https://github.com/dhsc-govuk/PHEindicatormethods/issues",
  "License": "GPL-3",
  "Encoding": "UTF-8",
  "LazyData": "true",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "VignetteBuilder": "knitr",
  "Config/testthat/edition": "3",
  "Config/pak/sysreqs": "libicu-dev",
  "Repository": "https://dhsc-govuk.r-universe.dev",
  "Date/Publication": "2025-11-18 14:57:31 UTC",
  "RemoteUrl": "https://github.com/dhsc-govuk/pheindicatormethods",
  "RemoteRef": "HEAD",
  "RemoteSha": "2317716fe39d026e4502983fa36a09dfeaf3a853",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-05-17 07:57:13 UTC",
    "User": "root"
  },
  "Author": "Georgina Anderson [aut, cre],\nSebastian Fox [ctb],\nMatthew Francis [ctb],\nEmma Clegg [ctb],\nAnnabel Westermann [ctb],\nJoshua Woolner [ctb],\nCharlotte Fellows [ctb],\nOlivia Box Power [ctb],\nPaul Fryers [rev],\nDepartment of Health and Social Care [cph]",
  "Maintainer": "Georgina Anderson <georgina.anderson@dhsc.gov.uk>",
  "MD5sum": "1e1b88f9387fccd51f34769311b22511",
  "_user": "dhsc-govuk",
  "_type": "src",
  "_file": "PHEindicatormethods_2.1.1.tar.gz",
  "_fileid": "2ddd47a26935ab1efc50c9047237c75bf07cf5551b76f2d61a2db9f517eb2e66",
  "_filesize": 1083770,
  "_sha256": "2ddd47a26935ab1efc50c9047237c75bf07cf5551b76f2d61a2db9f517eb2e66",
  "_created": "2026-05-17T07:57:13.000Z",
  "_published": "2026-06-02T17:23:16.317Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 79130924884,
      "time": 168,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7040630991"
    },
    {
      "job": 79130925913,
      "time": 170,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040631108"
    },
    {
      "job": 79130925683,
      "time": 173,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7040628205"
    },
    {
      "job": 79130925409,
      "time": 185,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040628166"
    },
    {
      "job": 79130924790,
      "time": 213,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040612792"
    },
    {
      "job": 79130924328,
      "time": 116,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7364983987"
    },
    {
      "job": 79130925781,
      "time": 152,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7040629483"
    },
    {
      "job": 79130925332,
      "time": 148,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7040629609"
    },
    {
      "job": 79130924934,
      "time": 204,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7040634792"
    }
  ],
  "_buildurl": "https://github.com/r-universe/dhsc-govuk/actions/runs/25985159995",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/dhsc-govuk/pheindicatormethods",
  "_commit": {
    "id": "2317716fe39d026e4502983fa36a09dfeaf3a853",
    "author": "Anderson <georgina.anderson@dhsc.gov.uk>",
    "committer": "Anderson <georgina.anderson@dhsc.gov.uk>",
    "message": "Merge branch 'master' into DEVELOPMENT_MASTER\n",
    "time": 1763477851
  },
  "_maintainer": {
    "name": "Georgina Anderson",
    "email": "georgina.anderson@dhsc.gov.uk",
    "login": "georgieanderson",
    "description": "",
    "uuid": 29062912
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.3.0",
      "role": "Depends"
    },
    {
      "package": "broom",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.1.0",
      "role": "Imports"
    },
    {
      "package": "stats",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "version": ">= 3.2.0",
      "role": "Imports"
    },
    {
      "package": "tidyselect",
      "version": ">= 1.2.0",
      "role": "Imports"
    },
    {
      "package": "tidyr",
      "version": ">= 1.3.0",
      "role": "Imports"
    },
    {
      "package": "lifecycle",
      "role": "Imports"
    },
    {
      "package": "knitr",
      "version": ">= 1.48",
      "role": "Suggests"
    },
    {
      "package": "readxl",
      "version": ">= 1.4.0",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "version": ">= 2.28",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "dhsc-govuk",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2025-47",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 32,
  "_contributors": [
    {
      "user": "georgieanderson",
      "count": 432,
      "uuid": 29062912
    },
    {
      "user": "olivia-box-power",
      "count": 27,
      "uuid": 85562659
    },
    {
      "user": "emmaclegg",
      "count": 20,
      "uuid": 47213546
    },
    {
      "user": "stevespreadborough",
      "count": 6,
      "uuid": 47599727
    },
    {
      "user": "matthew-francis",
      "count": 5,
      "uuid": 54985789
    },
    {
      "user": "hadley",
      "count": 2,
      "uuid": 4196
    },
    {
      "user": "sebastian-fox",
      "count": 2,
      "uuid": 26870222
    },
    {
      "user": "davisvaughan",
      "count": 1,
      "uuid": 19150088
    },
    {
      "user": "stephenashton-dhsc",
      "count": 1,
      "uuid": 66256552
    }
  ],
  "_userbio": {
    "uuid": 174326322,
    "type": "organization",
    "name": "Department of Health and Social Care: Analysis and Data Science",
    "description": "We support ministers in leading the nation’s health and social care to help people live more independent, healthier lives for longer."
  },
  "_downloads": {
    "count": 387,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/PHEindicatormethods"
  },
  "_devurl": "https://github.com/dhsc-govuk/pheindicatormethods",
  "_searchresults": 107,
  "_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/PHEindicatormethods.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/dhsc-govuk/pheindicatormethods",
  "_realowner": "dhsc-govuk",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.8",
      "date": "2018-07-30"
    },
    {
      "version": "1.1.1",
      "date": "2019-04-18"
    },
    {
      "version": "1.1.2",
      "date": "2019-04-23"
    },
    {
      "version": "1.1.3",
      "date": "2019-05-15"
    },
    {
      "version": "1.1.5",
      "date": "2019-09-11"
    },
    {
      "version": "1.2.0",
      "date": "2020-01-13"
    },
    {
      "version": "1.3.0",
      "date": "2020-03-12"
    },
    {
      "version": "1.3.1",
      "date": "2020-04-14"
    },
    {
      "version": "1.3.2",
      "date": "2020-06-25"
    },
    {
      "version": "1.4.1",
      "date": "2022-08-08"
    },
    {
      "version": "1.4.2",
      "date": "2022-12-01"
    },
    {
      "version": "2.0.0",
      "date": "2023-03-06"
    },
    {
      "version": "2.0.1",
      "date": "2023-05-05"
    },
    {
      "version": "2.0.2",
      "date": "2024-01-25"
    },
    {
      "version": "2.1.0",
      "date": "2024-12-12"
    },
    {
      "version": "2.1.1",
      "date": "2025-11-18"
    }
  ],
  "_exports": [
    "assign_funnel_significance",
    "calculate_dsr",
    "calculate_funnel_limits",
    "calculate_funnel_points",
    "calculate_ISRate",
    "calculate_ISRatio",
    "phe_dsr",
    "phe_life_expectancy",
    "phe_mean",
    "phe_proportion",
    "phe_quantile",
    "phe_rate",
    "phe_sii"
  ],
  "_datasets": [
    {
      "name": "DSR_data",
      "title": "SII test datasets - DSR",
      "object": "DSR_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Period",
        "Quintile",
        "total_pop",
        "value",
        "lowercl",
        "uppercl"
      ],
      "rows": 30,
      "table": true,
      "tojson": true
    },
    {
      "name": "esp2013",
      "title": "European Standard Population 2013",
      "object": "esp2013",
      "class": [
        "numeric"
      ],
      "fields": [],
      "table": false,
      "tojson": true
    },
    {
      "name": "LE_data",
      "title": "SII test datasets - Life Expectancy",
      "object": "LE_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Sex",
        "GeoCode",
        "Decile",
        "Pop",
        "Deaths",
        "LifeExp",
        "SE"
      ],
      "rows": 7222,
      "table": true,
      "tojson": true
    },
    {
      "name": "prevalence_data",
      "title": "SII test datasets - Prevalence",
      "object": "prevalence_data",
      "class": [
        "data.frame"
      ],
      "fields": [
        "Period",
        "SchoolYear",
        "AreaCode",
        "Decile",
        "Measured",
        "Count",
        "Rate",
        "LCL",
        "UCL",
        "SE"
      ],
      "rows": 240,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "assign_funnel_significance",
      "title": "Identifies whether each value in a dataset falls outside of 95 and/or 99.8 percent control limits based on the aggregated average value across the whole dataset as an indicator of statistically significant difference.",
      "concept": [
        "PHEindicatormethods package functions"
      ],
      "topics": [
        "assign_funnel_significance"
      ]
    },
    {
      "page": "calculate_dsr",
      "title": "Calculate Directly Standardised Rates using calculate_dsr",
      "concept": [
        "PHEindicatormethods package functions"
      ],
      "topics": [
        "calculate_dsr"
      ]
    },
    {
      "page": "calculate_funnel_limits",
      "title": "Calculate control limits for funnel plots",
      "concept": [
        "PHEindicatormethods package functions"
      ],
      "topics": [
        "calculate_funnel_limits"
      ]
    },
    {
      "page": "calculate_funnel_points",
      "title": "For rate-based funnels: Derive rate and annual population values for charting based. Process removes rates where the rate type is dsr and the number of observed events are below 10.",
      "concept": [
        "PHEindicatormethods package functions"
      ],
      "topics": [
        "calculate_funnel_points"
      ]
    },
    {
      "page": "calculate_ISRate",
      "title": "Calculate Indirectly Standardised Rates using calculate_ISRate",
      "concept": [
        "PHEindicatormethods package functions"
      ],
      "topics": [
        "calculate_ISRate"
      ]
    },
    {
      "page": "calculate_ISRatio",
      "title": "Calculate Indirectly standardised ratios using calculate_ISRatio",
      "concept": [
        "PHEindicatormethods package functions"
      ],
      "topics": [
        "calculate_ISRatio"
      ]
    },
    {
      "page": "DSR_data",
      "title": "SII test datasets - DSR",
      "topics": [
        "DSR_data"
      ]
    },
    {
      "page": "esp2013",
      "title": "European Standard Population 2013",
      "topics": [
        "esp2013"
      ]
    },
    {
      "page": "LE_data",
      "title": "SII test datasets - Life Expectancy",
      "topics": [
        "LE_data"
      ]
    },
    {
      "page": "phe_life_expectancy",
      "title": "Calculate Life Expectancy using phe_life_expectancy",
      "concept": [
        "PHEindicatormethods package functions"
      ],
      "topics": [
        "phe_life_expectancy"
      ]
    },
    {
      "page": "phe_mean",
      "title": "Calculate Means using phe_mean",
      "concept": [
        "PHEindicatormethods package functions"
      ],
      "topics": [
        "phe_mean"
      ]
    },
    {
      "page": "phe_proportion",
      "title": "Calculate Proportions using phe_proportion",
      "concept": [
        "PHEindicatormethods package functions"
      ],
      "topics": [
        "phe_proportion"
      ]
    },
    {
      "page": "phe_quantile",
      "title": "Assign Quantiles using phe_quantile",
      "concept": [
        "PHEindicatormethods package functions"
      ],
      "topics": [
        "phe_quantile"
      ]
    },
    {
      "page": "phe_rate",
      "title": "Calculate Rates using phe_rate",
      "concept": [
        "PHEindicatormethods package functions"
      ],
      "topics": [
        "phe_rate"
      ]
    },
    {
      "page": "phe_sii",
      "title": "Calculate Slope Index of Inequality using phe_sii",
      "concept": [
        "PHEindicatormethods package functions"
      ],
      "topics": [
        "phe_sii"
      ]
    },
    {
      "page": "prevalence_data",
      "title": "SII test datasets - Prevalence",
      "topics": [
        "prevalence_data"
      ]
    }
  ],
  "_readme": "https://github.com/dhsc-govuk/pheindicatormethods/raw/HEAD/README.md",
  "_rundeps": [
    "backports",
    "broom",
    "cli",
    "cpp11",
    "dplyr",
    "generics",
    "glue",
    "lifecycle",
    "magrittr",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rlang",
    "stringi",
    "stringr",
    "tibble",
    "tidyr",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "Introduction_to_PHEindicatormethods.Rmd",
      "filename": "Introduction_to_PHEindicatormethods.html",
      "title": "Introduction to PHEindicatormethods",
      "author": "Georgina Anderson",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "The following packages must be installed and loaded if not already available",
        "Package functions",
        "Non-aggregate functions",
        "Create some test data for the non-aggregate functions",
        "Execute phe_proportion and phe_rate",
        "Aggregate functions",
        "Execute phe_mean",
        "Standardised Aggregate functions",
        "Create some test data for the standardised aggregate functions",
        "Execute calculate_dsr",
        "Execute calculate_ISRatio and calculate_ISRate"
      ],
      "created": "2019-03-08 11:09:21",
      "modified": "2025-11-18 14:56:32",
      "commits": 6
    },
    {
      "source": "DSR-vignette.Rmd",
      "filename": "DSR-vignette.html",
      "title": "PHEindicatormethods DSR function",
      "author": "Georgina Anderson",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "The following packages must be installed and loaded if not already available",
        "First let's create some data to play with",
        "Prepare the data frame",
        "Now let's calculate some DSRs",
        "Alternative Standard Populations",
        "Calculating DSRs when the events are non-independent",
        "Calculating DSRs when there are zero deaths in some age bands"
      ],
      "created": "2017-12-19 15:24:18",
      "modified": "2025-11-18 14:56:32",
      "commits": 15
    },
    {
      "source": "WorkedExamples_phe_sii.Rmd",
      "filename": "WorkedExamples_phe_sii.html",
      "title": "Worked examples for phe_sii function",
      "author": "Emma Clegg and Georgina Anderson",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Introduction",
        "Function and inputs",
        "Example 1 - default (normal) distribution",
        "Example 2 - rate",
        "Example 3 - proportion",
        "Interpreting the Mean Average Difference (MAD)"
      ],
      "created": "2019-03-21 11:26:34",
      "modified": "2025-11-18 14:56:32",
      "commits": 5
    }
  ],
  "_score": 7.613715002052741,
  "_indexed": true,
  "_nocasepkg": "pheindicatormethods",
  "_universes": [
    "dhsc-govuk",
    "georgieanderson"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.1.1",
      "date": "2026-05-17T07:59:27.000Z",
      "distro": "noble",
      "commit": "2317716fe39d026e4502983fa36a09dfeaf3a853",
      "fileid": "77893cb083a84d1fae4c99c6ca013a2a1092a105d0a6fcb6745ba465b8f17b95",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dhsc-govuk/actions/runs/25985159995"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "2.1.1",
      "date": "2026-05-17T07:59:31.000Z",
      "distro": "noble",
      "commit": "2317716fe39d026e4502983fa36a09dfeaf3a853",
      "fileid": "967767d9ee76a8461e7f41d362a5fae8e43b0786737c0ec546cd22d4b1143ad9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dhsc-govuk/actions/runs/25985159995"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.1.1",
      "date": "2026-05-17T07:59:17.000Z",
      "commit": "2317716fe39d026e4502983fa36a09dfeaf3a853",
      "fileid": "688814c55f94e6e363a5746a9a7d877847f2fa5be491eba3b681ed43e965b674",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dhsc-govuk/actions/runs/25985159995"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "2.1.1",
      "date": "2026-05-17T07:59:12.000Z",
      "commit": "2317716fe39d026e4502983fa36a09dfeaf3a853",
      "fileid": "b486670b67a5afbed370fcda94d18589b9d2338976270db57f91ead4418542e9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dhsc-govuk/actions/runs/25985159995"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.1.1",
      "date": "2026-05-17T07:59:03.000Z",
      "commit": "2317716fe39d026e4502983fa36a09dfeaf3a853",
      "fileid": "6fbc64587ca479535f424c9c0e7e268937f218e40d867c0eaea2e4eb430b9296",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dhsc-govuk/actions/runs/25985159995"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.1.1",
      "date": "2026-05-17T07:59:16.000Z",
      "commit": "2317716fe39d026e4502983fa36a09dfeaf3a853",
      "fileid": "8890237a7a6db125f8cb600e753f4d54be571ae1abec790788b9ec83e4c25448",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dhsc-govuk/actions/runs/25985159995"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "2.1.1",
      "date": "2026-05-17T07:59:52.000Z",
      "commit": "2317716fe39d026e4502983fa36a09dfeaf3a853",
      "fileid": "05f1a9d4fb5574513b48413bc39d82b3e335255d4d5b49b6da14e115c92d41b2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/dhsc-govuk/actions/runs/25985159995"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.1.1",
      "date": "2026-06-02T17:22:50.000Z",
      "commit": "2317716fe39d026e4502983fa36a09dfeaf3a853",
      "fileid": "2d23fcd64e869548a1144bd1856762c1d5a195ca3b802909c015b777445a66fc",
      "status": "success",
      "buildurl": "https://github.com/r-universe/dhsc-govuk/actions/runs/25985159995"
    }
  ]
}