Speaking stata: How best to generate indicator or dummy variables

11Citations
Citations of this article
29Readers
Mendeley users who have this article in their library.

This article is free to access.

Abstract

Indicator or dummy variables record whether some condition is true or false in each observation by a value of 1 or 0. Values may also be missing if truth or falsity is not known, and that fact should be flagged. Such indicators may be created on the fly by using factor-variable notation. tabulate also offers one method for automating the generation of indicators. In this column, we discuss in detail how otherwise to best generate such variables directly, with comments here and there on what not to do.

Cite

CITATION STYLE

APA

Cox, N. J., & Schechter, C. B. (2019). Speaking stata: How best to generate indicator or dummy variables. Stata Journal, 19(1), 246–259. https://doi.org/10.1177/1536867X19830921

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free