MIextract              package:mitools              R Documentation

_E_x_t_r_a_c_t _a _p_a_r_a_m_e_t_e_r _f_r_o_m _a _l_i_s_t _o_f _r_e_s_u_l_t_s

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

     Used to extract parameter estimates and standard errors from lists
     produced by 'with.imputationList'.

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

     MIextract(results, expr, fun)

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

 results: A list of objects

    expr: an expression

     fun: a function of one argument

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

     If 'expr' is supplied, it is evaluated in each element of
     'results'. Otherwise each element of 'results' is passed as an
     argument to 'fun'.

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

     A list

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

     'with.imputationList', 'MIcombine'

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

     data(smi)
     models<-with(smi, glm(drinkreg~wave*sex,family=binomial()))

     betas<-MIextract(models,fun=coef)
     vars<-MIextract(models, fun=vcov)
     summary(MIcombine(betas,vars))

