來源:Masayuki Kudamatsu's website[1]
Stata links (文中連結見文末)
FILE MANAGEMENTGentzkow and Shapiro (2014) 「Code and Data for the Social Sciences: A Practitioner’s Guide.[2]」 - I strongly recommend reading this before embarking on your very first empirical research project. The guide introduces you to a lot of useful concepts of data management developed in computer science, which will save tons of time during an increasingly long journey of conducting a piece of empirical research in economics. The most important are Chapters 2, 4 and 5, which help you organize your data files and millions of your Stata do files (no joking, by the time you publish your empirical paper, you will have tons of Stata codes).
TUTORIALSEssam and Hughes (2016) Stata Cheetsheets[3] --- All the important Stata commands at one glance. (HT: Marc Bellemare[4])
Lembcke (2009) 「Introduction to Stata[5]」 and 「Advanced Stata Topics[6]」--- These are the Stata course lecture notes for PhD students at the Department of Economics, LSE. Since 2004, each year’s course instructor has updated and expanded them. I took the course in 2004, but the current version of the lecture note is much more than what I learned at the course. You will learn a lot from this. In particular, 「Advanced Stata Topics[7]」 touches on how to write and publish your own Stata programme, maximum likelihood estimation in Stata, and how to use Mata (Stata’s matrix programming language), the topics that are usually not covered in a Stata course for economists.
Using Stata to Analyze Survey Data by Nicholas Minot (IFPRI)[8]: This is an excellent introduction to Stata specifically tailored for would-be development economists.
Maybe useful:
A. Colin Cameron and P. K. Trivedi Microeconometrics: Methods and Applications[9]
Germán Rodriguez 「Stata Tutorial[10]」 Princeton University
Phil Bardsley, Kim Chantala, and Dan Blanchette "Stata Tutorial[11]" University of North Carolina at Chapel Hill
Stata Starter Kit[12] by UCLA Academic Technology Service
INTRODUCTIONWhat Stata can/can't do[13] by A. Colin Cameron (Dept. of Economics, University of California, Davis)
ADO FILESTo install an ado file, type "ssc install xxx" (where xxx should be replaced with the name of the ado file) in your Stata interactive session.
DO FILESMaking do-files is essential because it allows other researchers to replicate your empirical analysis. It's increasingly become the norm among empirical researchers to make public on the website Stata do-files used to produce results in published papers. Here are some websites on how to make do-files.
Michael S. Hill (2015) "In Stata coding, Style is the Essential: A brief commentary on do-file style[14]"
Stata Tutorial by Carolina Population Center, University of South Carolina[15]
An Introduction to Stata by Aimee Chin at MIT[16]
Stata section of Guide to Genetic Analysis by Centre for Integrated Genomic Medical Research[17] (Links to example do-files are dead, but it contains some information on editor software.)
Using external text editors to write do files[18] by Friedrich Huebler
RA Manual Notes on Writing Code[19], by Matthew Gentzkow and Jesse M. Shapiro (2012), offer the best practices in computer programming that are useful for writing Stata do files (and scripts for other software).
Stata help for timer[20]: A useful command if you run a do file that contains a command to take very long to be executed (e.g. regression with a lot of fixed effects).
If you use Stata/MP on cluster computing facilities, see Stata Help: statamp[21] if you use Stata/MP on cluster computing facilities.
READING FILESEvery data analysis begins with opening a data file. First, look at this website[22] for jargons for data formats. (The description on rectangular files is wrong, though.)
Stata Help infiling[23]: Official guide on which command to use for reading different types of data.
Excel
Excel files can finally be imported by a Stata command: import excel[24].
For earlier versions of Stata to read an Excel file, follow this blog entry[25]. Make sure to use the forward slash (/) rather than the backslash (\) for the path name. It should then work.
Stata
There is a useful ado program named USE10[26] which allows you to read the Stata version 10 data with Stata version 9. Type 「ssc install use10」 to install it.
SPSS
To read SPSS data files, use the usespss[27] ado. (HT: David McKenzie[28].)
CSV
If each data entry is separated by a comma (called the CSV format), use INSHEET.
If your data includes an identification number with more than 7 digits, make sure you include the doubleoption to the insheet command. Read Stata Help for data_type[29] for details.
Tab-delimited
If the separater is a tab or a space, use INFILE.
Fixed format
If the data file is in the fixed format (no separater between data entries; entries are identified by column numbers), it's more tricky. There are three cases:
(1) If it's a flat file (each single line represents one observation), see Stata: How to Write a Dictionary Program to Read Raw Data[30] by the Electronic Data Service (EDS) at Columbia University;
(2) If it's a rectangular file (the fixed number of lines represent one observation), see "Example of a Program to Read Data with Multiple Records/Case" at the bottom of Stata: How to Write a Dictionary Program to Read Raw Data[31] by the Electronic Data Service (EDS) at Columbia University;
(3) If it's a hierarchical file (a flexible number of lines represent one observation such as World Fertility Surveys[32]), see Stata: How to Read Hierarchical Files in Stata[33] by the Electronic Data Service (EDS) at Columbia University.
From scratch
To create a dataset from scratch, first type 「drop _all」 and then type 「set obs #」 where # is the number of observations in this new dataset. Then create variables by the generate command etc. For a small dataset, you can use the INPUT command[34] to directly enter the data.
Multiple files in the same directory
To read many files in the same directory and append them all, see Append Many Files[35] by UCLA.
EDITING DATA STRUCTUREBefore starting to edit data itself, you need to edit the structure of data files: reshape, append, and merge.
RESHAPE: Whenever you use the datasets downloaded from World Development Indicators, you need to do this.
Using Stata's RESHAPE command[36], by Amy Yuen at Electronic Data Center of Emory University General Libraries
APPEND/MERGE: Good empirical research often relies on the use of two or more completely different datasets. So you need to append or merge different datasets before starting analysis.
ISID: When you want to merge two datasets which do not share the common unique identifier but do share the same variables (e.g. birth date, birth region), the ISID command lets you check if a certain set of variables uniquely identify observations. See Stata Help on ISID[37].
Stata Tutorial Part 4: Manipulating Files[38], by Syracuse University Library
DATA PROCESSINGHow to **create dummy variables**[39] by Stata FAQs
**Create a new dataset by hand**[40] by Carolina Population Centre, University of North Carolina
List of **math functions** by Stata Help[41] - can be used in combination of generate command to edit variables.
List of operators[42] by Stata Help
Date variables[43] by Data and Statistical Services, Princeton University --- This webpage tells you how to convert date variables into different formats (e.g. convert the variables of year, month, and day into one date variable etc.).
To categorize observations by percentile bins, use the command xtile[44]. See this Statalist message[45].
UNIQUE: Stata module to report number of unique values in variable(s)[46] --- Sometimes this ado command is useful. For example, you may want to know whether a particular variable takes more than one value for each group of observations. To see the detail, type 「ssc install unique」 to install the ado file and then type 「help unique」 for its help.
REGEXM[47]: useful if you want to identify observations whose string variable contains a particular set of letters.
Loop over all values of a particular variable[48]: there is a lesser-known command LEVELSOF, creating a local macro r(levels) which contains the list of all values of the specified variable.
SUMMARY STATISTICSESTPOST[49] - This is part of the ESTOUT ado file package, automatizing the process of creating a table of summary statistics. Highly recommended.
Section 6 (pages 33-43) of Using Stata for Survey Data Analysis[50] by Nick Minot at IFPRI --- Very useful, especially if you are analyzing household survey data.
How to conduct a t-test for survey data[51], by UCLA Academic Technology Service --- Useful if each observation in your data needs to be weighted according to the sampling method. See also how to use the SVY command[52].
Generating Regression and Summary Statistics Tables in Stata: A Checklist and Code[53], by Matthew Groh (May, 2014) --- Provides an example do file that uses the MAT2TXT[54] Stata module.
ESTIMATIONSOverview of Stata estimation commands[55]
Stata Textbook Examples: Econometric Analysis of Cross Section and Panel Data by Jeffrey M. Wooldridge[56], by UCLA Academic Technology Service --- First, find an example of the estimation method you want to conduct in Wooldridge's graduate econometrics textbook. Then log on to this webpage to see what Stata command does the estimation you want.
Beyond simple OLS estimation[57] by UCLA Academic Technology Service - robust estimation, clustering, quantile regression, linear hypothesis testing, errors-in-variables regression (eivreg), censored/truncateddata, SUR, multivariate regression, etc.
Fixed effects estimation
The XTREG command with the FE option (ie. fixed effects estimation) has recently been modified. See what’s new in Stata 10[58] (items 4, 5, and 7 in particular) and in Stata 11[59] (the fourth bullet point in particular).
Fixed Effects Estimation (_xtreg_ command with _fe_ option)[60] by Stata FAQ - explains why there is a constant term in the estimation result table.
Differences among within, between, and overall R-squared obtained by the _xtreg, fe_ command[61] by Justin Smith (15 August 2006)
R squared in Fixed Effects Estimation[62] by Stata FAQ - explains why reported R squared is different between xtreg, fe and areg. See also this note[63] by Indiana University Information Technology Services. Theoretical background can be found in Hayashi's Econometrics textbook (page 333-4), for example. (This issue seems to be outdated with the xtreg command improved by Stata version 10 or higher.)
If you notice the areg command the xtreg command with the fe option produce different clustered standard errors from each other, read this[64].
Prais-Winsten panel regression: use the XTPCSE command[65]. Examples include Rohlfs et al (2010)[66].
Weighted least squares estimation
Weighted Least Squares when the variance of the error term is known[67] by Stata Help
Choosing the Correct Weight Syntax[68] by UNC Carolina Population Center - if you wonder what pweight, fweight, aweight, and iweight[69] really mean.
**Weighted Least Squares** Regression[70] by UCLA Academic Technology Service (See Deaton (1997) The Analysis of Household Surveys, pp.67-73, for the use of weighted least squares in the context of survey design.)
probit, logit, and other nonlinear regressions
MARGINS: a new command introduced since version 12, to report the average value of the predicted dependent variable by each specified value of regressors (if I understand corectly). Useful for interpreting estimated coefficients from nonlinear regressions, as explained by SSCC at University of Wisconsin-Madison[71].
this is an ado package to correctly estimate the magnitude and standard errors of the effect of an interaction term in nonlinear models such as probit and logit. See [Ai and Norton (2003)](http://dx.doi.org/10.1016%20/%20S0165-1765(03 "Ai and Norton (2003)")00032-6) for detail. This command, however, does not work if there are quite a few dummy variables as regressors. It seems the MARGINS and MARGINSPLOT commands supercede the INTEFF.
Event study
How to conduct an **event study** estimation with Stata[72] by Data and Statistical Services, Princeton University
Attrition bias
Lee (2009)’s treatment effects bounds. In the case of attrition bias, this method is now the industry standard. Now you can easily do it in Stata with the leebounds command[73]. New
Standard errors
Bootstrapping: See Lecture 4 (pages 6-8) in **Programming** in Stata[74], RLAB Data Service, London School of Economics.
X_OLS[75]: Timothy Conley's standard error correction for spatial correlation. This is the standard way of calculating standard errors in the literature when you use the data where outcomes and regressors are spatially correlated.
Douglas Miller’s Stata code page[76] contains a Stata do file to execute Cameron, Gelbach, and Miller (2008)’s Wild Bootstrap standard error clustering method, which is increasingly popular among applied microeconometric researchers when the number of clusters is small.
Matching estimation
, by Iacus, King, and Porro (2008), for creating a control group whose observables are balanced against the treated group ex ante. Used by Azoulay, Zivin, and Wang (2010)[77].
Matching Estimators ado file[78] by Abadie, Drukker, Herr, and Imbens
Synth[79] by Abadie, Diamond, and Hainmueller --- A method to estimate the treatment effect from observational data when only one unit is treated.
Pair-wise Mahalanobis matching with an optimal greedy algorithm: See page 209 of Bruhn and McKenzie (2009)[80]. This article’s replication data file (click 「Download Data Set」 on this webpage[81]), contains a Stata code for this matching method.
AFTER EACH REGRESSION IS RUN...How to interpret output tables that appear after executing estimation commmands such as summarize, regress, logistic, etc.[82] by UCLA Academic Technology Service
**reformat** ado-file[83], by Sealed Envelop Ltd. - This ado-file is useful when you have tons of fixed-effects (e.g. country dummies) and are interested in coefficients on these dummies.
Stata Class 3[84], by Stas Kolenikov, Duke University - introduces commands after estimation for plotting residuals etc.
From version 10, you can save estimation results in the disk by the command estimates save[85]. As a result, the ESTSAVE[86] ado is no longer necessary to install.
parmest ado-file[87] allows you to create a Stata data file of coefficient estimates along with t-values and p-values. By default, Stata does not store t-values and p-values after regressions. This ado-file is useful if you need to use t-values and/or p-values after each regression is run.
REPORT ESTIMATION RESULTSESTOUT[88] - A great ado-file package to create a table of regression results either in the text file format, in the HTML format, or in the TeX format! It's more versatile than OUTREG2 (see below). It is slightly complicated but it's worth paying the fixed cost of learning how to use. To minimize the fixed cost, follow the following steps:
To install the package, see here[89].
First, learn how to use ESTSTO by reading this[90].
Then, learn how to use ESTTAB by reading this[91].
Only for fancier things to do, you need to learn ESTOUT[92] (the more flexible version of ESTTAB) and ESTADD[93] (the more flexible version of ESTSTO's ADDSCALARS option).
With the ESTOUT package, you can easily **create a summary statistics table**[94]!
The ESTOUT package also allows you to include "YES" or "NO" to indicate whether a certain set of fixed effects are controlled for (a standard practice in labor economics type research). See this document[95].
Generating Regression and Summary Statistics Tables in Stata: A Checklist and Code[96], by Matthew Groh (May, 2014) --- If you prefer creating regression tables in the Excel format.
TABOUT[97] - Seems to be a very useful ado for automating the process of creating any kinds of tables formatted to appear on an academic paper. Example Stata do files mentioned in this tutorial can be downloaded at the author’s website[98].
OUTREG2.ado[99] - An improved version of OUTREG.ado (see below). It's less versatile than ESTOUT, but it's more flexible in producing a TeX file. One problem is that, after fixed effects estimation (areg or xtreg, fe), the nocons option does not work.
How to use **outreg**.ado[100], by Kellogg Research Computing, Northwestern University - probably the most useful explanation of outreg ado file, including the PDF file of outreg help file[101]. When you want to use addstat option for reporting more than 10 statistics, outreg does not work properly. A solution can be found here[102] (Statalist archives). (If you want to further convert the resulting EXCEL file into a LaTeX format, download EXCEL2LATEX[103] here and extract the downloaded zip file into "C:\Documents and Settings\username\Application Data\Microsoft\AddIns" (where "username" is your own username). Then open the Excel and click "Tools - Add-Ins..." and check the box for Excel2Latex. You'll see a new small icon in tool bars. Select the table you want to convert and then click the icon. Now you can create a TeX file of your table.)
How to report multinominal logit regression results with OUTREG[104], by Statalist
GRAPHICSOnline Tutorial for Making Graphs[105] by Stata Corp. - An excellent website in the sense that you can choose the visual image (rather than picking the words like 「bar graphs」, 「scatter plots」, etc.) to learn how to make various types of graph.
How to make various types of **graph**[106] (Follow links below the heading of "Graphics") by UCLA Academic Technology Service - Useful if you want to make the twoway graphs.
BY option for GRAPH command by Stata Help[107] - this is how to make graphs for each category (e.g. country by country).
BINSCATTER[108] - A Stata package written by Michael Stepner, which allows you to create a scatter plot from (literally) millions of observations, by grouping observations into several intervals of the x variable and plotting the average value of the y variable for each group. (HT: David Seim)
**Nonparametric** regression curve in a scatter plot[109] - search for "nonparametric".
Draw kernel density functions for each group in the same graph[110] by UCLA Academic Technology Service
Guide to creating PNG images with Stata[111] by Friedrich Huebler
How to create animated graphics using Stata[112], by Chuck Huber.
How to create a map from Stata[113] by Friedrich Huebler
Drawing social networks in Stata with Netplot[114] by Rense Corten --- if you are analyzing social network data.
PROGRAMMING**Programming** in Stata[115], RLAB Data Service, London School of Economics: these are lecture notes for a Stata course at Department of Economics, LSE. Lectures 3 to 5 deal with how to make your own program with Stata (macro, looping, ado-file, etc.). Very useful.
How to display variable labels: See this Statalist message by Nick Cox on 27 May, 2010[116].
The CAPTURE command is useful when executing a do file, especially when you want to conduct different data processing steps depending on whether there is an error (which can be expressed as 「if _rc==0」 in the Stata code). See the paragraphs below the heading 「If as a Way to Control Program Flow」 in this webpage[117].
How do I run Stata in batch mode? (Stata FAQ)[118]: if you want to run a do file without launching Stata interactively in Unix
TROUBLESHOOTINGIf you always type 「set memory 900m」 after launching Stata because you use a large dataset, read this[119].
If you run Stata on Windows and encounter an error message "op. sys. refuses to provide memory, r(909)", you may want to consider ditching Windows. Here's why[120].
If you encounter an error message "insufficient disk space, r(699)", see this Stata FAQ article[121].
If you encounter a warning message 「Warning: variance matrix is nonsymmetric or highly singular」, see this post in Statalist by Jeff Pitblado of Stata Corp[122].
If you encounter an error message 「could not rename c:\ado\plus\stata.trk to c:\ado\plus\backup.trk r(699);」 when you try to install an ado file by the 「ssc install」 command, read pages 47-48 of Lembcke (2009) 「Introduction to Stata[123]」. Unfortunately, this method does not change the Stata setting permanently. Everytime you use an ado file, you have to do this.
FROM STATA TO OTHER SOFTWARE
Export tables to Excel[124], written by Kevin Crow on The Stata Blog.
How to transform dta file into csv file[125], by UCLA Academic Technology Service. If data contains many decimal places, make sure to use the format command before the outsheet command so that Stata won’t randomly round up values. If you don’t need the top row containing variable names, use the noname option.
Order command[126] by Stata Help - if you want to change the order of variables in the table you create from the Stata dataset.
How to edit Stata graphs in Microsoft Word[127], by Stata FAQ
Stata tools for **Latex**[128], by UCLA Academic Technology Service - for those of you who write empirical papers with LaTeX.
TEXTBOOK EXAMPLESStata commands for examples in **Wooldridge's graduate** level textbook _Econometric Analysis of Cross Section and Panel Data_[129], by UCLA Academic Technology Service
Stata commands for examples in **Wooldridge's undergrad** level textbook _Introductory Econometrics: A Modern Approach_[130], by Boston College Academic Technology Support
Stata commands for **Greene'**s textbook _Econometric Analysis_ (4th ed.)[131], by UCLA Academic Technology Service
Accessible readings behind Stata commandsIVREG2
Murray, Michael P. (2006) "Avoiding Invalid Instruments and Coping with Weak Instruments," Journal of Economic Perspectives, 20(4), p. 128.
CLUSTER option for REGRESS
Deaton (1997) The Analysis of Household Surveys, pp.74-77.
Bertrand et al. (2004) "How Much Should We Trust Differences-in-differences Estimates?," Quarterly Journal of Economics, vol.119, p.271.
KDENSITY
Deaton (1997) The Analysis of Household Surveys, pp.171-76.
The following websites may or may not be useful (I haven't checked them yet):Tips for using Stata 10[132], by Survey Design and Analysis Services Pty Ltd
Roger Newson's Stata ado files[133]
Useful Links[134] by Kellogg Research Computing, Northwestern University
Stata materials[135] by Stas Kolenikov, Duke University - includes very graphically well-presented Stata course notes.
Stata ado files by Sealed Envelope Ltd.[136]
Stata Tutorial at University of Essex[137]
Eszter Hargittai's Stata Goodies Page[138]
[Stata resources developed by Johannes Schmieder](
文中連結[1]Masayuki Kudamatsu's website: https://sites.google.com/site/mkudamatsu/home
[2]Code and Data for the Social Sciences: A Practitioner’s Guide.: http://web.stanford.edu/~gentzkow/research/CodeAndData.pdf
[3]Stata Cheetsheets: http://geocenter.github.io/StataTraining/portfolio/01_resource/
[4]Marc Bellemare: http://marcfbellemare.com/wordpress/11871
[5]Introduction to Stata: http://personal.lse.ac.uk/lembcke/ecStata/2009/MResStataNotesJan2009PartA.pdf
[6]Advanced Stata Topics: http://personal.lse.ac.uk/lembcke/ecStata/2009/MResStataNotesFeb2009PartB.pdf
[7]Advanced Stata Topics: http://personal.lse.ac.uk/lembcke/ecStata/2009/MResStataNotesFeb2009PartB.pdf
[8]Using Stata to Analyze Survey Data by Nicholas Minot (IFPRI): http://ifpri.org/training/material/computerapps/material_stata.asp
[9]Microeconometrics: Methods and Applications: http://cameron.econ.ucdavis.edu/musbook/mus.html
[10]Stata Tutorial: http://data.princeton.edu/stata/default.html
[11]Stata Tutorial: http://www.cpc.unc.edu/research/tools/data_analysis/statatutorial
[12]Stata Starter Kit: http://www.ats.ucla.edu/stat/stata/sk/
[13]What Stata can/can't do: http://cameron.econ.ucdavis.edu/stata/sttips.html
[14]In Stata coding, Style is the Essential: A brief commentary on do-file style: https://michaelshill.net/2015/07/31/in-stata-coding-style-is-the-essential/
[15]Stata Tutorial by Carolina Population Center, University of South Carolina: http://www.cpc.unc.edu/services/computer/presentations/statatutorial/example18.html
[16]An Introduction to Stata by Aimee Chin at MIT: http://mit.edu/14.33/www/stata_A.html
[17]Stata section of Guide to Genetic Analysis by Centre for Integrated Genomic Medical Research: http://slack.ser.man.ac.uk/progs/stata/do_files.html
[18]Using external text editors to write do files: http://huebler.blogspot.com/2005/03/integrating-stata-and-external-text.html
[19]RA Manual Notes on Writing Code: http://faculty.chicagobooth.edu/matthew.gentzkow/research/ra_manual_coding.pdf
[20]Stata help for timer: http://www.stata.com/help.cgi?timer
[21]Stata Help: statamp: http://www.stata.com/help.cgi?statamp
[22]this website: http://library.syr.edu/information/mgi/nds/resources/geekspeak.html
[23]Stata Help infiling: http://www.stata.com/help.cgi?infiling
[24]import excel: http://www.stata.com/help.cgi?import+excel
[25]this blog entry: http://enoriver.net/index.php/2008/10/01/getting-data-into-stata-odbc-load/
[26]a useful ado program named USE10: http://www.stata.com/statalist/archive/2008-10/msg00477.html
[27]usespss: http://statadaily.wordpress.com/2010/09/04/reading-spps-data-file-into%C2%A0stata/
[28]David McKenzie: http://blogs.worldbank.org/impactevaluations/blog-links-april-11-measuring-personality-revising-gdp-behavioral-econ-and-more
[29]Stata Help for data_type: http://www.stata.com/help.cgi?data_types
[30]Stata: How to Write a Dictionary Program to Read Raw Data: http://www.columbia.edu/acis/eds/stat_pak/stata/stata-write.html
[31]Stata: How to Write a Dictionary Program to Read Raw Data: http://www.columbia.edu/acis/eds/stat_pak/stata/stata-write.html
[32]World Fertility Surveys: http://opr.princeton.edu/archive/wfs/
[33]Stata: How to Read Hierarchical Files in Stata: http://www.columbia.edu/acis/eds/stat_pak/stata/hier.html
[34]the INPUT command: http://www.stata.com/help.cgi?input
[35]Append Many Files: http://www.ats.ucla.edu/stat/stata/faq/append_many_files.htm
[36]Using Stata's RESHAPE command: http://einstein.library.emory.edu/reshaping.shtml
[37]Stata Help on ISID: http://www.stata.com/help.cgi?isid
[38]Stata Tutorial Part 4: Manipulating Files: http://library.syr.edu/information/mgi/nds/software/stata/
[39]How to create dummy variables: http://www.stata.com/support/faqs/data/dummy.html
[40]Create a new dataset by hand: http://www.cpc.unc.edu/services/computer/presentations/statatutorial/example1.html
[41]List of math functions by Stata Help: http://www.stata.com/help.cgi?math+functions
[42]List of operators: http://www.stata.com/help.cgi?operators
[43]Date variables: http://dss.princeton.edu/online_help/analysis/time_series_data.htm
[44]xtile: http://www.stata.com/help.cgi?xtile
[45]this Statalist message: http://www.stata.com/statalist/archive/2005-08/msg00751.html
[46]UNIQUE: Stata module to report number of unique values in variable(s): http://ideas.repec.org/c/boc/bocode/s354201.html
[47]REGEXM: http://www.stata.com/help.cgi?regexm%28%29
[48]Loop over all values of a particular variable: http://www.stata.com/support/faqs/data-management/try-all-values-with-foreach/
[49]ESTPOST: http://repec.org/bocode/e/estout/estpost.html
[50]Using Stata for Survey Data Analysis: http://ifpri.org/training/material/computerapps/material_stata.asp
[51]How to conduct a t-test for survey data: http://www.ats.ucla.edu/stat/stata/faq/svyttest.htm
[52]how to use the SVY command: http://www.ats.ucla.edu/stat/stata/faq/svy_introsurvey.htm
[53]Generating Regression and Summary Statistics Tables in Stata: A Checklist and Code: http://blogs.worldbank.org/impactevaluations/generating-regression-and-summary-statistics-tables-stata-checklist-and-code
[54]MAT2TXT: http://ideas.repec.org/c/boc/bocode/s437601.html
[55]Overview of Stata estimation commands: http://www.stata-press.com/manuals/stata8/est.pdf
[56]Stata Textbook Examples: Econometric Analysis of Cross Section and Panel Data by Jeffrey M. Wooldridge: http://www.ats.ucla.edu/stat/stata/examples/eacspd/default.htm
[57]Beyond simple OLS estimation: http://www.ats.ucla.edu/stat/stata/webbooks/reg/chapter4/statareg4.htm
[58]in Stata 10: http://www.stata.com/stata10/paneldata.html
[59]in Stata 11: http://www.stata.com/stata11/pdmixed.html
[60]Fixed Effects Estimation (xtreg command with fe option): http://www.stata.com/support/faqs/stat/xtreg2.html
[61]Differences among within, between, and overall R-squared obtained by the xtreg, fe command: http://www.stata.com/statalist/archive/2006-08/msg00399.html
[62]R squared in Fixed Effects Estimation: http://www.stata.com/support/faqs/stat/xtr2.html
[63]this note: http://kb.iu.edu/data/auur.html
[64]read this: http://www.stata.com/statalist/archive/2008-02/msg00518.html
[65]the XTPCSE command: http://www.stata.com/help.cgi?xtpcse
[66]Rohlfs et al (2010): https://doi.org/10.1016/j.jdeveco.2008.11.005
[67]Weighted Least Squares when the variance of the error term is known: http://www.stata.com/help.cgi?vwls
[68]Choosing the Correct Weight Syntax: http://www.cpc.unc.edu/services/computer/presentations/statatutorial/example30.html
[69]pweight, fweight, aweight, and iweight: http://www.stata.com/help.cgi?weight
[70]Weighted Least Squares Regression: http://www.ats.ucla.edu/stat/stata/ado/analysis/wls0.htm
[71]as explained by SSCC at University of Wisconsin-Madison: http://www.ssc.wisc.edu/sscc/pubs/stata_margins.htm
[72]How to conduct an event study estimation with Stata: http://dss.princeton.edu/online_help/analysis/event_studies.htm
[73]the leebounds command: http://www.stata.com/meeting/germany12/abstracts/desug12_tauchmann.pdf
[74]Programming in Stata: http://rlab.lse.ac.uk/data/stata_info/training.asp
[75]X_OLS: http://economics.uwo.ca/faculty/conley/code_gmm.html
[76]Douglas Miller’s Stata code page: http://www.econ.ucdavis.edu/faculty/dlmiller/statafiles/
[77]Azoulay, Zivin, and Wang (2010): https://doi.org/10.1162/qjec.2010.125.2.549
[78]Matching Estimators ado file: http://emlab.berkeley.edu/users/imbens/estimators.shtml
[79]Synth: http://www.people.fas.harvard.edu/~jhainm/software.htm
[80]Bruhn and McKenzie (2009): https://doi.org/10.1257/app.1.4.200
[81]this webpage: http://www.aeaweb.org/articles.php?doi=10.1257/app.1.4.200
[82]How to interpret output tables that appear after executing estimation commmands such as summarize, regress, logistic, etc.: http://www.ats.ucla.edu/stat/stata/output/
[83]reformat ado-file: http://www.sealedenvelope.com/stata_ref.php
[84]Stata Class 3: http://www.duke.edu/~skolenik/class3.html
[85]the command estimates save: http://www.stata.com/stata10/savedresults.html
[86]ESTSAVE: http://ideas.repec.org/c/boc/bocode/s435601.html
[87]parmest ado-file: http://www.cpc.unc.edu/research/tools/data_analysis/statatutorial/misc/parmest
[88]ESTOUT: http://repec.org/bocode/e/estout/index.html
[89]see here: http://repec.org/bocode/e/estout/installation.html
[90]reading this: http://repec.org/bocode/e/estout/eststo.html
[91]reading this: http://repec.org/bocode/e/estout/esttab.html
[92]ESTOUT: http://repec.org/bocode/e/estout/estout.html
[93]ESTADD: http://repec.org/bocode/e/estout/estadd.html
[94]create a summary statistics table: http://repec.org/bocode/e/estout/advanced.html#advanced600
[95]See this document: http://repec.org/bocode/e/estout/advanced.html#advanced006
[96]Generating Regression and Summary Statistics Tables in Stata: A Checklist and Code: http://blogs.worldbank.org/impactevaluations/generating-regression-and-summary-statistics-tables-stata-checklist-and-code
[97]TABOUT: http://www.ianwatson.com.au/stata/tabout_tutorial.pdf
[98]the author’s website: http://www.ianwatson.com.au/stata.html
[99]OUTREG2.ado: http://ideas.repec.org/c/boc/bocode/s456416.html
[100]How to use outreg.ado: http://www.kellogg.northwestern.edu/researchcomputing/stata-outreg.htm
[101]the PDF file of outreg help file: http://www.kellogg.northwestern.edu/researchcomputing/docs/outreg.pdf
[102]here: http://www.stata.com/statalist/archive/2003-02/msg00597.html
[103]EXCEL2LATEX: http://www.jam-software.com/freeware/index.shtml#excel2latex
[104]How to report multinominal logit regression results with OUTREG: http://www.stata.com/statalist/archive/2005-03/msg00442.html
[105]Online Tutorial for Making Graphs: http://www.stata.com/support/faqs/graphics/gph/statagraphs.html
[106]How to make various types of graph: http://www.ats.ucla.edu/stat/stata/modules/
[107]BY option for GRAPH command by Stata Help: http://www.stata.com/help.cgi?by_option
[108]BINSCATTER: http://michaelstepner.com/binscatter/
[109]Nonparametric regression curve in a scatter plot: http://www.ats.ucla.edu/stat/stata/examples/ara/arastata2.htm
[110]Draw kernel density functions for each group in the same graph: http://www.ats.ucla.edu/STAT/stata/faq/eq_dist.htm
[111]Guide to creating PNG images with Stata: http://huebler.blogspot.com/2005/04/creating-png-images-with-stata.html
[112]How to create animated graphics using Stata: http://blog.stata.com/2014/03/24/how-to-create-animated-graphics-using-stata/
[113]How to create a map from Stata: http://huebler.blogspot.com/2005/11/creating-maps-with-stata.html
[114]Drawing social networks in Stata with Netplot: http://www.rensecorten.dds.nl/index.php/2010/04/drawing-social-networks-in-stata-with-netplot/
[115]Programming in Stata: http://rlab.lse.ac.uk/data/stata_info/training.asp
[116]this Statalist message by Nick Cox on 27 May, 2010: http://www.stata.com/statalist/archive/2010-05/msg01455.html
[117]this webpage: http://www.ssc.wisc.edu/sscc/pubs/4-15.htm
[118]How do I run Stata in batch mode? (Stata FAQ): http://www.stata.com/support/faqs/unix/batch.html
[119]this: http://www.stata.com/support/faqs/data/setmemory1.html
[120]Here's why: http://www.stata.com/support/faqs/win/winmemory.html
[121]this Stata FAQ article: http://www.stata.com/support/faqs/data/statatmp.html
[122]this post in Statalist by Jeff Pitblado of Stata Corp: http://www.stata.com/statalist/archive/2007-05/msg00337.html
[123]Introduction to Stata: http://personal.lse.ac.uk/lembcke/ecStata/2009/MResStataNotesJan2009PartA.pdf
[124]Export tables to Excel: http://blog.stata.com/2013/09/25/export-tables-to-excel/
[125]How to transform dta file into csv file: http://www.ats.ucla.edu/stat/stata/faq/outsheet.htm
[126]Order command: http://www.stata.com/help.cgi?order
[127]How to edit Stata graphs in Microsoft Word: http://www.stata.com/support/faqs/win/editgraph.html
[128]Stata tools for Latex: http://www.ats.ucla.edu/stat/stata/latex/default.htm
[129]Stata commands for examples in Wooldridge's graduate level textbook Econometric Analysis of Cross Section and Panel Data: http://www.ats.ucla.edu/stat/stata/examples/eacspd/default.htm
[130]Stata commands for examples in Wooldridge's undergrad level textbook Introductory Econometrics: A Modern Approach: http://fmwww.bc.edu/gstat/examples/wooldridge/wooldridge.html
[131]Stata commands for **Greene'**s textbook Econometric Analysis (4th ed.): http://www.ats.ucla.edu/stat/stata/examples/greene/default.htm
[132]Tips for using Stata 10: http://survey-design.com.au/tips.html
[133]Roger Newson's Stata ado files: http://www.imperial.ac.uk/nhli/r.newson/stata.htm
[134]Useful Links: http://www.kellogg.northwestern.edu/researchcomputing/stata.htm#links
[135]Stata materials: http://www.duke.edu/~skolenik/
[136]Stata ado files by Sealed Envelope Ltd.: http://www.sealedenvelope.com/stata.php
[137]Stata Tutorial at University of Essex: http://www.essex.ac.uk/economics/talif-stata/Navigation.htm
[138]Eszter Hargittai's Stata Goodies Page: http://www.eszter.com/stata.html