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.
BarnettV.1975. Probability plotting methods and order statistics. Applied Statistics24: 95–108.
2.
CajoriF.1929. A history of mathematical notations. Volume II: Notation mainly in highermathematics. La Salle, IL: Open Court.
3.
ConroyR. M.2002. Choosing an appropriate real-life measure of effect size: the case of a continuous predictor and a binary outcome. Stata Journal2(3): 290–295.
4.
ConwayJ. H., and GuyR.K.1996. The book of numbers.New York: Copernicus.
5.
CoxN. J.1999. dm70: Extensions to generate, extended. Stata Technical Bulletin50: 9–17. In Stata Technical Bulletin Reprints, vol. 9, 34–45. College Station, TX: Stata Press.
6.
CoxN. J.2000. dm70.1: Extensions to generate, extended: corrections. Stata Technical Bulletin57: 2. In Stata Technical Bulletin Reprints, vol. 10, 9. College Station, TX: Stata Press.
7.
CoxN. J.2002a. Speaking Stata: How to face lists with fortitude. Stata Journal2(2): 202–222.
8.
CoxN. J.2002b. Speaking Stata: How to move step by: step. Stata Journal2(1): 86–102.
9.
CoxN. J.2002c. Speaking Stata: On numbers and strings. Stata Journal2(3): 314–329.
10.
CunnaneC.1978. Unbiased plotting positions–a review. Journal of Hydrology37: 205–222.
11.
HammingR. W.1973. Numerical methods for scientists and engineers. New York: McGraw-Hill.
12.
HarterH. L.1984. Another look at plotting positions. Communications in Statistics, Theory and Methods13: 1613–1633.
13.
KnuthD. E.1997. The art of computer programming. Volume I: Fundamental algo-rithms.Reading, MA: Addison-Wesley.
14.
McDowellA.2001. From the help desk. Stata Journal1(1): 76–85.
15.
RyanP.1999. dm71: Calculating the product of observations. Stata Technical Bulletin51: 3–4. In Stata Technical Bulletin Reprints, vol. 9, 45–48. College Station, TX: Stata Press.
16.
RyanP.2001. dm87: Calculating the row product of observations. Stata Technical Bulletin60: 3–4. In Stata Technical Bulletin Reprints, vol. 10, 39–41. College Station, TX: Stata Press.
17.
SchwartzmanS.1994. The words of mathematics: an etymological dictionary of mathematical terms used in English. Washington, DC: Mathematical Association of America.