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

pp x 11 point estimate of βib\beta_i^b based on its mean posterior. See section 8.2

betaw

pp x 11 point estimate of βiw\beta_i^w based on its mean posterior. See section 8.2

sbetab

pp x 11 standard error for the estimate of βib\beta_i^b, based on the standard deviation of its posterior. See section 8.2

sbetaw

pp x 11 standard error for the estimate of βiw\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

pp x 44: bounds on βib\beta_i^b and βiw\beta_i^w, lowerB ~ upperB ~ lowerW ~ upperW. See Chapter 5.

abounds

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

aggs

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

maggs

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

VCaggs

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

CI80b

pp x 22: lower~upper 80%80\% confidence intervals for βib\beta_i^b. See section 8.2.

CI80w

pp x 22: lower~upper 80%80\% confidence intervals for βiw\beta_i^w. See section 8.2.

eaggbias

Regressions of estimated βib\beta_i^b and βiw\beta_i^w on a constant term and XiX_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]