working with d-nominate data in excel data are stored on the courses server in the icpsr folder data...

11
Working with D-nominate data in Excel • Data are stored on the courses server in the ICPSR folder • Data are in Excel or in Stata format • Key variables are: – Congress number – Party (100=Dem, 200=Rep) – First dimension nominate score

Post on 21-Dec-2015

215 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Working with D-nominate data in Excel Data are stored on the courses server in the ICPSR folder Data are in Excel or in Stata format Key variables are:

Working with D-nominate data in Excel

• Data are stored on the courses server in the ICPSR folder

• Data are in Excel or in Stata format

• Key variables are:– Congress number– Party (100=Dem, 200=Rep)– First dimension nominate score

Page 2: Working with D-nominate data in Excel Data are stored on the courses server in the ICPSR folder Data are in Excel or in Stata format Key variables are:

Files are in this directory

Page 3: Working with D-nominate data in Excel Data are stored on the courses server in the ICPSR folder Data are in Excel or in Stata format Key variables are:

This is what the spreadsheet looks like. Notice that there are no “header” (variable names). It’s pretty easy to figure out what each column represents. We want columns A and H, but we have to pay attention to column F.

Page 4: Working with D-nominate data in Excel Data are stored on the courses server in the ICPSR folder Data are in Excel or in Stata format Key variables are:

Look at how I will sort the data, on state, then on district, then on year.

Page 5: Working with D-nominate data in Excel Data are stored on the courses server in the ICPSR folder Data are in Excel or in Stata format Key variables are:

The data are now sorted the way I want.

Page 6: Working with D-nominate data in Excel Data are stored on the courses server in the ICPSR folder Data are in Excel or in Stata format Key variables are:

I have deleted all rows except for Illinois districts.

Page 7: Working with D-nominate data in Excel Data are stored on the courses server in the ICPSR folder Data are in Excel or in Stata format Key variables are:

First, I copy/paste the data for member two to the right of the data for member one.

Hey why does this not line up??

Page 8: Working with D-nominate data in Excel Data are stored on the courses server in the ICPSR folder Data are in Excel or in Stata format Key variables are:

Now I create three new columns. I title the first dimension for member 1 “1 Dem” since that seat was always held by a Dem. I make two more columns (2 Rep and 2 Dem) for the second district data. Now I manually copy/paste.

Page 9: Working with D-nominate data in Excel Data are stored on the courses server in the ICPSR folder Data are in Excel or in Stata format Key variables are:

Now I have reorganized things, eliminated extraneous columns, and am working with district 3.

Page 10: Working with D-nominate data in Excel Data are stored on the courses server in the ICPSR folder Data are in Excel or in Stata format Key variables are:

Now I am done with district 3 data.

Page 11: Working with D-nominate data in Excel Data are stored on the courses server in the ICPSR folder Data are in Excel or in Stata format Key variables are:

Now my graphic is ready to paste into my paper.