| ei.reg {eiPack} | R Documentation |
Ecological regression
Description
Estimate an ecological regression using least squares.
Usage
ei.reg(formula, data, ...)
Arguments
formula |
An R formula object of the form |
data |
data frame containing the variables specified in |
... |
Additional arguments passed to |
Details
For i \in 1,\ldots,C, C regressions of the form
c_i ~ cbind(r1, r2, ...) are performed.
These regressions make use of the accounting identities
and the constancy assumption, that \beta_{rci} =
\beta_{rc} for all i.
The accounting identities include
–defining the population cell fractions
\beta_{rc}such that\sum_{c=1}^{C} \beta_{rc} = 1for everyr–
\sum_{c=1}^{C} \beta_{rci} = 1forr = 1, \ldots, Randi = 1, \ldots, n–
T_{ci} = \sum_{r=1}^R \beta_{rci}X_{ri}forc = 1,\ldots,Candi = 1\ldots,n
Then regressing
T_{ci} = \beta_{rc} X_{ri} + \epsilon_{ci}
for c = 1,\dots,C
recovers the population parameters \beta_{rc} when the
standard linear regression assumptions apply, including
E[\epsilon_{ci}] = 0 and
Var[\epsilon_{ci}] = \sigma_c^2 for
all i.
Value
A list containing
call |
the call to |
coefficients |
an |
se |
an |
cov.matrices |
A list of the |
Author(s)
Olivia Lau <olivia.lau@post.harvard.edu> and Ryan T. Moore <rtm@american.edu>
References
Leo Goodman. 1953. “Ecological Regressions and the Behavior of Individuals.” American Sociological Review 18:663–664.