Learn R Programming

ei (version 1.3-3)

bounds1: Computes Analytical Bounds from Accounting Identity

Description

Returns analytical bounds from accounting identity on unknown table relationships beta_b, beta_w, from known, observed, table marginals, x, t (and sample size n).

Usage

bounds1(x, t, n)

Arguments

x
vector of characteristics, e.g. percentage of blacks in each district
t
vector of characteristics, e.g. percentage of people that voted in each district
n
size of each observation, e.g. number of voters in each district

References

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

Examples

Run this code
	data(census1910)
	output<-bounds1(x=census1910$x, t=census1910$t, n=census1910$n)

Run the code above in your browser using DataLab