eiread {ei}R Documentation

Quantities of Interest from Ecological Inference Estimation

Description

eiread is the command that pulls quantities of interest from the ei object. The command returns a list of quantities of interest requested by the user.

Usage

eiread(ei.object, ...)

Arguments

ei.object

An ei object from the function ei.

...

A list of quantities of interest for eiread() to return. See values below.

Value

betab

p x 1 point estimate of \beta_i^b based on its mean posterior. See section 8.2

betaw

p x 1 point estimate of \beta_i^w based on its mean posterior. See section 8.2

sbetab

p x 1 standard error for the estimate of \beta_i^b, based on the standard deviation of its posterior. See section 8.2

sbetaw

p x 1 standard error for the estimate of \beta_i^w, based on the standard deviation of its posterior. See section 8.2

phi

Maximum posterior estimates of the CML

psisims

Matrix of random simulations of \psi. See section 8.2

bounds

p x 4: bounds on \beta_i^b and \beta_i^w, lowerB ~ upperB ~ lowerW ~ upperW. See Chapter 5.

abounds

2 x 2: aggregate bounds rows:lower, upper; columns: betab, betaw. See Chapter 5.

aggs

Simulations of district-level quantities of interest \hat{B^b} and \hat{B^w}. See Section 8.3.

maggs

Point estimate of 2 district-level parameters, \hat{B^b} and \hat{B^w} based on the mean of aggs. See Section 8.3.

VCaggs

Variance matrix of 2 district-level parameters, \hat{B^b} and \hat{B^w}. See Section 8.3.

CI80b

p x 2: lower~upper 80\% confidence intervals for \beta_i^b. See section 8.2.

CI80w

p x 2: lower~upper 80\% confidence intervals for \beta_i^w. See section 8.2.

eaggbias

Regressions of estimated \beta_i^b and \beta_i^w on a constant term and X_i.

goodman

Goodman's Regression. See Section 3.1

Author(s)

Gary King <<email: king@harvard.edu>> and Molly Roberts <<email: molly.e.roberts@gmail.com>>

References

Gary King (1997). A Solution to the Ecological Inference Problem. Princeton: Princeton University Press.

Examples

data(sample)
formula = t ~ x
dbuf <- ei(formula=formula, total="n",data=sample)
eiread(dbuf, "phi")
eiread(dbuf, "betab", "betaw")

[Package ei version 1.3-3 Index]