Repeat for other indicator variables (if necessary). To create indicator (dummy) variables from a qualitative variable, type, for example, generate D1=(X="level"), where X is the qualitative variable and level is the name of one of the categories in X.If you get the error message "," this means that there is a syntax error in your expression-a common mistake is to forget the multiplication symbol ( *) between a number and a variable (e.g., 2*X represents 2X). To transform data or compute a new variable, type, for example, generate logX=ln(X) for the natural logarithm of X and generate Xsq=X^2 for X 2.To find out about a particular topic click Help > Search or to find out about a particular Stata command click Help > Stata Command. You can access help by selecting Help > Contents.Graphs appear in separate windows and can also easily be copied using Edit > Copy Graph and then pasted to other applications. Output appears in the "Stata Results" window and can be copied and pasted from Stata to a word processor like OpenOffice Writer or Microsoft Word.To recall a previously entered command, single-click it in the "Review" window.You can also import text or Excel data files using the Text Import Wizard by selecting File > Browse. To open a Stata data file, type use "file.dta", where file.dta is the name of the data file (with the correct path specified if necessary).Change Stata's default options by selecting ?.
Getting started and summarizing univariate data
Find instructions for other statistical software packages here. These instructions are based on Stata 8 for Windows, but they should also work for other versions. The numbered items cross-reference with the "computer help" references in the book. These instructions accompany Applied Regression Modeling by Iain Pardoe, 2nd edition published by Wiley in 2012.