extractRollCallObject {pscl} | R Documentation |
Given a fitted model of class ideal
, return the
rollcall
object that was used in the model fitting
(i.e., apply all subseting and recoding implied by the dropList
passed to ideal
).
extractRollCallObject(object)
object |
an object of class ideal |
This function is used by many post-estimation commands that operate on
objects of class ideal
. The function inspects the
call
attribute of the
ideal
object, extracting the name of the
rollcall
object and the dropList
, then hands them
over to dropRollCall
.
An object of class rollcall
Simon Jackman jackman@stanford.edu
rollcall
; see dropRollCall
for
details on the form of a dropList
.
data(s109) id1 <- ideal(s109, d=1, meanzero=TRUE, maxiter=500, ## short run for demo purposes burnin=100, thin=10) tmp <- extractRollCallObject(id1) summary(tmp) v <- convertCodes(tmp) ## roll call matrix per se