Introducing the Stata linter: A tool to produce clear and transparent Stata code
Luis Eduardo San Martin and
Rony Rodriguez-Ramirez
Additional contact information
Luis Eduardo San Martin: The World Bank, Development Impact Evaluation
Rony Rodriguez-Ramirez: World Bank-DECRG
2023 Stata Conference from Stata Users Group
Abstract:
Statistical programming code developed collaboratively is common in modern data work. However, it is also usual for people to have different coding conventions, making it challenging for one reader to quickly understand another's code and impeding transparency. This is especially true for researchers using Stata, because it does not have a widely accepted style guide and few economics graduate students are taught best practices for writing code. To tackle the problem of poor and inconsistent coding conventions in Stata, DIME Analytics recently launched a new tool: the Stata linter. The Stata linter uses the new lint Stata command to help users write good Stata code by identifying problematic code practices. It reads a Stata do-file and automatically detects coding style that makes code hard to follow or that can lead to unintended errors, following DIME Analytics' Stata style guide. This presentation will cover the main functionalities of lint, showcasing how it can be used to detect and correct bad coding practices and improve the readability and transparency of Stata do-files.
Date: 2023-07-29
References: Add references at CitEc
Citations:
Downloads: (external link)
http://repec.org/usug2023/US23_San_Martin.pdf
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:usug23:03
Access Statistics for this paper
More papers in 2023 Stata Conference from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().