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 |
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
a list of transformations of the form ~ x1 / (x1 + x2 +
+ ... + xk)
, ~ x2 / (x1 + x2 + ... + xk)
, etc.. Each
x_c
is the estimated proportion of all row members in column
c
, \hat{\beta}_{rc}
mean
the estimated proportions of the row members in the
specified columns, as a proportion of the total number of row
members, (\hat{\beta}_{r1}, \hat{\beta}_{r2}, ...,
\hat{\beta}_{rk})
.
cov
a diagonal matrix with the estimated variance of each
\hat{\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(\hat{\beta}_{r1}) | 0 | 0 | \ldots |
0 | Var(\hat{\beta}_{r2}) | 0 | \ldots |
||
0 | 0 | Var(\hat{\beta}_{r3}) | \ldots |
||
\vdots | \vdots | \vdots | \ddots |
||
Returns a list with the following elements
call |
the call to |
lambda |
an |
se |
standard errors calculated using the delta method as implemented
in the library |
Ryan T. Moore <rtm@american.edu>