21
Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007

Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

  • Upload
    leanh

  • View
    218

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Rapid formation of regression tables for research purposes

Roy WadaUCLA/RANDOctober 2007

Page 2: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Reasons for Regression Tables

• Regression tables are apparently produced for journal publication– “formats it as in journal articles ”

John Gallup’s –outreg–– “pretty looking publication-style regression

tables”Ben Jann’s –estout–

– “publication quality tables”Ian Watson –tabout–

Page 3: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Reasons for Regression Tables

• How many regression tables do you publish?

• How often do you publish anyway?• Why does it attract so much attention from

Stata users?

Page 4: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Reasons for Regression Tables

• Log files are serially produced• Researchers have traditionally printed log

files and flipped them back-and-forth

Page 5: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Example of Log File

Page 6: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Reasons for Regression Tables

• Regression tables facilitates analysis by placing outputs next to each other– Robustness of results– (Mis)specification check– Testing for collinearity

Page 7: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Regression Output: –reg–

Page 8: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Regression Table: -shellout-

Page 9: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Regression Output: –reg3–

Page 10: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Regression Table: –seeout–

Page 11: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Regression Tables asInformation Management tool

• Improperly formatted Information is less useful than properly formatted one

• Management aspects of information with respect to regression tables– Storage– Interface (delivery to end-user)

• Access• Display

Page 12: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Regression Tables:Storage Aspect

• Traditional log files

Stata

ExternalLog files

Active estimates

Page 13: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Regression Tables:Storage Aspect

• John Gallup’s -outreg-

Stata

ExternalStored text files

Active estimates

Page 14: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Regression Tables:Storage Aspect

• Estimates and Mata (post-Stata 8/Stata 9)

Stata External

Mata

Estimates

Active estimatesStored text files

Page 15: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Regression Tables:Storage Aspect

• Estimates and Mata (post-Stata 8/Stata 9)

Stata External

Mata

Estimates

Active estimatesStored text files

Page 16: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Regression Tables:Interface Aspect

• Display– Wrapping text problem– Publication-quality tables are not always the

best for analysis (finger pointing)• Access

– Automated (least involvement by users)– External compatibility

Page 17: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Regression Tables:-outreg2- based on -outreg-

• Display– Automatically formatted display (digits, stars)– Spreadsheet format in -seeout- and -shellout-

• Access– Single command driven– One click hypertext– Excel, Word, LaTex, Text– Prefix command and stored options

Page 18: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Regression Table: –seeout–

Page 19: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Regression Table: -shellout-

Page 20: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Regression Tables:-outreg2-

Page 21: Rapid formation of regression tables for research …fm · Rapid formation of regression tables for research purposes Roy Wada UCLA/RAND October 2007. ... – Excel, Word, LaTex,

Regression Tables:Future Development

• Rethinking about traditional OLS display– Sum of Squares, test of F-statistics (Prob > F), 95%

Confidence Intervals• Automatic storage and production of regression

tables• Complicated command is no automation at all

(easier to do it by hand!!)• Spreadsheet-style interface dedicated to

regression outputs/tables• Mata-based programming