preprocess_rollcall {pumBayes} | R Documentation |
Preprocess Roll Call Data
Description
This function is used to preprocess roll call data for analysis. It allows users to remove legislators, combine legislators with specified indices, exclude lopsided votes based on minority voting proportions, and filter out legislators with excessive missing votes.
Usage
preprocess_rollcall(
x,
data_preprocess = list(leg_rm = NULL, combine_leg_index = NULL, combine_leg_party =
NULL, lop_leg = 0.6, lop_issue = 0)
)
Arguments
x |
A roll call object. |
data_preprocess |
A list of parameters for preprocessing data:
|
Value
A roll call object that has been processed.
Examples
data(h116)
h116.c = preprocess_rollcall(h116)