View source: R/pharma_forecast.R
pharma_forecast | R Documentation |
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).
pharma_forecast(pharmaceuticals, cases)
pharmaceuticals |
pharmaceuticals.rda, from the ESFT |
cases |
From cases_weekly |
Dataframe of Pharmaceutical Forecast
Drug name
Total drug form needed for all mild patients
Total drug form needed for all moderate patients
Total drug form needed for all severe patients
Total drug form needed for all critical patients
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.