smr_wrangling: Initial Wrangling for HSMR data

View source: R/smr_wrangling.R

smr_wranglingR Documentation

Initial Wrangling for HSMR data

Description

Creates the majority of necessary variables to be used in the HSMR model.

Usage

smr_wrangling(smr01, gro, pdiags, postcode, morbs, spec)

Arguments

smr01

Input tibble for admissions, see details.

gro

Input tibble for deaths, see details.

pdiags

Input tibble for primary diagnosis groupings lookup.

postcode

Input tibble for deprivation lookup.

morbs

Input tibble for the charlson index for comorbidities lookup.

spec

Input tibble for for specialty groupings lookup.

Details

smr_wrangling expects a tibble of data extracted from SMR01. It also expects tibbles of data extracted from the GRO deaths database and lookups for primary diagnosis, postcode (for deprivation) and morbidities (comorbs_sum). This is the first step in a four-step process. The next steps are smr_pmorbs, then smr_model and finally smr_data.


NHS-NSS-transforming-publications/hsmr documentation built on June 30, 2024, 11:48 a.m.