predprob.ideal | R Documentation |
Computes predicted probabilities of a “Yea” vote conditional on the posterior means of the legislators' ideal points and vote-specific parameters.
## S3 method for class 'ideal'
predprob(obj, ...)
obj |
An object of class |
... |
Arguments to be passed to other functions |
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.
A matrix
of dimension n
(number of legislators)
by m
(number of roll call votes).
Simon Jackman simon.jackman@sydney.edu.au
ideal
, predprob
, predict.ideal
f <- system.file("extdata","id1.rda",package="pscl")
load(f)
phat <- predprob(id1)
dim(phat)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.