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

extractRollCallObject

return the roll call object used in fitting an ideal model


Description

Given a fitted model of class ideal, return the rollcall object that was used in the model fitting (i.e., apply all subsetting and recoding implied by the dropList passed to ideal).

Usage

extractRollCallObject(object)

Arguments

object

an object of class ideal

Details

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.

Value

An object of class rollcall

Author(s)

See Also

rollcall; see dropRollCall for details on the form of a dropList.

Examples

data(s109)
f = system.file("extdata","id1.rda",package="pscl")
load(f)
tmp <- extractRollCallObject(id1)
summary(tmp)
v <- convertCodes(tmp)         ## roll call matrix per se

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.