The First Time Starting Stata Setting up your screen Your first analysis Do-files Exiting Stata Working with Do-Files From interactive work to working with a do-file Designing do-files Organizing your work The Grammar of Stata The elements of Stata commands Repeating similar commands Weights General Comments on the Statistical Commands Regular statistical commands Estimation commands Creating and Changing Variables The commands generate and replace Specialized recoding commands Recoding string variables Recoding date and time Setting missing values Labels Storage types, or the ghost in the machine Creating and Changing Graphs A primer on graph syntax Graph types Graph elements Multiple graphs Saving and printing graphs Describing and Comparing Distributions Categories: Few or many? Variables with few categories Variables with many categories Statistical Inference Random samples and sampling distributions Descriptive inference Causal inference Introduction to Linear Regression Simple linear regression Multiple regression Regression diagnostics Model extensions Reporting regression results Advanced techniques Regression Models for Categorical Dependent Variables The linear probability model Basic concepts Logistic regression with Stata Logistic regression diagnostics Likelihood-ratio test Refined models Advanced techniques Reading and Writing Data The goal: The data matrix Importing machine-readable data Inputting data Combining data Saving and exporting data Handling big datasets Do-Files for Advanced Users and User-Written Programs Two examples of usage Four programming tools User-written Stata commands Around Stata Resources and information Taking care of Stata Additional procedures References Author Index Subject Index Exercises appear at the end of each chapter.