lambda.reg {eiPack}R Documentation

Calculate shares using data from regression model

Description

Calculates the population share of row members in a particular column

Usage

lambda.reg(object, columns) 

Arguments

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

Details

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

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

Value

Returns a list with the following elements

call

the call to lambda.reg

lambda

an R \times 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

Author(s)

Ryan T. Moore <rtm@american.edu>

See Also

ei.reg


[Package eiPack version 0.2-2 Index]