model.end               package:Zelig               R Documentation

_C_l_e_a_n_i_n_g _u_p _a_f_t_e_r _o_p_t_i_m_i_z_a_t_i_o_n

_D_e_s_c_r_i_p_t_i_o_n:

     The 'model.end' function creates a list of regression output from
     'optim'  output.  The list includes coefficients (from the 'optim'
     'par' output), a  variance-covariance matrix (from the 'optim'
     Hessian output), and any terms, contrasts, or  xlevels (from the
     model frame).  Use 'model.end' after calling 'optim', but before 
     assigning a  class to the regression output.

_U_s_a_g_e:

     model.end(res, mf)

_A_r_g_u_m_e_n_t_s:

     res: the output from 'optim' or another fitting-algorithm

      mf: the model frame output by 'model.frame'

_V_a_l_u_e:

     A list of regression output, including:  

coefficients: the optimized parameters

variance: the variance-covariance matrix (the negative inverse of the
          Hessian matrix returned from the optimization procedure)

   terms: the terms object.  See 'terms.object' for more information

     ...: additional elements passed from 'res'

_A_u_t_h_o_r(_s):

     Kosuke Imai <kimai@princeton.edu>; Gary King <king@harvard.edu>;
     Olivia Lau <olau@fas.harvard.edu>; Ferdinand Alimadhi
     <falimadhi@iq.harvard.edu>

_S_e_e _A_l_s_o:

     The full Zelig manual at <URL: http://gking.harvard.edu/zelig> for
     examples.

