create_trends: minimal tidy data set for long term trends in crude mortality...

View source: R/create_trends.R

create_trendsR Documentation

Description

Returns the minimal tidy data set for long terms trend data which feeds into the reproducible analytical pipeline of the quarterly Hospital Standardised Mortality Ratios publication.

Usage

create_trends(smr01, gro, pop, dep, spec, hospital_lookup)

Arguments

smr01

Input tibble for admissions, see details.

gro

Input tibble for deaths, see details.

pop

Input tibble for population estimates.

dep

Input tibble for deprivation lookup.

spec

Input tibble for the specialty groupings lookup.

hospital_lookup

Input tibble for the hospital name lookup.

Details

create_trends expects a tibble with data extracted from SMR01, a tibble with data extracted from NRS deaths records, a tibble with population estimates and a tibble with a lookup file for deprivation.

Value

If the class is not initiated correctly, nothing is returned.


Public-Health-Scotland/hsmr documentation built on June 24, 2024, 1:48 a.m.