Professor B. Jones
Department of Political
Science
Course
Syllabus
Problem Sets:
Simulations
and Samples (Assignment due data is INCORRECT. It is due Thursday, Nov.
12!)
Univariate
Statistics and Plotting in R
Data for HW 4 (Excel .csv format)
Data for HW 4 (Plain Text format)
Lecture Slides
(Powerpoint/Beamer format)
Preliminaries
Another Introduction to R (written by M.
Easton)
Simpson's Paradox and the Concept of
"Lurkers"
Introduction
to Samples and Sampling
Old Exams/Study Guides
Example
of Midterm from Previous Year
R Materials
Introduction to R
(Slides from in-class presentation)
Complete Fox Illustration for Mac
(R Script to be used with
Complete Fox Illustration for PC
(R Script to be used with
R
Script for analysis of 2008 Presidential Exit Poll Data (Used in-class)
Stata
file with 2008 Exit Poll data (to be used with R script above)
R
Script for analysis of 2008 Election data on Ca. counties (requires use
of calcounty.dta, a
Stata data set. To read in this format, see the R
script; you will use library(foreign) and the read.dta
function).
Stata
dataset on 2008 election by California counties
R
script for plotting x-y plots (includes hate crime data)
Data:
Information on R
R is a freely available
statistical computing environment.
To use R:
1. Download package (choose
Mac, Windows, etc.)
2. The program should be
self-executing.
3. Open R. You’ll see
a blank console.
4. Move cursor to
“file” in toolbar and click.
5. Then click on “New
Script.”
6. A window will open.
7. Type your R code there.
8. To run the code, highlight the text of
the code and right click and
select “run line or
selection.”
9. This will execute the
commands.
10. Output will show up in
console window.
11. I will post my R
script. You can cut and paste that
into the script window and
run it if you want to.
To access R, see the website
below.
Websites we will use this quarter:
CRAN: http://cran.r-project.org/
<\bold>