classwork12-comments - Class 12 Political Science 230 An...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Class 12 — Political Science 230 An Interlude about Data and Final Reports NAME : SECTION : 0. Get ready to work. Today we will work with the American National Election Study 2008. I found the link to the dataset (ANES 2008 Time Series Study) here: http://electionstudies.org/studypages/download/datacenter_all.htm . 1 You can load the data here: ## Load the full 2008 American National Election Study data load ( url ( "http://jakebowers.org/PS230Data/nes08.rda" )) ## dim(nes08.df) ## cases by variables If we hadn’t already had a dataset in R’s binary format, you could do the following to to download the dataset, unzip it, and read it into R. Note: You do not need to run these lines. I include them here to show a way to deal with data sets that are not in R format without requiring you to download files to your own computer. download.file ( "http://electionstudies.org/studypages/data/2008prepost/anes_timeseries_2008_dta.zip" , destfile = "anes_timeseries_200 8 method = "auto" ) ## Download the data file unzip ( "anes_timeseries_2008_dta.zip" ) ## Unzip the compressed archive library (foreign) ## load the package allowing us to read Stata files nes08.df <- read.dta ( "anes_timeseries_2008.dta" , convert.factors = FALSE ) ## Read the Stata data file into R str (nes08.df, list.len = 20 , give.attr = FALSE ) ## This just gives us a quick look at the data 1. Now, go to http://electionstudies.org/studypages/2008prepost/2008prepost.htm . There you can see links to the codebooks for the study. Look at the codebook for the Post election study ( http://electionstudies.org/studypages/ 2008prepost/anes2008TS_cbkpost.txt ). Choose two variables: one outcome and one explanatory. Recall that the explana- tory variable is supposed to help us understand something about the outcome — and the outcome is something we care to understand more about. Please tell us the variable name and a short descriptive variable label for each of the two variables you chose. For the rest of the day, you will be working with the variables that you chose. In this handout, I work with two variables that I chose as an example. You do not need to run the code that I have written here. We are using the 2008 NES as an example. You do not need to use this dataset or these two variables for your own paper. Also, feel free to work in groups. Hint: You might search through that document for words of interest to you. Of course, do not use my example answer (although you can use one of the variables from it if you want). For example, say I was interested in the relationship between support for religious organizations and support for free market solutions to economic problems. After searching around I found: V085106 H3b. Need strong govt for complex problems OR free market ----------------------------------------------------------------- ONE, we need a strong government to handle today ' s complex economic problems; OR TWO, the free market can handle these problems without government being involved.
Background image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 4

classwork12-comments - Class 12 Political Science 230 An...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online