EconPapers    
Economics at your fingertips  
 

From Spreadsheets to Script: Experiences From Converting a Scottish Cardiovascular Disease Policy Model into R

Yiqiao Xin (), Ewan Gray, Jose Antonio Robles-Zurita, Houra Haghpanahan, Robert Heggie, Ciaran Kohli-Lynch, Andrew Briggs, David A. McAllister, Kenny D. Lawson and Jim Lewsey
Additional contact information
Yiqiao Xin: University of Glasgow
Ewan Gray: University of Edinburgh
Jose Antonio Robles-Zurita: University of Glasgow
Houra Haghpanahan: University of Glasgow
Robert Heggie: University of Glasgow
Ciaran Kohli-Lynch: University of Glasgow
Andrew Briggs: London School of Hygiene and Tropical Medicine
David A. McAllister: University of Glasgow
Kenny D. Lawson: University of Sydney
Jim Lewsey: University of Glasgow

Applied Health Economics and Health Policy, 2022, vol. 20, issue 2, No 2, 149-158

Abstract: 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.

Date: 2022
References: View references in EconPapers View complete reference list from CitEc
Citations:

Downloads: (external link)
http://link.springer.com/10.1007/s40258-021-00684-y Abstract (text/html)
Access to the full text of the articles in this series is restricted.

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:spr:aphecp:v:20:y:2022:i:2:d:10.1007_s40258-021-00684-y

Ordering information: This journal article can be ordered from
http://www.springer.com/economics/journal/40258

DOI: 10.1007/s40258-021-00684-y

Access Statistics for this article

Applied Health Economics and Health Policy is currently edited by Timothy Wrightson

More articles in Applied Health Economics and Health Policy from Springer
Bibliographic data for series maintained by Sonal Shukla () and Springer Nature Abstracting and Indexing ().

 
Page updated 2025-03-20
Handle: RePEc:spr:aphecp:v:20:y:2022:i:2:d:10.1007_s40258-021-00684-y