IDEAS home Printed from
   My bibliography  Save this paper

Managing Edit Checks and Database Cleaning with Stata


  • Jacqueline L. Buros

    () (Perfuse Core Laboratories and Data Coordinating Center)


We have developed a set of ado-files for use in data management, specifically designed to manage user-written edit checks and to complement the process of data cleaning. Collectively, these tools enable us to identify, distribute, and track edit-checks in several large multi-center clinical trials using Stata software. Our approach is successful because the coding is simple and the entire process is visible and familiar to most users. It does not depend on any particular database structure. The framework approximates an object-oriented environment, with the objects being (a) the database, open at the time a command is called, (b) an edit-check, consisting of a Stata do-file, a query message and a list of variables to be identified for review, and (c) the edit-check history, implemented as a Stata dataset. These objects can be manipulated directly or by using a command in Stata. Actions managed by command include creating or modifying an edit-check, generating a query-clean dataset, preparing and tracking a set of edit-check documents, and summarizing the edit-check history. Here, we present a brief overview of our process and describe the use of the commands in the context of clinical research.

Suggested Citation

  • Jacqueline L. Buros, 2006. "Managing Edit Checks and Database Cleaning with Stata," North American Stata Users' Group Meetings 2006 11, Stata Users Group.
  • Handle: RePEc:boc:asug06:11

    Download full text from publisher

    File URL:
    Download Restriction: no

    References listed on IDEAS

    1. Christopher F Baum & Mark E. Schaffer & Steven Stillman, 2003. "Instrumental variables and GMM: Estimation and testing," Stata Journal, StataCorp LP, vol. 3(1), pages 1-31, March.
    2. Hansen, Lars Peter, 1982. "Large Sample Properties of Generalized Method of Moments Estimators," Econometrica, Econometric Society, vol. 50(4), pages 1029-1054, July.
    3. Arellano, Manuel & Bover, Olympia, 1995. "Another look at the instrumental variable estimation of error-components models," Journal of Econometrics, Elsevier, vol. 68(1), pages 29-51, July.
    4. Beck, Thorsten & Levine, Ross, 2004. "Stock markets, banks, and growth: Panel evidence," Journal of Banking & Finance, Elsevier, vol. 28(3), pages 423-442, March.
    5. Holtz-Eakin, Douglas & Newey, Whitney & Rosen, Harvey S, 1989. "The Revenues-Expenditures Nexus: Evidence from Local Government Data," International Economic Review, Department of Economics, University of Pennsylvania and Osaka University Institute of Social and Economic Research Association, vol. 30(2), pages 415-429, May.
    6. Andersen, Torben G & Sorensen, Bent E, 1996. "GMM Estimation of a Stochastic Volatility Model: A Monte Carlo Study," Journal of Business & Economic Statistics, American Statistical Association, vol. 14(3), pages 328-352, July.
    7. Calderon Cesar Augusto & Chong Alberto & Loayza Norman V., 2002. "Determinants of Current Account Deficits in Developing Countries," The B.E. Journal of Macroeconomics, De Gruyter, vol. 2(1), pages 1-33, March.
    8. Blundell, Richard & Bond, Stephen, 1998. "Initial conditions and moment restrictions in dynamic panel data models," Journal of Econometrics, Elsevier, vol. 87(1), pages 115-143, August.
    9. Theodore H. Moran & Edward M. Graham & Magnus Blomstrom, 2005. "Does Foreign Direct Investment Promote Development?," Peterson Institute Press: All Books, Peterson Institute for International Economics, number 3810.
    10. Ruth Judson & Ann L. Owen, "undated". "Estimating Dynamic Panel Data Models: A Practical Guide for Macroeconomists," Finance and Economics Discussion Series 1997-03, Board of Governors of the Federal Reserve System (U.S.).
    11. David Roodman, 2009. "A Note on the Theme of Too Many Instruments," Oxford Bulletin of Economics and Statistics, Department of Economics, University of Oxford, vol. 71(1), pages 135-158, February.
    12. Kiviet, Jan F., 1995. "On bias, inconsistency, and efficiency of various estimators in dynamic panel data models," Journal of Econometrics, Elsevier, vol. 68(1), pages 53-78, July.
    13. Nickell, Stephen J, 1981. "Biases in Dynamic Models with Fixed Effects," Econometrica, Econometric Society, vol. 49(6), pages 1417-1426, November.
    14. Bowsher, Clive G., 2002. "On testing overidentifying restrictions in dynamic panel data models," Economics Letters, Elsevier, vol. 77(2), pages 211-220, October.
    15. Manuel Arellano & Stephen Bond, 1991. "Some Tests of Specification for Panel Data: Monte Carlo Evidence and an Application to Employment Equations," Review of Economic Studies, Oxford University Press, vol. 58(2), pages 277-297.
    16. Anderson, T. W. & Hsiao, Cheng, 1982. "Formulation and estimation of dynamic models using panel data," Journal of Econometrics, Elsevier, vol. 18(1), pages 47-82, January.
    Full references (including those not matched with items on IDEAS)

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:


    Access and download statistics


    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:asug06:11. See general information about how to correct material in RePEc.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: (Christopher F Baum). General contact details of provider: .

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

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

    IDEAS is a RePEc service hosted by the Research Division of the Federal Reserve Bank of St. Louis . RePEc uses bibliographic data supplied by the respective publishers.