# POLI 259: Bayes by the Beach

# R

# WINBUGS

# R and WINBUGS Programs

gibbs_exponential.r --
**R** program demonstrating Gibbs Sampling (Gill, pages 26 - 29, code by Jeff Gill)

newton_raphson.r --
**R** program demonstrating Newton-Raphson (Gill, page 44, code by Jeff Gill)

africa_coups.r --
**R** program demonstrating glm function using African Coup data (Gill,
pages 48-49, code by Jeff Gill)

africa.dat -- Africa Coups data set read by
africa_coups.r

consensus.r -- **R** program demonstrating Cultural
Consensus Model in Anthropology (Gill, pages 69-70, 84-85, code by Jeff Gill)

gibbs.r -- **R** program demonstrating
simple Gibbs Sampling (code by Jeff Lewis)

gibbs_coal_mining.r -- **R** program illustrating
British Coal Mine Disaster Problem (Gill, pages 313-317, 348-349, code by Jeff Gill)

metropolis.r -- **R** program demonstrating
simple Metropolis-Hastings Sampling (code by Jeff Lewis)

metropolis_gill.r -- **R** program demonstrating
Metropolis-Hastings Sampling (Gill, pages 324-325, 349-350, code by Jeff Gill)

A Comparison of MLE with Bayesian MCMC Using Gary King's
Party and Elections Data (Electoral Responsiveness and Partisan Bias)

undervote.odc -- **WinBUGS**
program demonstrating Undervoting for President in 1992 (code by Simon Jackman)

cancer.odc -- **WinBUGS**
program demonstrating Differences in rates of Lung Cancer by Smoking (code by Simon Jackman)

Regression_106_model.txt --
**WinBUGS** program
that Runs Regression of Bush 2000 vote on Congressional District Data

model_supct_qn.txt -- **WinBUGS** program
that estimates the Quadratic-Normal Ideal Point Model for Supreme Court

model_supct_nominate.txt -- **WinBUGS** program
that estimates the NOMINATE Ideal Point Model for Supreme Court

model_h106_48_qn.txt --
**WinBUGS** program
that estimates a Hierarchical Model of 48 Legislator Ideal Points for the 106^{th} House

h106_48.txt -- 106^{th} House data to
estimate Hierarchical Model

VOTEVIEW Blog

NOMINATE Data, Roll Call Data, and Software

Course Web Pages: University of Georgia (2010 - )

Course Web Pages: UC San Diego (2004 - 2010)

University of San Diego Law School (2005)

Course Web Pages: University of Houston (2000 - 2005)

Course Web Pages: Carnegie-Mellon University (1997 - 2000)

*Analyzing Spatial Models of Choice and Judgment with R*

*Spatial Models of Parliamentary Voting*

Recent Working Papers

Analyses of Recent Politics

About This Website

K7MOA Log Books: 1960 - 2017

Bio of Keith T. Poole

Related Links