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

dropUnanimous

drop unanimous votes from rollcall objects and matrices


Description

Drop unanimous votes from rollcall objects and rollcall matrices.

Usage

dropUnanimous(obj, lop = 0)

Arguments

obj

object, either of class rollcall or matrix

lop

numeric, non-negative integer, less than number of legislators represented in obj. Roll calls with lop or fewer legislators voting in the minority are dropped. Default is 0, meaning that unanimous votes are dropped.

Details

Unanimous votes are the equivalent of test items that all subjects score “correct” (or all subjects scores “incorrect”); since there is no variation among the legislators/subjects, these votes/items provide no information as to latent traits (ideology, preferences, ability). A reasonably large number of rollcalls in any contemporary U.S. Congress are unanimous.

Specific methods are provided for objects of class rollcall or matrix.

Value

A rollcall object or a matrix depending on the class of object.

Author(s)

See Also

Examples

data(s109)
s109.working <- dropUnanimous(s109)
summary(s109.working)

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.