pv99tompall             package:pinktoe             R Documentation

_P_e_r_m_u_t_a_t_i_o_n _v_e_c_t_o_r _f_r_o_m _M_P _l_i_s_t_s _i_n _9_9 _i_n_t_o _t_h_e _m_p_a_l_l_3 _d_a_t_a_b_a_s_e

_D_e_s_c_r_i_p_t_i_o_n:

     In 1999 a selection of MPs signed Early Day Motions and hence turn
     up in databases that record which MPs signed in a given year. The
     lists  that record MPs signing records implicitly define an "index
     position" for those MPs in those records. To link these MPs to the
     global 'mpall3' database this vector gives the index into 'mpall3'
     from their implicity index position.

_U_s_a_g_e:

     data(pv99tompall)

_F_o_r_m_a_t:

     A permutation vector containing 549 integers each one identifying
     an MP and their position within the 'mpall3' database.

_S_o_u_r_c_e:

     Nason, G.P. (2001) Early Day Motions: exploring backbench opinion
     during 1997-2000. _Technical Report_ 01:11, Department of
     Mathematics, University of Bristol.

_E_x_a_m_p_l_e_s:

     data(pv99tompall)
     data(mpall3)
     data(mpinc99)
     #
     # In the mpincdf object (which records EDM signings) Irene Adams is MP number 2. Let's check this
     #
     dimnames(mpinc99)[[1]][1:5]
     #[1] "Abbott/Diane"      "Adams/Irene"       "Ainger/Nick"      
     #[4] "Ainsworth/Peter"   "Alexander/Douglas"
     #
     # What number is she in the mpall3 database?
     #
     pv99tompall[2]
     # [1] 3
     #
     # She is the third MP in this structure. (You see possibly number 1 or 2 in mpall3 did not sign anything
     # in 1999.
     #
     # Let's check
     #
     mpall3$mpn[3]
     #[1] Adams, Irene
     #670 Levels: Abbott, Miss Diane Adams, Gerry# Adams, Irene ... Young, Rt Hon Sir George Bt
     #
     # Yep, that's her!

