Home  >>  Archives  >>  Volume 2 Number 4  >>  pr0007

The Stata Journal
Volume 2 Number 4: pp. 411-427

Subscribe to the Stata Journal

Speaking Stata: On getting functions to do the work

Nicholas J. Cox
University of Durham, UK
Abstract.   Functions in Stata take two main forms, built-in functions that are part of the executable and egen functions written in Stata’s own language. These are surveyed, giving a variety of tips and tricks, and noting the large number of user-written egen functions available for download from the Internet. Two substantial examples, the calculation of percentile ranks and plotting positions, and the calculation of measures summarizing properties of the other members of a group, provide detailed illustrations of egen in action.
Terms of use     View this article (PDF)

View all articles by this author: Nicholas J. Cox

View all articles with these keywords: functions, egen, strings, percentile ranks, plotting positions, family data

Download citation: BibTeX  RIS

Download citation and abstract: BibTeX  RIS