View source: R/smr_wrangling.R
smr_wrangling | R Documentation |
Creates the majority of necessary variables to be used in the HSMR model.
smr_wrangling(smr01, gro, pdiags, postcode, morbs, spec)
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. |
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
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.