Learn R Programming

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

pscl (version 1.5.5.1)

Political Science Computational Laboratory

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

43,915

Version

1.5.5.1

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

May 10th, 2023

Functions in pscl (1.5.5.1)

AustralianElectionPolling

Political opinion polls in Australia, 2004-07
RockTheVote

Voter turnout experiment, using Rock The Vote ads
ca2006

California Congressional Districts in 2006
constrain.items

constrain item parameters in analysis of roll call data
hitmiss

Table of Actual Outcomes against Predicted Outcomes for discrete data models
convertCodes

convert entries in a rollcall matrix to binary form
hurdle

Hurdle Models for Count Data Regression
hurdle.control

Control Parameters for Hurdle Count Data Regression
dropUnanimous

drop unanimous votes from rollcall objects and matrices
constrain.legis

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

add information about voting outcomes to a rollcall object
extractRollCallObject

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

drop user-specified elements from a rollcall object
ntable

nicely formatted tables
idealToMCMC

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

U.S. Senate vote on the use of force against Iraq, 2002.
partycodes

political parties appearing in the U.S. Congress
nj07

rollcall object, National Journal key votes of 2007
igamma

inverse-Gamma distribution
pR2

compute various pseudo-R2 measures
hurdletest

Testing for the Presence of a Zero Hurdle
ideal

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

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

plot methods for predictions from ideal objects
plot.ideal

plots an ideal object
predict.ideal

predicted probabilities from an ideal object
politicalInformation

Interviewer ratings of respondent levels of political information
predict.hurdle

Methods for hurdle Objects
plot.seatsVotes

plot seats-votes curves
predict.zeroinfl

Methods for zeroinfl Objects
postProcess

remap MCMC output via affine transformations
predprob.glm

Predicted Probabilities for GLM Fits
predprob

compute predicted probabilities from fitted models
rollcall

create an object of class rollcall
prussian

Prussian army horse kick data
seatsVotes

A class for creating seats-votes curves
simpi

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

rollcall object, 109th U.S. Senate (2005-06).
presidentialElections

elections for U.S. President, 1932-2016, by state
sc9497

votes from the United States Supreme Court, from 1994-1997
state.info

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

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

predicted probabilities from fitting ideal to rollcall data
vuong

Vuong's non-nested hypothesis test
summary.ideal

summary of an ideal object
zeroinfl

Zero-inflated Count Data Regression
tracex

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

cross national rates of trade union density
zeroinfl.control

Control Parameters for Zero-inflated Count Data Regression
summary.rollcall

summarize a rollcall object
vote92

Reports of voting in the 1992 U.S. Presidential election.
vectorRepresentation

convert roll call matrix to series of vectors
EfronMorris

Batting Averages for 18 major league baseball players, 1970
bioChemists

article production by graduate students in biochemistry Ph.D. programs
absentee

Absentee and Machine Ballots in Pennsylvania State Senate Races
admit

Applications to a Political Science PhD Program
AustralianElections

elections to Australian House of Representatives, 1949-2016
UKHouseOfCommons

1992 United Kingdom electoral returns
betaHPD

compute and optionally plot beta HDRs