Learn R Programming

⚠️There's a newer version (1.5.9) of this package.Take me there.

pscl (version 1.03.2)

Political Science Computational Laboratory, Stanford University

Description

Bayesian analysis of item-response theory (IRT) models, roll call analysis; computing highest density regions; maximum likelihood estimation of zero-inflated and hurdle models for count data; goodness-of-fit measures for GLMs; data sets used in writing and teaching at the Political Science Computational Laboratory; seats-votes curves.

Copy Link

Version

Install

install.packages('pscl')

Monthly Downloads

27,194

Version

1.03.2

License

GPL-2

Maintainer

Simon Jackman

Last Published

November 19th, 2009

Functions in pscl (1.03.2)

computeMargins

add information about voting outcomes to a rollcall object
ca2006

California Congressional Districts in 2006
plot.ideal

plots an ideal object
simpi

Monte Carlo estimate of pi (3.14159265...)
predict.ideal

predicted probabilities from an ideal object
readKH

read roll call data in Poole-Rosenthal KH format
postProcess

remap MCMC output via affine transformations
prussian

Prussian army horse kick data
s109

rollcall object, 109th U.S. Senate (2005-06).
predict.hurdle

Methods for hurdle Objects
seatsVotes

A class for creating seats-votes curves
hitmiss

Table of Actual Outcomes against Predicted Outcomes for discrete data models
idealToMCMC

convert an object of class ideal to a coda MCMC object
constrain.legis

constrain legislators' ideal points in analysis of roll call data
AustralianElections

elections to Australian House of Representatives, 1949-2004
convertCodes

convert entries in a rollcall matrix to binary form
betaHPD

compute and optionally plot beta HDRs
EfronMorris

Batting Averages for 18 major league baseball players, 1970
admit

Applications to a Political Science PhD Program
hurdletest

Testing for the Presence of a Zero Hurdle
state.info

information about the American states needed for U.S. Congress
constrain.items

constrain item parameters in analysis of roll call data
ntable

nicely formatted tables
odTest

likelihood ratio test for over-dispersion in count data
hurdle.control

Control Parameters for Hurdle Count Data Regression
sc9497

votes from the United States Supreme Court, from 1994-1997
extractRollCallObject

return the roll call object used in fitting an ideal model
partycodes

political parties appearing in the U.S. Congress
plot.predict.ideal

plot methods for predictions from ideal objects
absentee

Absentee and Machine Ballots in Pennsylvania State Senate Races
plot.seatsVotes

plot seats-votes curves
presidentialElections

elections for U.S. President, 1932-2004, by state
summary.rollcall

summarize a rollcall object
summary.ideal

summary of an ideal object
unionDensity

cross national rates of trade union density
politicalInformation

Interviewer ratings of respondent levels of political information
predict.zeroinfl

Methods for zeroinfl Objects
zeroinfl.control

Control Parameters for Zero-inflated Count Data Regression
vectorRepresentation

convert roll call matrix to series of vectors
predprob.glm

Predicted Probabilties for GLM Fits
dropRollCall

drop user-specified elements from a rollcall object
RockTheVote

Voter turnout experiment, using Rock The Vote ads
hurdle

Hurdle Models for Count Data Regression
predprob

compute predicted probabilities from fitted models
zeroinfl

Zero-inflated Count Data Regression
tracex

trace plot of MCMC iterates, posterior density of legislators' ideal points
vuong

Vuong's non-nested hypothesis test
rollcall

create an object of class rollcall
bioChemists

article production by graduate students in biochemistry Ph.D. programs
ideal

analysis of educational testing data and roll call data with IRT models, via Markov chain Monte Carlo methods
dropUnanimous

drop unanimous votes from rollcall objects and matrices
igamma

inverse-Gamma distribution
pR2

compute various pseduo-R2 measures
predprob.ideal

predicted probabilities from fitting ideal to rollcall data