Download Introduction to Stata
Transcript
Combining and dividing variables...................................................................................................................... 27 Dummy variables ................................................................................................................................................ 28 Lags and leads .................................................................................................................................................... 29 CLEANING THE DATA ............................................................................................................................................... 30 Fillin and expand................................................................................................................................................ 30 Interpolation and extrapolation .......................................................................................................................... 30 Splicing data from an additional source ............................................................................................................ 31 PANEL DATA MANIPULATION: LONG VERSUS WIDE DATA SETS .............................................................................. 31 Reshape .............................................................................................................................................................. 32 ESTIMATION............................................................................................................................................................ 34 DESCRIPTIVE GRAPHS .............................................................................................................................................. 34 ESTIMATION SYNTAX ............................................................................................................................................... 37 WEIGHTS AND SUBSETS............................................................................................................................................ 37 LINEAR REGRESSION ................................................................................................................................................ 38 POST-ESTIMATION .................................................................................................................................................... 41 Prediction ........................................................................................................................................................... 41 Hypothesis testing ............................................................................................................................................... 41 Extracting results................................................................................................................................................ 43 OUTREG2 – the ultimate tool in Stata/Latex or Word friendliness? ................................................................. 44 EXTRA COMMANDS ON THE NET ............................................................................................................................... 45 Looking for specific commands .......................................................................................................................... 45 Checking for updates in general ......................................................................................................................... 46 Problems when installing additional commands on shared PCs ........................................................................ 47 Exporting results “by hand” .............................................................................................................................. 48 CONSTRAINED LINEAR REGRESSION ......................................................................................................................... 50 DICHOTOMOUS DEPENDENT VARIABLE .................................................................................................................... 50 PANEL DATA ............................................................................................................................................................ 51 Describe pattern of xt data ................................................................................................................................. 51 Summarize xt data .............................................................................................................................................. 52 Tabulate xt data .................................................................................................................................................. 53 Panel regressions ............................................................................................................................................... 53 TIME SERIES DATA ................................................................................................................................................... 56 Stata Date and Time-series Variables ................................................................................................................ 56 Getting dates into Stata format ........................................................................................................................... 57 Using the time series date variables ................................................................................................................... 58 Making use of Dates ........................................................................................................................................... 59 Time-series tricks using Dates ............................................................................................................................ 59 SURVEY DATA .......................................................................................................................................................... 61 Page 3 of 61