Learn R Programming

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

pscl (version 0.75)

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; 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

0.75

License

GPL

Maintainer

Simon Jackman

Last Published

January 31st, 2024

Functions in pscl (0.75)

hurdle.control

Control Parameters for Hurdle Count Data Regression
ntable

nicely formatted tables
sc9497

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

drop user-specified elements from a rollcall object
rollcall

create an object of class rollcall
betaHPD

compute and optionally plot beta HDRs
dropUnanimous

drop unanimous votes from rollcall objects and matrices
odTest

likelihood ratio test for over-dispersion in count data
predprob

compute predicted probabilities from fitted models
summary.rollcall

summarize a rollcall object
plot.predict.ideal

plot methods for predictions from ideal objects
seatsVotes

A class for creating seats-votes curves
predict.ideal

predicted probabilities from an ideal object
hurdle

Hurdle Models for Count Data Regression
vectorRepresentation

convert roll call matrix to series of vectors
computeMargins

add information about voting outcomes to a rollcall object
igamma

inverse-Gamma distribution
ideal

analysis of roll call data (IRT models) via Markov chain Monte Carlo methods
zeroinfl.control

Control Parameters for Zero-inflated Count Data Regression
tracex

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

plots an ideal object
convertCodes

convert entries in a rollcall matrix to binary form
bioChemists

article production by graduate students in biochemistry Ph.D. programs
predict.hurdle

Methods for hurdle Objects
idealToMCMC

convert an object of class ideal to a coda MCMC object
predprob.ideal

predicted probabilities from fitting ideal to rollcall data
unionDensity

cross national rates of trade union density
prussian

Prussian army horse kick data
AustralianElections

elections to Australian House of Representatives, 1949-2004
postProcess

remap MCMC output via affine transformations
plot.seatsVotes

plot seats-votes curves
extractRollCallObject

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

California Congressional Districts in 2006
vuong

Vuong's non-nested hypothesis test
constrain.items

constrain item parameters in analysis of roll call data
summary.ideal

summary of an ideal object
constrain.legis

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

Zero-inflated Count Data Regression
partycodes

political parties appearing in the U.S. Congress
predprob.glm

Predicted Probabilties for GLM Fits
predict.zeroinfl

Methods for zeroinfl Objects
readKH

read roll call data in Poole-Rosenthal KH format
s109

rollcall object, 109th U.S. Senate
state.info

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