spim_data | R Documentation |
Organise data inputs that the model will be fit to. Note that there are other data inputs (notably severity and vaccination data) that are not fit to but are treated as model parameters.
spim_data(
date,
region,
model_type,
rtm,
serology,
trim_deaths,
trim_pillar2,
adm_backfill_date,
ons_death_backfill_date,
trim_pillar2_date = FALSE,
full_data = FALSE
)
date |
The date of the data. This will be the final date |
region |
The region that we are fitting to. This will either
be one of the 10 NHS regions (one of
|
model_type |
Either "BB" (beta-binomial) or "NB" (negative binomial). We use and exclude different data types depending on this argument. |
rtm |
The "RTM collate" data feed. This contains information about deaths, positive test results, react serology, etc. TODO: DESCRIBE FORMAT; TODO: DESCRIBE ORIGIN |
serology |
The additional serology data. TODO: DESCRIBE FORMAT |
trim_deaths |
The number of days of deaths to trim to avoid back-fill issues. We typically use a value of 4 days. |
trim_pillar2 |
Either an integer representing the number of days of
pillar 2 data to trim to avoid back-fill issues (typically 7 days) or a
date string representing the date from which we no longer fit to pillar 2.
If the latter, then |
adm_backfill_date |
A date string, representing the last date we use admissions by age from the SUS linelist for England NHS regions. After this date we use age-aggregated admissions from the UKHSA dashboard. This is to account for backfill, and should be carefully updated with every new SUS data delivery. |
ons_death_backfill_date |
A date string, representing the last date we use deaths by age from the ONS for England NHS regions. After this date we use deaths by age from the UKHSA linelist. This is to account for the increased delay in registering death certificates, compared with just reporting deaths that occur within 28 days of a positive test. |
trim_pillar2_date |
Logical parameter. If TRUE, indicates that
|
full_data |
Not sure yet, we'll find out |
A data.frame()
TODO: describe columns
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.