{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

public - Making Working Publication-style Tables in Stata...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 Making Working & Publication-style Tables in Stata See also the course’s documents ‘Making Contingency Tables in Stata’ and ‘Editing Stata estab and outreg2 Tables in MS-Word’. Gary Klass, “How to Construct Bad Charts and Graphs” http://lilt.ilstu.edu/gmklass/pos138/datadisplay/badchart.htm Gary Klass, “Presenting Data: Tabular and graphic display of social indicators” http://lilt.ilstu.edu/gmklass/pos138/datadisplay/ Jon Kolko, “Edward Tufte” (on principles of data presentation) http://facultypages.scad.edu/~jkolko/_IACT370_InformationArchitecture/IACT370_0 5_TuftePrinciples.pdf Note: Copying tables directly from the Stata Results-window to MS-Word works well if MS-Word is formatted to display Courier 11 point or less (which is a fixed-space font). If necessary you can then change to a proportionally spaced font (such as Times New Roman) in MS-Word, but doing so may involve considerable formatting (see the course web document ‘Editing estab and outreg2 Tables in MS-Word’). Here are examples of Stata table-making commands, which you can obtain by using ‘findit,’ ‘help,’ Stata listserv, ‘UCLA Resources for Learning Stata’, and ‘ssc whatsnew.’ § tabstat, statsmat, tablemat, fsum, and tabform: summary tables (see also ‘findit …’ for svytabs and svytabform). § tabout: publication-style summary and contingency tables (see also svytabs and svytabform). § mkcorr, corrtab, and makematrix: publication-style correlation matrices. § The combination of eststo and esttab (which is a spin-off from estout; see below): not only displays publication-style regression tables in the Stata results window, but also can directly produce them in Word or Excel, and output them to LaTeX. § outreg2: can directly create regression tables in Word or Excel, and output them to LaTeX. Formatting ‘by group’: By-group as row variable Ave. Income % Poverty Community1 12,636 34.3 Community2 15,151 31.1 Community3 16,204 29.5
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
2 By-group as column variable Community1 Community 2 Community 3 Ave. income 12,236 15,151 16,204 % poverty 34.3% 31.1% 29.5% § tabstat help tabstat tabstat read write math science, stats(mean med sd min max) format(%9.2f) tabstat read write math science, stats(mean med sd min max) format(%9.2f) col(stats) tabstat read write math science, stats(mean med sd min max) format(%9.2f) by(female) col(stats) Note: ‘semean’ displays standard error, ‘cv’ displays coefficient of variation. § statsmat (findit & download; basically the same as tabstat, but displays & exports table as matrix) findit statsmat help statsmat statsmat science, by(female) f(%9.0f) s(n min q max) matrix(m1) statsmat science, by(female) f(%9.0f) s(n min q max) xpose matrix(m2) § tablemat (findit & download; permits more flexible use of by-variables and labeling than tabstat & statsmat; displays the same statistics as tabstat, but displays only one statistic at a time) findit tablemat help tablemat tablemat read write math, st(mean) by(ses) name(table) format(%9.2f) tablemat read write math, st(mean) by(female ses prog) name(table) format(%9.2f) § fsum (findit & download; permits display of # missing & lower-upper confidence intervals, which tabstat, statsmat, & tablemat do not) findit fsum help fsum fsum read write math, s(n miss mean sd lci uci) format(%9.2f)
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern