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) . Dobson et al (1991) . Armitage P, Berry G (2002) . Wilson EB. (1927) . 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) . Silcocks PBS et al (2001) . Low and Low (2004) . Fingertips Public Health Technical Guide: < https://fingertips.phe.org.uk/profile/guidance/supporting-information/PH-methods/>.


R-CMD-check Codecov testcoverage

PHEindicatormethods

This is an R package to support analysts in the execution of statistical methods approved for use in the production of PHE indicators such as those presented via Fingertips. It provides functions for the generation of Proportions, Rates, DSRs, ISRs, Means, Life Expectancy and Slope Index of Inequality including confidence intervals for these statistics, and a function for assigning data to quantiles.

In October 2021 Public Health England (PHE) was disbanded and as a result this package is now owned by the Department of Health and Social Care. It will continue to be supported and to prevent breaking changes there are currently no immediate plans to rename the package or its functions in light of this organisational change.

Any feedback would be appreciated and can be provided using the Issues section of the PHEindicatormethods GitHub repository.



Installation

Install from CRAN

Install the latest release version of PHEindicatormethods directly from CRAN with:

install.packages("PHEindicatormethods")



Install a development version from GitHub using remotes package

You can install a development version of PHEindicatormethods from GitHub with:

if (!require(remotes)) install.packages("remotes")

remotes::install_github("dhsc-govuk/PHEindicatormethods",
                         build_vignettes = TRUE,
                         dependencies = TRUE,
                         build_opts = c("--no-resave-data"))



Package Versioning

Following installation of this package, type ‘packageVersion(“PHEindicatormethods”)’ in the R console to show the package version. If it is suffixed with a 9000 number then you are using an unapproved development version.

Released versions of this package will have version numbers consisting of three parts:

major.minor.patch

In-development versions of this package will have a fourth component, the development version number, which will increment from 9000.

See https://r-pkgs.org/lifecycle.html for further information on package versioning

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("PHEindicatormethods")

2.1.2 by Georgina Anderson, a month ago


Report a bug at https://github.com/dhsc-govuk/PHEindicatormethods/issues


Browse source code at https://github.com/cran/PHEindicatormethods


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]


Documentation:   PDF Manual  


GPL-3 license


Imports broom, dplyr, purrr, rlang, stats, tibble, tidyselect, tidyr, lifecycle

Suggests knitr, readxl, rmarkdown, testthat, withr


See at CRAN