EconPapers    
Economics at your fingertips  
 

A fleet of packages for inputting United Kingdom primary care data

Roger Newson

London Stata Conference 2018 from Stata Users Group

Abstract: The Clinical Practice Research Datalink (CPRD) is a centrally-managed data warehouse, storing data provided by the primary-care sector of the United Kingdom (UK) National Health Service (NHS). Medical researchers request retrievals from this database, which take the form of a collection of text datasets, whose format can be complicated. I have written a flagship package cprdutil, with multiple modules to input into Stata the many text dataset types provided in a CPRD retrieval. These text datasets may be converted either to Stata value labels or to Stata datasets, which can be created complete with value labels, variable labels, and numeric Stata dates. I have also written a fleet of satellite packages, to input into Stata the text datasets for retrievals of linked data, in which data are provided from non-CPRD sources, with CPRD identifier variables as a foreign key to allow data linkage. The modules of cprdutil are introduced. A demonstration example is given, in which a minimal CPRD database is produced in Stata, using cprdutil, and some principles of sensible programming practice for creating large databases are illustrated.

Date: 2018-10-15
New Economics Papers: this item is included in nep-hea
References: View complete reference list from CitEc
Citations:

Downloads: (external link)
http://repec.org/usug2018/newson_ohp1.pdf presentation materials (application/pdf)
http://repec.org/usug2018/newson_examples.zip sample do-file (application/zip)

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:boc:usug18:01

Access Statistics for this paper

More papers in London Stata Conference 2018 from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-19
Handle: RePEc:boc:usug18:01