IDEAS home Printed from https://ideas.repec.org/c/boc/bocode/s458419.html
 

CPRDENTTYPE: Stata module to convert CPRD entity string data of any enttype to numeric

Author

Listed:
  • Roger Newson

    (King's College London)

Programming Language

Stata

Abstract

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.

Suggested Citation

  • Roger Newson, 2017. "CPRDENTTYPE: Stata module to convert CPRD entity string data of any enttype to numeric," Statistical Software Components S458419, Boston College Department of Economics, revised 20 May 2019.
  • Handle: RePEc:boc:bocode:s458419
    Note: This module may be installed from within Stata by typing "ssc install cprdenttype". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
    as

    Download full text from publisher

    File URL: http://fmwww.bc.edu/repec/bocode/c/cprdenttype.ado
    File Function: program code
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/c/cprdenttype.sthlp
    File Function: help file
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/c/cprdentcode.ado
    File Function: program code
    Download Restriction: no

    File URL: http://fmwww.bc.edu/repec/bocode/c/cprdentcode.sthlp
    File Function: help file
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:boc:bocode:s458419. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Christopher F Baum (email available below). General contact details of provider: https://edirc.repec.org/data/debocus.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.