Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Stata: Basics, Shortcuts, and Integration with Introduction LaTeX - - PowerPoint PPT Presentation
Stata: Basics, Shortcuts, and Integration with Introduction LaTeX - - PowerPoint PPT Presentation
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Stata: Basics, Shortcuts, and Integration with Introduction LaTeX Stata Syntax and Shortcuts LaTeX Integration Nathan Blascak Temple University September 24, 2014
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Outline
1 Introduction 2 Stata Syntax and Shortcuts 3 LaTeX Integration
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Introduction
First step: import your data
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Introduction
First step: import your data File Import Choose file type
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Introduction
Viewing data
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Introduction
Viewing data
Type browse
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Introduction
Viewing data
Type browse
Summary statistics
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Introduction
Viewing data
Type browse
Summary statistics
Type summarize
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Introduction
Viewing data
Type browse
Summary statistics
Type summarize
Standard OLS regression
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Introduction
Viewing data
Type browse
Summary statistics
Type summarize
Standard OLS regression
Type regress dep variable dep variables
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Syntax and Shortcuts
All commands available from pull-down menus
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Syntax and Shortcuts
All commands available from pull-down menus Quicker to use the actual commands in the Command window for many procedures
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Syntax and Shortcuts
The ‘if’ operator
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Syntax and Shortcuts
The ‘if’ operator The ‘&’ operator
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Syntax and Shortcuts
The ‘if’ operator The ‘&’ operator The ‘|’ operator
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Syntax and Shortcuts
Generating variables
using the ‘by’ command
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Syntax and Shortcuts
Generating variables
using the ‘by’ command using the leads/lags operators
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Syntax and Shortcuts
Generating variables
using the ‘by’ command using the leads/lags operators
Other useful syntax:
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Syntax and Shortcuts
Generating variables
using the ‘by’ command using the leads/lags operators
Other useful syntax:
, nolog option
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Syntax and Shortcuts
Generating variables
using the ‘by’ command using the leads/lags operators
Other useful syntax:
, nolog option quielty: command
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Syntax and Shortcuts
Generating variables
using the ‘by’ command using the leads/lags operators
Other useful syntax:
, nolog option quielty: command set more off
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Exporting Stata Tables to LaTex
Can install package to export estimation results to LaTeX
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Exporting Stata Tables to LaTex
Can install package to export estimation results to LaTeX Not perfect, but a big time saver
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Exporting Stata Tables to LaTex
Can install package to export estimation results to LaTeX Not perfect, but a big time saver Installation:
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Exporting Stata Tables to LaTex
Can install package to export estimation results to LaTeX Not perfect, but a big time saver Installation:
use the SSC command in Stata (will download from the web)
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Exporting Stata Tables to LaTex
Can install package to export estimation results to LaTeX Not perfect, but a big time saver Installation:
use the SSC command in Stata (will download from the web) command: ssc install estout, replace
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Exporting Stata Tables to LaTex
Can install package to export estimation results to LaTeX Not perfect, but a big time saver Installation:
use the SSC command in Stata (will download from the web) command: ssc install estout, replace type directly in the Command window
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Using the esttab command
Requires saved results using the estimate store name post-estimation command
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Using the esttab command
Requires saved results using the estimate store name post-estimation command command:
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Using the esttab command
Requires saved results using the estimate store name post-estimation command command:
esttab name using file name.tex, options
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Using the esttab command
Requires saved results using the estimate store name post-estimation command command:
esttab name using file name.tex, options
Will produce a clickable link in the Command window
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Using the esttab command
Available options:
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Using the esttab command
Available options:
b(#) - number of significant digits on coefficients
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Using the esttab command
Available options:
b(#) - number of significant digits on coefficients se(#) - number of significant digits on standard errors
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Using the esttab command
Available options:
b(#) - number of significant digits on coefficients se(#) - number of significant digits on standard errors replace starlevels() - choose how denote significant results
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Using the esttab command
Available options:
b(#) - number of significant digits on coefficients se(#) - number of significant digits on standard errors replace starlevels() - choose how denote significant results title - create a title for the table
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration
Using the esttab command
Available options:
b(#) - number of significant digits on coefficients se(#) - number of significant digits on standard errors replace starlevels() - choose how denote significant results title - create a title for the table stats(N r2) - choose what summary statistics to display
Stata: Basics, Shortcuts, and Integration with LaTeX Nathan Blascak Introduction Stata Syntax and Shortcuts LaTeX Integration