eiread: Quantities of Interest from Ecological Inference Estimation

Description Usage Arguments Value Author(s) References Examples

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

1
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 β_i^b based on its mean posterior. See section 8.2

betaw

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

sbetab

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

sbetaw

p x 1 standard error for the estimate of β_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 ψ. See section 8.2

bounds

p x 4: bounds on β_i^b and β_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 β_i^b. See section 8.2.

CI80w

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

eaggbias

Regressions of estimated β_i^b and β_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

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

IQSS/ei documentation built on May 8, 2019, 1:40 p.m.