lambda.reg              package:eiPack              R Documentation

_C_a_l_c_u_l_a_t_e _s_h_a_r_e_s _u_s_i_n_g _d_a_t_a _f_r_o_m _r_e_g_r_e_s_s_i_o_n _m_o_d_e_l

_D_e_s_c_r_i_p_t_i_o_n:

     Calculates the population share of row members in a particular
     column

_U_s_a_g_e:

     lambda.reg(object, columns) 

_A_r_g_u_m_e_n_t_s:

  object: An R object of class 'eiReg', the output from 'ei.reg'

 columns: a character vector of column names to be included in
          calculating the shares

_D_e_t_a_i_l_s:

     Standard errors are calculated using the delta method as
     implemented in the library 'msm'.  The arguments passed to
     'deltamethod' in 'msm' include 

   '_g' a list of transformations of the form '~ x1 / (x1 + x2 + + ... +
        xk)', '~ x2 / (x1 + x2 + ... + xk)', etc.. Each xc is the
        estimated proportion of all row members in column c, beta_rc

   '_m_e_a_n' the estimated proportions of the row members in the specified
        columns, as a proportion of the total number of row members,
        (beta_r1, beta_r2, ..., beta_rk). 

   '_c_o_v' a diagonal matrix with the estimated variance of each beta_rc
        on the diagonal.  Each column marginal is assumed to be
        independent, such that the off-diagonal elements of this matrix
        are zero.  Estimates come from 'object$cov.matrices', the
        estimated covariance matrix from the regression of the relevant
        column.  Thus,


       cov  =  Var(beta_r1)       0              0         ...
                    0        Var(beta_r2)        0         ...
                    0             0        Var(beta_{r3})  ...
                   ...           ...            ...        ...

_V_a_l_u_e:

     Returns a list with the following elements  

    call: the call to 'lambda.reg'

  lambda: an R x k matrix  where k is the number of columns included in
          the share calculation

      se: standard errors calculated using the delta method as
          implemented  in the library 'msm'

_A_u_t_h_o_r(_s):

     Ryan T. Moore <rtm@wustl.edu>

_S_e_e _A_l_s_o:

     'ei.reg'

