Learn R Programming

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

pscl (version 0.58)

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

34,594

Version

0.58

License

GPL version 2 or newer

Maintainer

Simon Jackman

Last Published

January 31st, 2024

Functions in pscl (0.58)

convertCodes

convert entries in a rollcall matrix to binary form
ideal

Analysis of Roll Call Data (ideal point estimation or item-response modeling via Markov chain Monte Carlo methods)
partycodes

Political parties appearing the U.S. Congress
plot.ideal

plots an ideal object.
computeMargins

add information about voting outcomes to a rollcall object
unionDensity

cross national rates of trade union density
vuong

Vuong's non-nested hypothesis test
readKH

Read Roll Call Data from Poole-Rosenthal KH format
tracex

Trace Plot of Legislators' Ideal Points.
ntable

nicely formatted tables
predprob

Compute predicted probabilities from fitted models
AustralianElections

elections to Australian House of Representatives, 1949-2004
plot1d

Plots 1 dimension of an ideal object
vectorRepresentation

convert roll call matrix to series of vectors
sc9497

Votes from the United States Supreme Court, from 1994-1997
rollcall

Create an object of class rollcall
constrain.items

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

Summarize a rollcall object
bioChemists

Article production by graduate students in biochemistry Ph.D. programs
predprob.glm

Predicted Probabilties for GLM Fits
dropUnanimous.rollcall

drop unanimous votes from rollcall objects
predict.ideal

oredicted orobabilities from an ideal object
summary.zeroinfl

summary of zero-inflated regression models for count data
predict.zeroinfl

Generate predictions from zero-inflated regression count models
predprob.ideal

predicted probabilities from fitting ideal to rollcall data
zeroinfl

zero-inflated regression models for count data
dropRollCall

drop user-specified elements from a rollcall object
summary.hurdle

Summarzing Hurdle Regression Models for Count Data
s109

rollcall object, 109th U.S. Senate
plot2d

Plots two dimensional summary of an ideal object
state.info

Information about the American states needed for U.S. Congress
dropUnanimous.matrix

drop unanimous rollcalls from a roll call matrix
plot.predict.ideal

plot methods for predictions from ideal objects
extractRollCallObject

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

hurdle models for count data
prussian

Prussian Army Horse Kick Data
summary.ideal

Summarize an Ideal object
betaHPD

compute and optionally plot beta HDRs
constrain.legis

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

drop unanimous votes from rollcall objects and matrices
predprob.zeroinfl

predicted probabilities from zero-inflated regression models
odTest

Likelihood ratio test for over-dispersion in count data
igamma

inverse-Gamma distribution
idealToMCMC

Convert and object of class ideal to an MCMC object