lambda.reg {eiPack} | R Documentation |
Calculates the population share of row members in a particular column
lambda.reg(object, columns)
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 |
Standard errors are calculated using the delta method as implemented in
the library msm
. The arguments passed to
deltamethod
in msm
include
g
~ x1 / (x1 + x2 +
+ ... + xk)
, ~ x2 / (x1 + x2 + ... + xk)
, etc.mean
cov
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}) | ... | ||
... | ... | ... | ... |
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 |
normal-bracket26bracket-normal
Ryan T. Moore <rtmoore@fas.harvard.edu>