Soc 593 Statistics II
Spring 2001

Assignment 1: Basic Statistics in Stata

Due: Wed. Jan. 24, 2001


Data: K:\nd.edu\user22\yli\Public\593sp01\Data\hamilton\dover.dta

Task: Examine and test the gender differences on the following variables: (1) age; (2) education; (3) political party affiliation ("party"); and (4) participation in toxic pickup ("cleanup").

In your discussion, include the following information:

1. A brief description of the data set (e.g. what it is about, how many observations and variables it contains, etc.);
2. The means of the above variables for the whole sample and for the two gender groups respectively;
3. T-test results for mean comparisons for interval level variables or dummy variables;
4. Crosstabs and chi-square results for categorical variables;
5. Brief interpretation of your results in complete sentences.
Hand in: 1) your typed discussion; and 2) a copy of your log file containing all relevant commands and results.


Useful Stata Commands and their SPSS Equivalents:

Stata             SPSS             What it does

log using                          open a log file to record runs and results
log close                          close log file
use               get file
describe                           get data file information (file size, sample size, number of variables, etc.)
list                               list data (observation by variable matrix)
summarize         descriptives
correlate         correlations
graph             graph/plot
generate          compute
rename            rename
recode            recode
label variable    variable labels
label values      value labels
save              save
sort              sort
tabulate          frequencies
tabulate          crosstab
ttest             ttest
help <command_name>                get on-screen help on use of command

* Not in the Hamilton book:

codebook          get dictionary
pwd                                display current directory
ls or dir                          list file names in current directory
cd <dir>                           change directory to <dir>