150C/350C: political methodology 3
Spring 2007
- General:
- We've moved to ART 4, basement of the Art building, which is between
Hoover and the History building.
- Syllabus PDF
- Homework 1
- PDF Due in class Monday, April 16, 2007
(time last changed: 4:05 pm April 17 2007)
- Gore vote share data ASCII and some
R commands to help you
with Q3 (and the fancy version)
- Titanic data ASCII
- Nagler turnout data ASCII
- PDF Answer Guide
(time last changed: 5:40 pm April 25 2007)
- Homework 2
- PDF Due in class Wednesday, May 2, 2007
(time last changed: 6:01 pm April 23 2007)
- Occupational status data (Stata format)
- R Code Goodness of fit functions for GLMs/polr/multinom R objects, pre-release from my pscl R package
(time last changed: 8:36 am April 28 2007)
- PDF Answer Guide
(time last changed: 4:28 pm May 11 2007)
- Homework 3
- PDF Due in class Monday, May 21, 2007
(time last changed: 2:37 pm May 14 2007)
- Civil war counts Stata format
- Civil war onset durations R data.
To load into R: load("Hegre.Rda") This will create a data frame named data.
- Past Exams
- 2005 Exam and answer guide PDF
- 2003 open book exam PDF
- Final Exam
- PDF Due back to me on
Wednesday June 13 2007. Minimal collaboration
on the computing is allowed, but your answers must
be your own. I will hold a R session on Monday June
11 to deal with queries about the computing face-to-face,
and Nathan is available for questions as well, so please
try to get through the computing your own. Good hunting...
(time last changed: 12:19 pm June 6 2007)
- Marinov data on trade sanctions (R dpt format)
- Wage data (Stata format)
- R Code R help for the final
(time last changed: 6:35 pm June 12 2007)
- PDF Sketchy answer guide for the final exam
(time last changed: 3:51 pm July 29 2007)
- Binary Responses:
- PDF lecture notes
(time last changed: 6:19 pm April 10 2007)
- R commands from class, Monday, April 9, 2007.
- R commands to supplement class,
Wednesday, April 11, 2007.
Data
and resulting graph PDF
- Documentation on the glm function in R PDF
- R commands, defining a function that will compute the area under the ROC (receiver operating characteristic) curve for a glm object; but see also the lroc function in the epicalc
package, which will also graph the ROC curves for a set of models.
- Ordinal Responses:
- PDF lecture notes
(time last changed: 8:48 pm April 16 2007)
- R Commands from class, Wednesday, April 18, 2007
(time last changed: 11:18 am April 23 2007)
- data for R code (above)
(time last changed: 11:28 am April 18 2007)
- PDF one of the graphs produced by R code (above)
(time last changed: 4:12 pm April 18 2007)
- Multinomial Responses:
- PDF lecture notes
(time last changed: 2:51 pm April 30 2007)
- Sydney-Melbourne transportation data
- Counts:
- PDF lecture notes
(time last changed: 2:57 pm April 30 2007)
- R Commands looking at the Prussian Army horse kick data
(time last changed: 11:31 am May 7 2007)
- R commands from class, May 7 2007
(time last changed: 11:24 am May 9 2007)
- Survival:
- R Commands analysis of Fearon's civil war data
(time last changed: 12:05 pm May 9 2007)
- Stata dta file Fearon's civil war data
(time last changed: 11:31 am May 7 2007)
- PDF Supplemental reading, survival models in R
(time last changed: 11:31 am May 7 2007)
- R Commands giving R's survival functions a workout, with canonical medical data
(time last changed: 11:31 am May 7 2007)
- R Commands Beck-Katz-Tucker one-way transition model (with duration dependence) for MIDs data
(time last changed: 3:51 pm May 16 2007)
- Beck-Katz-Tucker/Oneal-Russett data (Rda format)
- Panel Data:
- R commands from class, May 21, 2007.
- PDF a primer on the Stein effect (the efficiency gains from random effects
(time last changed: 5:00 pm May 24 2007)
- PDF lecture slides on panel data models
(time last changed: 12:23 am June 3 2007)
- R commands for analysis of traffic fatality data (Stata format), from class, June 4, 2007.
- Multivariate analysis:
- PDF lecture notes on factor analysis
(time last changed: 2:57 pm December 29 2006)
AnthrSci 254 - PoliSci 354F: applied bayesian analysis
150B/350B: political methodology 2
Winter 2008
151B: data analysis for political science
Spring 2006
- Syllabus PDF
- Lecture Slides (all PDF):
- Lecture 2, April 10, 2006
- Lecture 3, April 12, 2006
- Lecture 4, April 17, 2006
- Lecture 5, April 19, 2006
- Lecture 6, April 24, 2006
- Lecture 7, April 26, 2006
- Lecture 8, May 1, 2006
- Lecture 9 and 10, May 3, 2006
- Lecture 11, May 8, 2006
- Lecture 12, May 10, 2006
- Lecture 13, May 15, 2006
- Lecture 14, May 17, 2006
- Lecture 15, May 22, 2006
- Lecture 16, May 24, 2006
- Lecture 17, May 31, 2006: see Agresti & Finlay, Ch 10, 11.1-11.6
- R commands from class, April 10, 2006
- R commands from class, April 12, 2006, and a comma-delimited
file produced by Excel
- Homework 1 PDF, due in class, Wednesday April 19, 2006.
- R commands from class,
April 17, 2006, defines a function to convert minutes to hours:minutes.
- A note PDF on how a new observation can influence the sample mean (correcting
an error in my lecture slides from April 17, 2006).
- Homework 2 PDF, due in class, Wednesday,
May 3, 2006. Answer Guide PDF
- R commands from class, May 8, 2006
- R commands from class, May 10, 2006
(1) small sample comparison of means; (2) Fisher's exact test for
proportions; (3) comparison of means, dependent samples.
- Homework 3 PDF, due in class, Wednesday, May 17, 2006. Answer Guide
PDF
- R commands from class, May 17, 2006. Examples of chi-square test of
association; a function to compute the (Goodman-Kruskal)
gamma measure of association for ordinal variables; example using
the function.
- R commands from class, May 22, 2006. Scatterplots and regression.
- R commands from class, May 24, 2006. More regression examples, etc.
- Homework 4 PDF, due in class, Wednesday,
May 31, 2006. Data and setup
R code.
- R commands from class, May 31, 2006. Multiple regression, some plots.
- R commands from class, June 5, 2006. Regression with dummy variables
and interactions, more plots.
- Final exam and answer guide, PDF June 9 2006.