rc_ep: European Parliament Data

rc_epR Documentation

European Parliament Data

Description

An object of class rollcall that contains information about legislators and votes from the the European Parliament 1979-1984.

Usage

data(hr108)

Format

votes

A 548x886 matrix of votes for all of the legislators.

codes

A list containing the maps of numerical values to yea, nay, NIL and missing votes.

n

Number of rows in votes

m

Number of columns in votes

legis.data

A data frame comtaining information about the legislators - MEP ID, MEP name, country, National party affiliation, party group affiliation.

vote.data

NULL

desc

Descriptive text for the dataset

source

NULL

Details

We used the following code to transform the raw data in rcv_ep1 into a rollcall object.

library(pscl)

data(rcv_ep1)

rc <- rollcall(data=rcv_ep1[,6:ncol(rcv_ep1)],

yea=1,

nay=2,

missing=c(3,4,0),

notInLegis=5,

legis.names=rcv_ep1[["MEPNAME"]],

vote.names=colnames(rcv_ep1[6:ncol(rcv_ep1)]),

legis.data=rcv_ep1[,1:5][,-2],

vote.data=NULL,

desc="1st European Parliament (1979-1984) Roll Call Data")

The arguments required by the rollcall() function are similar to those in readKH(), except that the legislator and vote-specific variables must be specified. First, data is set as the matrix of roll call votes (the sixth through final columns of the rcv\_ep1 dataset). The numeric codes are then set for yea, nay, missing, and notInLegis votes. legis.names is a vector of the legislator names. vote.names is a vector of the roll call vote names (we simply use the column names of the votes). legis.data is a vector or matrix of legislator-specific variables. In this example, we have four such variables: MEPID, MS, NP, and EPG in the first and second through fifth columns. We want to omit the legislator names (in the second column), so we use the command: rcv\_ep1[,1:5][,-2]. vote.data is a vector or matrix of vote-specific variables (for example, roll call vote descriptions). We leave this parameter NULL since we have no such variable(s). Finally, desc is a short description of the roll call voting data.

Source

http://personal.lse.ac.uk/hix/HixNouryRolandEPdata.htm

Examples

data(rc_ep)

davidaarmstrong/asmcjr documentation built on June 29, 2024, 12:07 p.m.