Good morning,
I have a panel data dataset containing 21 companies of the same country (X), and collecting observations for 20 years. So number of individual= 21 and T=20 with 5 independent variable, as EBITDA, liquidity and so on. I need to add to the regression a control variable (GDP per capita) of the country X, that is a time series variable with T=20.
How I have to set the variable? I am performing the analysis in STATA. I need to repeat the control variable 21 times in order to construct it( as presented below)?
company A : t=1 EBITDA(t=1) GDP country X(t=1)
company A : t=2 EBITDA(t=2) GDP country X(t=2)
[...]
company A : t=21 EBITDA(t=21) GDP country X(t=21)
company B : t=1 EBITDA(t=1) GDP country X(t=1)
company B : t=2 EBITDA(t=2) GDP country X(t=2)
[...]
such that Gdp country X (t=1) is repeted 20 times and so on for all T?
thank you so much for your help and time