pscl: Political Science Computational Laboratory, Stanford University

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.

Install the latest version of this package by entering the following in R:
install.packages("pscl")
AuthorSimon Jackman, with contributions from Alex Tahk, Achim Zeileis, Christina Maimone and Jim Fearon
Date of publication2015-03-29 11:23:22
MaintainerSimon Jackman <jackman@stanford.edu>
LicenseGPL-2
Version1.4.9
http://pscl.stanford.edu/

View on CRAN

Man pages

absentee: Absentee and Machine Ballots in Pennsylvania State Senate...

admit: Applications to a Political Science PhD Program

AustralianElectionPolling: Political opinion polls in Australia, 2004-07

AustralianElections: elections to Australian House of Representatives, 1949-2007

betaHPD: compute and optionally plot beta HDRs

bioChemists: article production by graduate students in biochemistry Ph.D....

ca2006: California Congressional Districts in 2006

computeMargins: add information about voting outcomes to a rollcall object

constrain.items: constrain item parameters in analysis of roll call data

constrain.legis: constrain legislators' ideal points in analysis of roll call...

convertCodes: convert entries in a rollcall matrix to binary form

dropRollCall: drop user-specified elements from a rollcall object

dropUnanimous: drop unanimous votes from rollcall objects and matrices

EfronMorris: Batting Averages for 18 major league baseball players, 1970

extractRollCallObject: return the roll call object used in fitting an ideal model

hitmiss: Table of Actual Outcomes against Predicted Outcomes for...

hurdle: Hurdle Models for Count Data Regression

hurdle.control: Control Parameters for Hurdle Count Data Regression

hurdletest: Testing for the Presence of a Zero Hurdle

ideal: analysis of educational testing data and roll call data with...

idealToMCMC: convert an object of class ideal to a coda MCMC object

igamma: inverse-Gamma distribution

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

nj07: rollcall object, National Journal key votes of 2007

ntable: nicely formatted tables

odTest: likelihood ratio test for over-dispersion in count data

partycodes: political parties appearing in the U.S. Congress

plot.ideal: plots an ideal object

plot.predict.ideal: plot methods for predictions from ideal objects

plot.seatsVotes: plot seats-votes curves

politicalInformation: Interviewer ratings of respondent levels of political...

postProcess: remap MCMC output via affine transformations

pR2: compute various pseudo-R2 measures

predict.hurdle: Methods for hurdle Objects

predict.ideal: predicted probabilities from an ideal object

predict.zeroinfl: Methods for zeroinfl Objects

predprob: compute predicted probabilities from fitted models

predprob.glm: Predicted Probabilties for GLM Fits

predprob.ideal: predicted probabilities from fitting ideal to rollcall data

presidentialElections: elections for U.S. President, 1932-2012, by state

prussian: Prussian army horse kick data

readKH: read roll call data in Poole-Rosenthal KH format

RockTheVote: Voter turnout experiment, using Rock The Vote ads

rollcall: create an object of class rollcall

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

sc9497: votes from the United States Supreme Court, from 1994-1997

seatsVotes: A class for creating seats-votes curves

simpi: Monte Carlo estimate of pi (3.14159265...)

state.info: information about the American states needed for U.S....

summary.ideal: summary of an ideal object

summary.rollcall: summarize a rollcall object

tracex: trace plot of MCMC iterates, posterior density of...

UKHouseOfCommons: 1992 United Kingdom electoral returns

unionDensity: cross national rates of trade union density

vectorRepresentation: convert roll call matrix to series of vectors

vote92: Reports of voting in the 1992 U.S. Presidential election.

vuong: Vuong's non-nested hypothesis test

zeroinfl: Zero-inflated Count Data Regression

zeroinfl.control: Control Parameters for Zero-inflated Count Data Regression

Functions

absentee Man page
admit Man page
AustralianElectionPolling Man page
AustralianElections Man page
betaHPD Man page
bioChemists Man page
ca2006 Man page
coef.hurdle Man page
coef.zeroinfl Man page
computeMargins Man page
constrain.items Man page
constrain.legis Man page
convertCodes Man page
densigamma Man page
dropRollCall Man page
dropUnanimous Man page
dropUnanimous.matrix Man page
dropUnanimous.rollcall Man page
EfronMorris Man page
extractAIC.hurdle Man page
extractAIC.zeroinfl Man page
extractRollCallObject Man page
fitted.hurdle Man page
fitted.zeroinfl Man page
hitmiss Man page
hitmiss.glm Man page
hurdle Man page
hurdle.control Man page
hurdletest Man page
ideal Man page
idealToMCMC Man page
igamma Man page
igammaHDR Man page
iraqVote Man page
logLik.hurdle Man page
logLik.zeroinfl Man page
model.matrix.hurdle Man page
model.matrix.zeroinfl Man page
nj07 Man page
ntable Man page
odTest Man page
partycodes Man page
pigamma Man page
plot1d Man page
plot2d Man page
plot.ideal Man page
plot.predict.ideal Man page
plot.seatsVotes Man page
politicalInformation Man page
postProcess Man page
pR2 Man page
predict.hurdle Man page
predict.ideal Man page
predict.zeroinfl Man page
predprob Man page
predprob.glm Man page
predprob.hurdle Man page
predprob.ideal Man page
predprob.zeroinfl Man page
presidentialElections Man page
print.hurdle Man page
print.predict.ideal Man page
print.seatsVotes Man page
print.summary.hurdle Man page
print.summary.rollcall Man page
print.summary.zeroinfl Man page
print.zeroinfl Man page
prussian Man page
qigamma Man page
readKH Man page
residuals.hurdle Man page
residuals.zeroinfl Man page
rigamma Man page
RockTheVote Man page
rollcall Man page
s109 Man page
sc9497 Man page
seatsVotes Man page
simpi Man page
state.info Man page
summary.hurdle Man page
summary.ideal Man page
summary.rollcall Man page
summary.seatsVotes Man page
summary.zeroinfl Man page
terms.hurdle Man page
terms.zeroinfl Man page
tracex Man page
UKHouseOfCommons Man page
unionDensity Man page
vcov.hurdle Man page
vcov.zeroinfl Man page
vectorRepresentation Man page
vote92 Man page
vuong Man page
zeroinfl Man page
zeroinfl.control Man page

Files

TODO
inst
inst/CITATION
inst/COPYRIGHTS
inst/extdata
inst/extdata/id2.rda
inst/extdata/id1.rda
inst/doc
inst/doc/countreg.pdf
inst/doc/countreg.Rnw
inst/doc/countreg.R
src
src/util.c
src/pi.c
src/dvecTOdmat.c
src/predict.c
src/check.c
src/rigamma.c
src/printmat.c
src/rmvnorm.c
src/IDEAL.c
src/crossprod.c
src/updateb.c
src/chol.h
src/bayesreg.c
src/updatex.c
src/dmatTOdvec.c
src/xchol.c
src/util.h
src/renormalize.c
src/dtnorm.c
src/chol.c
src/updatey.c
src/gaussj.c
src/ideal.h
src/xreg.c
NAMESPACE
NEWS
data
data/presidentialElections.rda
data/sc9497.rda
data/admit.rda
data/iraqVote.rda
data/RockTheVote.rda
data/unionDensity.rda
data/partycodes.rda
data/EfronMorris.rda
data/AustralianElections.rda
data/absentee.rda
data/UKHouseOfCommons.rda
data/prussian.rda
data/AustralianElectionPolling.rda
data/state.info.rda
data/vote92.rda
data/ca2006.rda
data/s109.rda
data/bioChemists.rda
data/nj07.rda
data/politicalInformation.rda
R
R/hurdle.R R/predprob.R R/ntable.R R/idealHelper.r R/dropRollCall.r R/extractVotes.r R/pi.r R/hello.r R/restrict.ideal.r R/toMCMC.r R/margins.rollcall.r
R/sysdata.rda
R/postProcess.r R/seatsVotes.R R/rollcall.r R/vuong.R R/zeroinfl.R R/odTest.R R/pseudoRSq.R R/igamma.r R/betaHPD.r R/dropUnanimous.r R/readKH.r R/predict.ideal.r R/summary.ideal.r R/ideal.r R/predprob.glm.R R/zzz.R R/plot.ideal.r R/hitmiss.R
vignettes
vignettes/DebTrivedi.rda
vignettes/countreg.Rnw
vignettes/countreg.bib
vignettes/auto
vignettes/auto/countreg.el
MD5
README
build
build/vignette.rds
DESCRIPTION
man
man/summary.ideal.Rd man/convertCodes.Rd man/s109.Rd man/igamma.Rd man/pR2.Rd man/rollcall.Rd man/state.info.Rd man/absentee.Rd man/postProcess.Rd man/predict.zeroinfl.Rd man/hurdle.Rd man/hurdle.control.Rd man/summary.rollcall.Rd man/vectorRepresentation.Rd man/nj07.Rd man/tracex.Rd man/admit.Rd man/simpi.Rd man/betaHPD.Rd man/constrain.items.Rd man/sc9497.Rd man/prussian.Rd man/UKHouseOfCommons.Rd man/RockTheVote.Rd man/predict.ideal.Rd man/ntable.Rd man/plot.seatsVotes.Rd man/predict.hurdle.Rd man/zeroinfl.control.Rd man/ideal.Rd man/zeroinfl.Rd man/plot.ideal.Rd man/plot.predict.ideal.Rd man/unionDensity.Rd man/readKH.Rd man/constrain.legis.Rd man/hurdletest.Rd man/idealToMCMC.Rd man/ca2006.Rd man/presidentialElections.Rd man/EfronMorris.Rd man/AustralianElectionPolling.Rd man/dropUnanimous.Rd man/predprob.Rd man/iraqVote.Rd man/hitmiss.Rd man/partycodes.Rd man/seatsVotes.Rd man/vuong.Rd man/predprob.glm.Rd man/predprob.ideal.Rd man/AustralianElections.Rd man/computeMargins.Rd man/dropRollCall.Rd man/extractRollCallObject.Rd man/vote92.Rd man/odTest.Rd man/politicalInformation.Rd man/bioChemists.Rd

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.