Package: PHEindicatormethods 2.1.2

Georgina Anderson

PHEindicatormethods: Common Public Health Statistics and their Confidence Intervals

Functions to calculate commonly used public health statistics and their confidence intervals using methods approved for use in the production of Public Health England indicators such as those presented via Fingertips (<https://fingertips.phe.org.uk/>). It provides functions for the generation of proportions, crude rates, means, directly standardised rates, indirectly standardised rates, standardised mortality ratios, slope and relative index of inequality and life expectancy. Statistical methods are referenced in the following publications. Breslow NE, Day NE (1987) <doi:10.1002/sim.4780080614>. Dobson et al (1991) <doi:10.1002/sim.4780100317>. Armitage P, Berry G (2002) <doi:10.1002/9780470773666>. Wilson EB. (1927) <doi:10.1080/01621459.1927.10502953>. Altman DG et al (2000, ISBN: 978-0-727-91375-3). Chiang CL. (1968, ISBN: 978-0-882-75200-6). Newell C. (1994, ISBN: 978-0-898-62451-9). Eayres DP, Williams ES (2004) <doi:10.1136/jech.2003.009654>. Silcocks PBS et al (2001) <doi:10.1136/jech.55.1.38>. Low and Low (2004) <doi:10.1093/pubmed/fdh175>. Fingertips Public Health Technical Guide: <https://fingertips.phe.org.uk/profile/guidance/supporting-information/PH-methods/>.

Authors:Georgina Anderson [aut, cre], Sebastian Fox [ctb], Matthew Francis [ctb], Emma Clegg [ctb], Annabel Westermann [ctb], Joshua Woolner [ctb], Charlotte Fellows [ctb], Olivia Box Power [ctb], Paul Fryers [rev], Department of Health and Social Care [cph]

PHEindicatormethods_2.1.2.tar.gz
PHEindicatormethods_2.1.2.zip(r-4.7-any)PHEindicatormethods_2.1.2.zip(r-4.6-any)PHEindicatormethods_2.1.2.zip(r-4.5-any)
PHEindicatormethods_2.1.2.tgz(r-4.6-any)PHEindicatormethods_2.1.2.tgz(r-4.5-any)
PHEindicatormethods_2.1.2.tar.gz(r-4.7-any)PHEindicatormethods_2.1.2.tar.gz(r-4.6-any)
PHEindicatormethods_2.1.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
PHEindicatormethods/json (API)

# Install 'PHEindicatormethods' in R:
install.packages('PHEindicatormethods', repos = c('https://dhsc-govuk.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/dhsc-govuk/pheindicatormethods/issues

Datasets:

On CRAN:

Conda:

7.94 score 32 stars 114 scripts 872 downloads 13 exports 22 dependencies

Last updated from:e2137c84e1. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK163
source / vignettesOK362
linux-releaseOK168
macos-releaseOK144
macos-oldrelOK230
windows-develOK130
windows-releaseOK116
windows-oldrelOK124
wasm-releaseOK93

Exports:assign_funnel_significancecalculate_dsrcalculate_funnel_limitscalculate_funnel_pointscalculate_ISRatecalculate_ISRatiophe_dsrphe_life_expectancyphe_meanphe_proportionphe_quantilephe_ratephe_sii

Dependencies:backportsbroomclicpp11dplyrgenericsgluelifecyclemagrittrpillarpkgconfigpurrrR6rlangstringistringrtibbletidyrtidyselectutf8vctrswithr

Introduction to PHEindicatormethods
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

Last update: 2025-11-18
Started: 2019-03-08

PHEindicatormethods DSR function
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

Last update: 2025-11-18
Started: 2017-12-19

Worked examples for phe_sii function
Introduction | Function and inputs | Example 1 - default (normal) distribution | Example 2 - rate | Example 3 - proportion | Interpreting the Mean Average Difference (MAD)

Last update: 2025-11-18
Started: 2019-03-21