pharma_forecast: Pharmaceuticals Forecast

View source: R/pharma_forecast.R

pharma_forecastR Documentation

Pharmaceuticals Forecast

Description

Takes total amounts of drugs per course, percent treated and new cases by severity, and yields estimates of the total drugs required for the forecast period. Note: due to differences in the norms around rounding (R rounds from 5 to the nearest even number, Excel rounds up from 5) - these numbers are slightly different from the numbers in the forecast file. If desired, the code can be modified to round up (replace round with ceiling in the body of the function).

Usage

pharma_forecast(pharmaceuticals, cases)

Arguments

pharmaceuticals

pharmaceuticals.rda, from the ESFT

cases

From cases_weekly

Value

Dataframe of Pharmaceutical Forecast

drug

Drug name

total_drug_form_all_mild_treated

Total drug form needed for all mild patients

total_drug_form_all_mod_treated

Total drug form needed for all moderate patients

total_drug_form_all_severe_treated

Total drug form needed for all severe patients

total_drug_form_all_crit_treated

Total drug form needed for all critical patients


mrc-ide/esft documentation built on July 31, 2023, 2:30 p.m.