cases_weekly | R Documentation |
Replicates the calculations in the 'Weekly Summary' tab of the ESFT depending on the input data source (WHO or Imperial). There are elements of these calculations, such as the assumption that hospital incidence = number of severe cases in the Imperial calculations, that the ICL team does not make in its calculations. Therefore, keep in mind that this is just a duplicate of the calculations in the ESFT, and not a critical appraisal of these calculations. This calculation does not yield an output where the first row contains the start date, as rows previous to the start date are needed for the patient calculations.
Note: since proportion of mild and moderate are the same, the estimates of these categories will be the same.
cases_weekly(
params,
capacity,
test_strategy_params,
data,
data_source = "Imperial",
user
)
params |
Includes both estimates of beds and case severity proportions. |
capacity |
From get_country_capacity |
test_strategy_params |
From set_testing_strategy |
data |
Specific country fit data, from the imperial model fits or from WHO data |
data_source |
Either WHO or Imperial. |
user |
From user_input function |
Dataframe of weekly summary, if data_source = "Imperial". If the data_source = "WHO", the ICU and hospital columns will not be included.
Date the week summarized begins
Date the week summarized ends
Summed hospital demand: number of people who would be using a hospital bed given enough healthcare capacity but won't necessarily have it
Summed ICU demand: number of people who would be using a hospital bed given enough healthcare capacity but won't necessarily have it
Summed hospital incidence: the total number of new people who need a new hospital bed at the current time. This does not include those recovering from ICU in a hospital bed or who already have access to a bed.
Summed ICU incidence: the total number of new people who need a new ICU bed at the current time. This does not include those who already have access to a bed.
Estimated number of new infections, from model fits
Cumulative number of infections
For Imperial input = new critical cases per week as defined by as the ICU incidence. For WHO input, this is equal to the number of new cases per week multiplied by the proportion of infections that are critical
For Imperial input = new severe cases per week as defined by as the hospital incidence. For WHO input, this is equal to the number of new cases per week multiplied by the proportion of infections that are severe
New moderate cases every week, found by doing a transformation of the critical and severe cases and multiplying by the moderate case proportion
New mild cases every week, found by doing a transformation of the critical and severe cases and multiplying by the mild case proportion
Cumulative critical cases per week as defined by the ESFT: cumulative ICU incidence
Cumulative severe cases per week as defined by the ESFT: cumulative hospital incidence
Cumulative moderate cases, using the first moderate case calculation
Cumulative mild cases, using the first mild case calculation
Sum of all new cases multiplied by the number of negative tests per positive case
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.