Package: pscl 1.5.9

Simon Jackman

pscl: Political Science Computational Laboratory

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; seats-votes curves.

Authors:Simon Jackman [aut, cre], Alex Tahk [ctb], Achim Zeileis [ctb], Christina Maimone [ctb], James Fearon [ctb], Zoe Meers [ctb]

pscl_1.5.9.tar.gz
pscl_1.5.9.zip(r-4.5)pscl_1.5.9.zip(r-4.4)pscl_1.5.9.zip(r-4.3)
pscl_1.5.9.tgz(r-4.4-x86_64)pscl_1.5.9.tgz(r-4.4-arm64)pscl_1.5.9.tgz(r-4.3-x86_64)pscl_1.5.9.tgz(r-4.3-arm64)
pscl_1.5.9.tar.gz(r-4.5-noble)pscl_1.5.9.tar.gz(r-4.4-noble)
pscl_1.5.9.tgz(r-4.4-emscripten)pscl_1.5.9.tgz(r-4.3-emscripten)
pscl.pdf |pscl.html
pscl/json (API)

# Install 'pscl' in R:
install.packages('pscl', repos = c('https://atahk.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/atahk/pscl/issues

Datasets:
  • AustralianElectionPolling - Political opinion polls in Australia, 2004-07
  • AustralianElections - Elections to Australian House of Representatives, 1949-2016
  • EfronMorris - Batting Averages for 18 major league baseball players, 1970
  • RockTheVote - Voter turnout experiment, using Rock The Vote ads
  • UKHouseOfCommons - 1992 United Kingdom electoral returns
  • absentee - Absentee and Machine Ballots in Pennsylvania State Senate Races
  • admit - Applications to a Political Science PhD Program
  • bioChemists - Article production by graduate students in biochemistry Ph.D. programs
  • ca2006 - California Congressional Districts in 2006
  • iraqVote - U.S. Senate vote on the use of force against Iraq, 2002.
  • nj07 - Rollcall object, National Journal key votes of 2007
  • partycodes - Political parties appearing in the U.S. Congress
  • politicalInformation - Interviewer ratings of respondent levels of political information
  • presidentialElections - Elections for U.S. President, 1932-2016, by state
  • prussian - Prussian army horse kick data
  • s109 - Rollcall object, 109th U.S. Senate (2005-06).
  • sc9497 - Votes from the United States Supreme Court, from 1994-1997
  • state.info - Information about the American states needed for U.S. Congress
  • unionDensity - Cross national rates of trade union density
  • vote92 - Reports of voting in the 1992 U.S. Presidential election.

On CRAN:

13.63 score 65 stars 51 packages 2.5k scripts 43k downloads 185 mentions 37 exports 1 dependencies

Last updated 10 months agofrom:2c4ace63cf. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 11 2024
R-4.5-win-x86_64OKNov 11 2024
R-4.5-linux-x86_64OKNov 11 2024
R-4.4-win-x86_64OKNov 11 2024
R-4.4-mac-x86_64OKNov 11 2024
R-4.4-mac-aarch64OKNov 11 2024
R-4.3-win-x86_64OKNov 11 2024
R-4.3-mac-x86_64OKNov 11 2024
R-4.3-mac-aarch64OKNov 11 2024

Exports:betaHPDcomputeMarginsconstrain.itemsconstrain.legisconvertCodesdensigammadropRollCalldropUnanimousextractRollCallObjecthitmisshurdlehurdle.controlhurdletestidealidealToMCMCigammaHDRntableodTestpigammaplot.idealplot.predict.idealplot.seatsVotespostProcesspR2predprobqigammareadKHrigammarollcallseatsVotessimpisummary.rollcalltracexvectorRepresentationvuongzeroinflzeroinfl.control

Dependencies:MASS

Regression Models for Count Data in R

Rendered fromcountreg.Rnwusingutils::Sweaveon Nov 11 2024.

Last update: 2019-12-17
Started: 2017-05-04

Readme and manuals

Help Manual

Help pageTopics
Absentee and Machine Ballots in Pennsylvania State Senate Racesabsentee
Applications to a Political Science PhD Programadmit
Political opinion polls in Australia, 2004-07AustralianElectionPolling
elections to Australian House of Representatives, 1949-2016AustralianElections
compute and optionally plot beta HDRsbetaHPD
article production by graduate students in biochemistry Ph.D. programsbioChemists
California Congressional Districts in 2006ca2006
add information about voting outcomes to a rollcall objectcomputeMargins
constrain item parameters in analysis of roll call dataconstrain.items
constrain legislators' ideal points in analysis of roll call dataconstrain.legis
convert entries in a rollcall matrix to binary formconvertCodes
drop user-specified elements from a rollcall objectdropRollCall
drop unanimous votes from rollcall objects and matricesdropUnanimous
Batting Averages for 18 major league baseball players, 1970EfronMorris
return the roll call object used in fitting an ideal modelextractRollCallObject
Table of Actual Outcomes against Predicted Outcomes for discrete data modelshitmiss hitmiss.glm
Hurdle Models for Count Data Regressionhurdle print.hurdle
Control Parameters for Hurdle Count Data Regressionhurdle.control
Testing for the Presence of a Zero Hurdlehurdletest
analysis of educational testing data and roll call data with IRT models, via Markov chain Monte Carlo methodsideal
convert an object of class ideal to a coda MCMC objectidealToMCMC
inverse-Gamma distributiondensigamma igamma igammaHDR pigamma qigamma rigamma
U.S. Senate vote on the use of force against Iraq, 2002.iraqVote
rollcall object, National Journal key votes of 2007nj07
nicely formatted tablesntable
likelihood ratio test for over-dispersion in count dataodTest
political parties appearing in the U.S. Congresspartycodes
plots an ideal objectplot.ideal plot1d plot2d
plot methods for predictions from ideal objectsplot.predict.ideal
plot seats-votes curvesplot.seatsVotes
Interviewer ratings of respondent levels of political informationpoliticalInformation
remap MCMC output via affine transformationspostProcess
compute various pseudo-R2 measurespR2
Methods for hurdle Objectscoef.hurdle extractAIC.hurdle fitted.hurdle logLik.hurdle model.matrix.hurdle predict.hurdle predprob.hurdle print.summary.hurdle residuals.hurdle summary.hurdle terms.hurdle vcov.hurdle
predicted probabilities from an ideal objectpredict.ideal print.predict.ideal
Methods for zeroinfl Objectscoef.zeroinfl extractAIC.zeroinfl fitted.zeroinfl logLik.zeroinfl model.matrix.zeroinfl predict.zeroinfl predprob.zeroinfl print.summary.zeroinfl residuals.zeroinfl summary.zeroinfl terms.zeroinfl vcov.zeroinfl
compute predicted probabilities from fitted modelspredprob
Predicted Probabilities for GLM Fitspredprob.glm
predicted probabilities from fitting ideal to rollcall datapredprob.ideal
elections for U.S. President, 1932-2016, by statepresidentialElections
Prussian army horse kick dataprussian
read roll call data in Poole-Rosenthal KH formatreadKH
Voter turnout experiment, using Rock The Vote adsRockTheVote
create an object of class rollcallrollcall
rollcall object, 109th U.S. Senate (2005-06).s109
votes from the United States Supreme Court, from 1994-1997sc9497
A class for creating seats-votes curvesseatsVotes
Monte Carlo estimate of pi (3.14159265...)simpi
information about the American states needed for U.S. Congressstate.info
summary of an ideal objectsummary.ideal
summarize a rollcall objectprint.summary.rollcall summary.rollcall
trace plot of MCMC iterates, posterior density of legislators' ideal pointstracex
1992 United Kingdom electoral returnsUKHouseOfCommons
cross national rates of trade union densityunionDensity
convert roll call matrix to series of vectorsvectorRepresentation
Reports of voting in the 1992 U.S. Presidential election.vote92
Vuong's non-nested hypothesis testvuong
Zero-inflated Count Data Regressionprint.zeroinfl zeroinfl
Control Parameters for Zero-inflated Count Data Regressionzeroinfl.control