I would like to fit some multilevel models to my data. In several places Dr. Gelman has suggested that one can fit a two-stage regression as a prelude to a multilevel model, to see if a more flexible model is warranted:
Before doing multilevel modeling, I would do a so-called “two-stage regression”–that is, fitting the regression model separately in each country, then estimating level-2 effects by running regressions on the country-level regression. By fitting the models separately, you’re automatically allowing slopes as well as intercepts to vary by country. (If you then want to interpret the intercepts, you have to make sure that your level-1 predictors are coded so that their zero-levels are interpretable.)
and
Yes, the first stage is the regression in each country using only the level-1 covariates. You then take the coefs from this first stage (ignoring the se’s) and regress them on the country-level predictors.
Even after this re-explanation I am quite confused about what Dr. Gelman means.
Consider a set of $k$ countries. Suppose one is trying to understand a country's sovereign bond spread $s^T_t$ (yield over treasury's) as a function of ten economic variables $x_{t,1},...,x_{t,p}$. For any country one can fit the model
$s_t \sim \mathbf{\beta}^T \mathbf{x}_t.$
For each country one then has $p$ coefficients. Dr. Gelman says to regress the these, i.e. the $p\times k$ coefficients, against the country-level predictors, by which I think he means the indicator variable for each country.
This doesn't make sense to me. The way it is set up it sounds like he is regressing a vector on an indicator variable, which doesn't seem like a sensible thing. The only thing I can guess he means is that one performs $p$ regressions, one for each coefficient, to determine the variation for each of these across countries. But if that were the case I would think he would say that directly, and in any case I'm not sure this is a sensible thing to do either.
Whatever he is doing must be very obvious because he has made the same suggestion repeatedly and everyone seems to understand what he is saying. Can someone help me set up this two-stage regression?