extractRollCallObject          package:pscl          R Documentation

_r_e_t_u_r_n _t_h_e _r_o_l_l _c_a_l_l _o_b_j_e_c_t _u_s_e_d _i_n _f_i_t_t_i_n_g _a_n _i_d_e_a_l _m_o_d_e_l

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

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

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

     extractRollCallObject(object)

_A_r_g_u_m_e_n_t_s:

  object: an object of class 'ideal'

_D_e_t_a_i_l_s:

     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'.

_V_a_l_u_e:

     An object of class 'rollcall'

_A_u_t_h_o_r(_s):

     Simon Jackman jackman@stanford.edu

_S_e_e _A_l_s_o:

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

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

     data(s109)
     id1 <- ideal(s109,
                  d=1,
                  meanzero=TRUE,
                  maxiter=500,      ## short run for demo purposes
                  burnin=100,
                  thin=10)

     tmp <- extractRollCallObject(id1)
     summary(tmp)
     v <- convertCodes(tmp)         ## roll call matrix per se  

