Learn R Programming

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

pscl (version 0.59)

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

30,061

Version

0.59

License

GPL version 2 or newer

Maintainer

Simon Jackman

Last Published

January 31st, 2024

Functions in pscl (0.59)

betaHPD

compute and optionally plot beta HDRs
constrain.legis

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

drop unanimous votes from rollcall objects
predprob.ideal

predicted probabilities from fitting ideal to rollcall data
constrain.items

constrain item parameters in analysis of roll call data
dropUnanimous

drop unanimous votes from rollcall objects and matrices
partycodes

Political parties appearing the U.S. Congress
dropRollCall

drop user-specified elements from a rollcall object
computeMargins

add information about voting outcomes to a rollcall object
bioChemists

Article production by graduate students in biochemistry Ph.D. programs
hurdle

hurdle models for count data
idealToMCMC

Convert and object of class ideal to an MCMC object
prussian

Prussian Army Horse Kick Data
summary.rollcall

Summarize a rollcall object
summary.hurdle

Summarzing Hurdle Regression Models for Count Data
sc9497

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

Vuong's non-nested hypothesis test
predict.zeroinfl

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

summary of zero-inflated regression models for count data
summary.ideal

Summarize an Ideal object
readKH

Read Roll Call Data from Poole-Rosenthal KH format
vectorRepresentation

convert roll call matrix to series of vectors
predprob

Compute predicted probabilities from fitted models
plot.predict.ideal

plot methods for predictions from ideal objects
plot.ideal

plots an ideal object.
AustralianElections

elections to Australian House of Representatives, 1949-2004
ntable

nicely formatted tables
zeroinfl

zero-inflated regression models for count data
dropUnanimous.matrix

drop unanimous rollcalls from a roll call matrix
extractRollCallObject

return the roll call object used in fitting an ideal model
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)
odTest

Likelihood ratio test for over-dispersion in count data
predict.ideal

oredicted orobabilities from an ideal object
igamma

inverse-Gamma distribution
predprob.zeroinfl

predicted probabilities from zero-inflated regression models
rollcall

Create an object of class rollcall
s109

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

Information about the American states needed for U.S. Congress
unionDensity

cross national rates of trade union density
plot2d

Plots two dimensional summary of an ideal object
predprob.glm

Predicted Probabilties for GLM Fits
tracex

Trace Plot of Legislators' Ideal Points.
plot1d

Plots 1 dimension of an ideal object