ei.reg(formula, data, ...)
cbind(c1, c2, ...)
~ cbind(r1, r2, ...)
formula
lm
. ei.reg
coefficients
.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
Then regressing $$T_{ci} = \beta_{rc} X_{ri} + \epsilon_{ci}$$ for $c = 1,...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$.