From spreadsheets to script: experiences from converting a Scottish cardiovascular disease policy model into R

Xin, Y. , Gray, E., Robles-Zurita, J. A., Haghpanahan, H. , Heggie, R., Kohli-Lynch, C., Briggs, A. , McAllister, D. A. , Lawson, K. D. and Lewsey, J. (2021) From spreadsheets to script: experiences from converting a Scottish cardiovascular disease policy model into R. Applied Health Economics and Health Policy, (doi: 10.1007/s40258-021-00684-y) (PMID:34671930) (Early Online Publication)

[img] Text
250794.pdf - Accepted Version
Restricted to Repository staff only until 21 October 2022.

852kB
[img] Text
250794Suppl.pdf - Supplemental Material
Restricted to Repository staff only until 21 October 2022.

117kB

Abstract

Given the advantages in transparency, reproducibility, adaptability and computational efficiency in R, there is a growing interest in converting existing spreadsheet-based models into an R script for model re-use and upskilling training among health economic modellers. The objective of this exercise was to convert the Scottish Cardiovascular Disease (CVD) Policy Model from Excel to R and discuss the lessons learnt throughout this process. The CVD model is a competing risk state transition cohort model. Four health economists, with varied experience of R, attempted to replicate an identical model structure in R based on the model in Excel and reproduce the intermediate and final results. Replications varied in their use of specialist health economics packages in addition to standard data management packages. Two versions of the CVD model were created in R along with a Shiny app. Version 1 was developed without health economics specialist packages and produced identical results to the Excel version. Version 2 used the heemod package and did not achieve the same results, possibly due to the non-standard elements of the model and limited time to adapt the functions. The R model requires less than half the computational time than the Excel model. Conversion of the spreadsheet models to script models is feasible for health economists. A step-by-step guide for the conversion process is provided and modellers’ experience is discussed. Coding without specialist packages allows full flexibility, while specialist packages may add convenience if the model structure is suitable. Whichever approach is taken, transparency and replicability remain the key criteria in model programming. Model conversions must maintain standards in these areas regardless of the choice of software.

Item Type:Articles
Status:Early Online Publication
Refereed:Yes
Glasgow Author(s) Enlighten ID:Haghpanahan, Dr Houra and Robles-Zurita, Dr Jose Antonio and Lawson, Mr Kenny and Briggs, Professor Andrew and Heggie, Mr Robert and Kohli-Lynch, Dr Ciaran and McAllister, Professor David and Xin, Miss Yiqiao and Lewsey, Professor Jim
Authors: Xin, Y., Gray, E., Robles-Zurita, J. A., Haghpanahan, H., Heggie, R., Kohli-Lynch, C., Briggs, A., McAllister, D. A., Lawson, K. D., and Lewsey, J.
College/School:College of Medical Veterinary and Life Sciences > Institute of Health and Wellbeing > Health Economics and Health Technology Assessment
Journal Name:Applied Health Economics and Health Policy
Publisher:Springer
ISSN:1175-5652
ISSN (Online):1179-1896
Published Online:21 October 2021

University Staff: Request a correction | Enlighten Editors: Update this record