Learn R Programming

ei (version 1.3-3)

tomogRxC: Plotting Ecological Inference Estimates with eiRxC information

Description

A tomography plot for an estimated Ecological Inference model in RxC data.

Usage

tomogRxC(formula, data, total=NULL, refine=100)

Arguments

formula
A formula of the form cbind(col1, col2,...)~cbind(row1,row2,...)
data
data that contains the data that corresponds to the formula
total
`total' is the name of the variable in the dataset that contains the number of individuals in each unit
refine
specifies the amount of refinement for the image. Higher numbers mean better resolution.

References

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

Examples

Run this code
data(RxCdata)
formula = cbind(turnout, noturnout) ~ cbind(white, black,hisp)
tomogRxC(formula, data=RxCdata)

Run the code above in your browser using DataLab