I'm trying to replicate the results from an empirical paper (Baldassarri & Gelman 2008). In the paper, the authors ran a multilevel (linear) model with varying intercept and varying slope, in which "the unit of analysis is issue pair × year and the second-level units are issues." In addition, they said that "Rho_it is a correlation between issue i and the measure of partisanship in the year t (i ranges from 1 to 47, while t is time in decades)". The model is:
Rho_it = Alpha_i + Beta_i * t + εit
It seems that this model has issue-specific constant term and issue-specific time trend. And I had trouble writing the STATA command for it. My attempt is:
mixed Rho t || id:
But it doesn't seem correct to me.
Any help would be greatly appreciated!
Rho_it = Alpha_i + Beta_i * t + εit
It seems that this model has issue-specific constant term and issue-specific time trend. And I had trouble writing the STATA command for it. My attempt is:
mixed Rho t || id:
But it doesn't seem correct to me.
Any help would be greatly appreciated!
Comment