CPRDENTTYPE: Stata module to convert CPRD entity string data of any enttype to numeric
Roger Newson ()
Statistical Software Components from Boston College Department of Economics
The cprdenttype package is intended for use with datasets produced by the cprdutil package to convert CPRD entity string data variables to numeric variables. cprdenttype inputs an integer number, assumed to be a CPRD enttype (or entity type) value, and a filename, assumed to be a Stata dataset produced by the cprd_entity module of cprdutil, with one observation for each enttype value known to CPRD. It outputs descriptive information about the entity type with the specified enttype value, and, optionally, two local macros, storing lists of CPRD lookups and descriptive labels for decoding the string data variables used by that enttype. cprdentcode is used in test and additional clinical datasets, produced by the cprd_test and cprd_additional modules of cprdutil, respectively. It inputs the lists specified by the local macros output by cprdenttype, and uses them to input the string entity data variables in the datasets, and to output a list of numeric variables with the correct formats, variable labels and/or value labels, assuming that the test or additional clinical observations have the enttype value originally specified by the user to cprdenttype. cprdentcode requires the SSC package chardef in order to work.
Requires: Stata version 13 and chardef from SSC (q.v.)
Keywords: CPRD; data management; entity conversion (search for similar items in EconPapers)
Date: 2017-10-29, Revised 2019-05-20
Note: This module may be installed from within Stata by typing "ssc install cprdenttype". Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations: Track citations by RSS feed
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/c/cprdenttype.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cprdenttype.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cprdentcode.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/c/cprdentcode.sthlp help file (text/plain)
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s458419
Ordering information: This software item can be ordered from
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().