The following section shows how to create an R application to perform forecasting on pharmaceutical medicine sales data using information obtained from NHS (UK) General Practitioner (GP) datasets, available at https://bit.ly/2Fxw9x4.
The dataset contains GP prescription data, which lists the medications that were prescribed by physicians to patients in the UK. Using the historical data for sales, we will attempt to predict future sales, both by quantity and revenue:
For the benefit of the readers, we have already provided a smaller version of the data in our code repository. Note that the application uses sophisticated and elegant customisations. This has been achieved using custom CSS styles and different API libraries. The user may want to ensure that all the libraries are installed prior to executing the code. For the benefit of the...