Hello!
My initial goal was to estimate the following fixed-effects model:
where Y_it is the log+1 transformed dependent variable representing university i in week t, X_it is the time-variant predictor of interest (proportion between 0 and 1), and week_it is a set of weekly dummies (plus unobserved unit- and time-effects and error).
Now, the reviewer has asked me to add several control variables, such as university size_i and acceptance_rate_i (which are constant over time), and some measure of the population mobility on university campus. Since the data on mobility at the university level is not available, I collected county-level data for each of the universities. In my sample, the 118 universities are "nested" within 104 counties. Given that the weekly mobility_jt measure is at the different level, as far as I understand, it should be included in the model using appropriate (county) level, for example, using the following multilevel mixed effects approach:
Is my approach to including and estimating size_i, acceptance_rate_i, and mobility_jt correct? If so, then what is the equation that I am estimating using the aforementioned command?
I would appreciate your feedback on this.
My initial goal was to estimate the following fixed-effects model:
Code:
xtreg Y_it i.week X_it, vce(robust) /// log(Y_it + 1) = b_0 + X_it + week_it + alpa_i + gamma_t + error_it
Now, the reviewer has asked me to add several control variables, such as university size_i and acceptance_rate_i (which are constant over time), and some measure of the population mobility on university campus. Since the data on mobility at the university level is not available, I collected county-level data for each of the universities. In my sample, the 118 universities are "nested" within 104 counties. Given that the weekly mobility_jt measure is at the different level, as far as I understand, it should be included in the model using appropriate (county) level, for example, using the following multilevel mixed effects approach:
Code:
xtmixed Y_it i.week X_it size_i acceptance_rate_i || FIPS: mobility_jt, vce(robust)
I would appreciate your feedback on this.
Comment