Figures |
|
x | |
Preface |
|
xiii | |
Getting Started |
|
1 | (4) |
|
|
2 | (1) |
|
|
3 | (2) |
Chapter 1 Introduction to Stata |
|
5 | (10) |
|
Commands Covered: describe; codebook varname; set more off; File->Log->Begin; search keyword; help command_name; which package_name; ssc install package_name |
|
|
|
Obtaining Information about a Dataset |
|
|
5 | (2) |
|
Obtaining Information about Variables |
|
|
7 | (1) |
|
Creating and Viewing a Log File |
|
|
8 | (1) |
|
Printing Results and Copying Output |
|
|
9 | (1) |
|
|
10 | (2) |
|
Installing Statistical Modules |
|
|
12 | (1) |
|
|
13 | (1) |
|
|
13 | (2) |
Chapter 2 Descriptive Statistics |
|
15 | (28) |
|
Commands Covered: tabulate varname; summarize varname, detail; sktest varname; histogram varname, d percent; histogram varname, percent; sort varname; list varname; The Graph Editor Recorder |
|
|
|
Interpreting Measures of Central Tendency and Variation |
|
|
15 | (1) |
|
Describing Nominal Variables |
|
|
16 | (1) |
|
Describing Ordinal Variables |
|
|
17 | (2) |
|
Describing Interval Variables |
|
|
19 | (3) |
|
Obtaining Bar Charts and Histograms |
|
|
22 | (1) |
|
|
23 | (6) |
|
A Closer Look: Graph Editor Recorder |
|
|
28 | (1) |
|
|
29 | (3) |
|
Obtaining Case-level Information with sort and list |
|
|
32 | (1) |
|
|
33 | (9) |
|
|
42 | (1) |
Chapter 3 Transforming Variables |
|
43 | (16) |
|
Commands Covered: recode, generate ( ); generate, recode( ); xtile, nquantiles ( ); generate; tabulate, generate ( ); label variable; label define; label values; drop; aorder |
|
|
|
A Workbook Convention: Weighting the nes2008 Dataset |
|
|
44 | (1) |
|
Transforming Categorical Variables |
|
|
44 | (2) |
|
Transforming Interval Variables |
|
|
46 | (4) |
|
A Closer Look: The xtile Command |
|
|
48 | (2) |
|
The label define and label values Commands |
|
|
50 | (1) |
|
Creating an Additive Index |
|
|
51 | (2) |
|
Creating Indicator Variables |
|
|
53 | (1) |
|
|
54 | (4) |
|
|
58 | (1) |
Chapter 4 Making Comparisons |
|
59 | (34) |
|
Commands Covered: tabulate dep_var indep_var, column; tabulate indep_var; summarize (dep_var); format; _gwtmean, dep_var_mean=dep_var [ if], by (indep_var); if; twoway (line dep_var indep_var; sort); replace; graph bar (mean) dep_var, over (indep_var) |
|
|
|
Cross-tabulation Analysis |
|
|
59 | (2) |
|
|
61 | (1) |
|
Visualizing Relationships with Line Charts and Bar Charts |
|
|
62 | (1) |
|
A Closer Look: The format Command |
|
|
63 | (1) |
|
Graphing an Interval-level Dependent Variable |
|
|
63 | (7) |
|
A Closer Look: The if Qualifier |
|
|
65 | (5) |
|
Graphing a Categorical Dependent Variable |
|
|
70 | (3) |
|
A Closer Look: The replace Command |
|
|
71 | (2) |
|
|
73 | (17) |
|
|
90 | (3) |
Chapter 5 Making Controlled Comparisons |
|
93 | (28) |
|
Commands Covered: bysort cntrl_var: tabulate dep_var indep_var; col; tabulate cntrl_var indep_var, summarize (dep_var); graph bar dep_var; over (cntrl_var) over (indep_var); twoway (line dep_var indep_var if cntrl_var==value1, sort) (line dep_var indep_var if cntrl_var==value2, sort) |
|
|
|
Cross-tabulation Analysis with a Control Variable |
|
|
94 | (3) |
|
Bar Charts for Controlled Comparisons with a Categorical Dependent Variable |
|
|
97 | (3) |
|
Mean Comparison Analysis with a Control Variable |
|
|
100 | (3) |
|
Line Charts for Controlled Comparisons with an Interval-level Dependent Variable |
|
|
103 | (3) |
|
|
106 | (13) |
|
|
119 | (2) |
Chapter 6 Making Inferences about Sample Means |
|
121 | (16) |
|
Commands Covered: ttest varname = testvalue; ttest varname, by(group_var); robvar varname, by(group_var) |
|
|
|
|
122 | (5) |
|
Testing the Difference between Two Sample Means |
|
|
127 | (5) |
|
|
132 | (3) |
|
|
135 | (2) |
Chapter 7 Chi-square and Measures of Association |
|
137 | (20) |
|
Commands Covered: (tabulate option) chi2; (tabulate option) V; somersd indep_var dep_var; lambda dep_var indep_var |
|
|
|
Analyzing Ordinal-level Relationships |
|
|
138 | (5) |
|
Analyzing Nominal-level Relationships |
|
|
143 | (2) |
|
|
145 | (1) |
|
|
146 | (9) |
|
|
155 | (2) |
Chapter 8 Correlation and Linear Regression |
|
157 | (18) |
|
Commands Covered: correlate varlist; regress dep_var indep_var(s); twoway (scatter dep_var indep_var) dep_var indep_var) |
|
|
|
The correlate Command and the regress Command |
|
|
157 | (3) |
|
A Closer Look: R-squared and Adjusted R-squared: What's the Difference? |
|
|
159 | (1) |
|
Creating a Scatterplot with a Linear Prediction Line |
|
|
160 | (3) |
|
Exploring Multivariate Relationships with Regression |
|
|
163 | (2) |
|
|
165 | (8) |
|
|
173 | (2) |
Chapter 9 Dummy Variables and Interaction Effects |
|
175 | (18) |
|
Commands Covered: xi: regression dep_var; i.indep_var; char varname [ omit] #; test varname1 = varname2; predict newvar |
|
|
|
Regression with Dummy Variables |
|
|
175 | (5) |
|
A Closer Look: The test Command |
|
|
178 | (2) |
|
Interaction Effects in Multiple Regression |
|
|
180 | (3) |
|
Graphing Linear Prediction Lines for Interaction Relationships |
|
|
183 | (3) |
|
|
186 | (6) |
|
|
192 | (1) |
Chapter 10 Logistic Regression |
|
193 | (22) |
|
Commands Covered: logit dep_var indep_var(s); logistic dep_var indep_var(s), [ -coef]; estimates store name; Irtest name, force; adjust indep_var1, by(indep_var2) pr gen(newvar); quietly; tabstat dep_var1 dep_var 2, by(indep_var) |
|
|
|
The logit Command and the logistic Command |
|
|
194 | (3) |
|
Logistic Regression with Multiple Independent Variables |
|
|
197 | (3) |
|
A Closer Look: The estimates Command and the lrtest Command |
|
|
199 | (1) |
|
Working with Predicted Probabilities: Models with One Independent Variable |
|
|
200 | (3) |
|
Working with Predicted Probabilities: Models with Multiple Independent Variables |
|
|
203 | (5) |
|
|
208 | (5) |
|
|
213 | (2) |
Chapter 11 Doing Your Own Political Analysis |
|
215 | (12) |
|
|
215 | (2) |
|
|
216 | (1) |
|
Economic Performance and Election Outcomes |
|
|
216 | (1) |
|
State Courts and Criminal Procedure |
|
|
216 | (1) |
|
Electoral Turnout in Comparative Perspective |
|
|
217 | (1) |
|
|
217 | (1) |
|
|
217 | (6) |
|
|
217 | (1) |
|
|
218 | (3) |
|
PDF Format or Hand-coded Data |
|
|
221 | (2) |
|
|
223 | (3) |
|
|
225 | (1) |
|
|
225 | (1) |
|
Data, Hypotheses, and Analysis |
|
|
225 | (1) |
|
Conclusions and Implications |
|
|
226 | (1) |
|
|
226 | (1) |
Appendix |
|
|
Table A-1 Descriptions of Constructed Variables in gss2006 |
|
|
227 | (3) |
|
Table A-2 Descriptions of Variables in the states Dataset |
|
|
230 | (5) |
|
Table A-3 Descriptions of Variables in the world Dataset |
|
|
235 | |