Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predprob.ideal

predicted probabilities from fitting ideal to rollcall data


Description

Computes predicted probabilities of a “Yea” vote conditional on the posterior means of the legislators' ideal points and vote-specific parameters.

Usage

## S3 method for class 'ideal'
predprob(obj, ...)

Arguments

obj

An object of class ideal

...

Arguments to be passed to other functions

Details

This is a wrapper function to predict.ideal, extracting just the predicted probabilities component of the object returned by that function. Predicted probabilities can and are generated for each voting decision, irrespective of whether the legislator actually voted on any particular roll call.

Value

A matrix of dimension n (number of legislators) by m (number of roll call votes).

Author(s)

See Also

Examples

f <- system.file("extdata","id1.rda",package="pscl")
load(f)
phat <- predprob(id1)
dim(phat)

pscl

Political Science Computational Laboratory

v1.5.5
GPL-2
Authors
Simon Jackman, with contributions from Alex Tahk, Achim Zeileis, Christina Maimone, Jim Fearon and Zoe Meers
Initial release
2020-02-25

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.