Learn R Programming

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

pscl (version 0.96)

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

0.96

License

GPL-2

Maintainer

Simon Jackman

Last Published

January 31st, 2024

Functions in pscl (0.96)

extractRollCallObject

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

convert entries in a rollcall matrix to binary form
readKH

read roll call data in Poole-Rosenthal KH format
predprob.ideal

predicted probabilities from fitting ideal to rollcall data
seatsVotes

A class for creating seats-votes curves
zeroinfl.control

Control Parameters for Zero-inflated Count Data Regression
partycodes

political parties appearing in the U.S. Congress
hurdle

Hurdle Models for Count Data Regression
constrain.items

constrain item parameters in analysis of roll call data
rollcall

create an object of class rollcall
postProcess

remap MCMC output via affine transformations
absentee

Absentee and Machine Ballots in Pennsylvania State Senate Races
plot.predict.ideal

plot methods for predictions from ideal objects
ntable

nicely formatted tables
vuong

Vuong's non-nested hypothesis test
predprob

compute predicted probabilities from fitted models
plot.ideal

plots an ideal object
tracex

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

rollcall object, 109th U.S. Senate
AustralianElections

elections to Australian House of Representatives, 1949-2004
prussian

Prussian army horse kick data
state.info

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

summary of an ideal object
zeroinfl

Zero-inflated Count Data Regression
bioChemists

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

Control Parameters for Hurdle Count Data Regression
computeMargins

add information about voting outcomes to a rollcall object
summary.rollcall

summarize a rollcall object
predict.ideal

predicted probabilities from an ideal object
ideal

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

drop user-specified elements from a rollcall object
predprob.glm

Predicted Probabilties for GLM Fits
odTest

likelihood ratio test for over-dispersion in count data
hitmiss

Table of Actual Outcomes against Predicted Outcomes for discrete data models
plot.seatsVotes

plot seats-votes curves
betaHPD

compute and optionally plot beta HDRs
admit

Applications to a Political Science PhD Program
constrain.legis

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

California Congressional Districts in 2006
idealToMCMC

convert an object of class ideal to a coda MCMC object
igamma

inverse-Gamma distribution
pR2

compute various pseduo-R2 measures
predict.hurdle

Methods for hurdle Objects
sc9497

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

drop unanimous votes from rollcall objects and matrices
hurdletest

Testing for the Presence of a Zero Hurdle
predict.zeroinfl

Methods for zeroinfl Objects
simpi

Monte Carlo estimate of pi (3.14159265...)
vectorRepresentation

convert roll call matrix to series of vectors
unionDensity

cross national rates of trade union density