Learn R Programming

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

pscl (version 0.60)

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 PSCL

Copy Link

Version

Install

install.packages('pscl')

Monthly Downloads

33,939

Version

0.60

License

GPL version 2 or newer

Maintainer

Simon Jackman

Last Published

January 31st, 2024

Functions in pscl (0.60)

dropRollCall

drop user-specified elements from a rollcall object
ntable

nicely formatted tables
odTest

likelihood ratio test for over-dispersion in count data
betaHPD

compute and optionally plot beta HDRs
igamma

inverse-Gamma distribution
plot.predict.ideal

plot methods for predictions from ideal objects
summary.hurdle

summarize hurdle regression models for count data
s109

rollcall object, 109th U.S. Senate
vuong

Vuong's non-nested hypothesis test
predict.ideal

predicted probabilities from an ideal object
readKH

read roll call data in Poole-Rosenthal KH format
AustralianElections

elections to Australian House of Representatives, 1949-2004
hurdle

hurdle models for count data
idealToMCMC

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

constrain item parameters in analysis of roll call data
sc9497

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

political parties appearing in the U.S. Congress
prussian

Prussian army horse kick data
predprob.ideal

predicted probabilities from fitting ideal to rollcall data
computeMargins

add information about voting outcomes to a rollcall object
ideal

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

plots an ideal object
postProcess

remap MCMC output via affine transformations
predprob.zeroinfl

predicted probabilities from zero-inflated regression models
bioChemists

article production by graduate students in biochemistry Ph.D. programs
state.info

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

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

summary of an ideal object
summary.rollcall

summarize a rollcall object
predprob

compute predicted probabilities from fitted models
extractRollCallObject

return the roll call object used in fitting an ideal model
constrain.legis

constrain legislators' ideal points in analysis of roll call data
predprob.glm

Predicted Probabilties for GLM Fits
convertCodes

convert entries in a rollcall matrix to binary form
predict.zeroinfl

generate predictions from zero-inflated regression count models
summary.zeroinfl

summary of zero-inflated regression models for count data
dropUnanimous

drop unanimous votes from rollcall objects and matrices
vectorRepresentation

convert roll call matrix to series of vectors
zeroinfl

zero-inflated regression models for count data
unionDensity

cross national rates of trade union density
rollcall

create an object of class rollcall