Dear Statalisters,
I am working with survey data on a cross-section of firms belonging to different industries in different countries over a number of years. Thus while the firms are unique, the countries and the industries get repeated over time. I have included a small sample of the dataset (properly labelled) with this post. I found declaring the panel nature of the data challenging. For example,
or
was understandably flagged to have repeated time values within panel. Following some of the previous queries in the list relating to my post, I have thus created a unique identifier, and now can declare the time series nature of the data, e.g.
works fine. I was wondering if any member could point out the consequences of this declaration for the purposes of (country & industry) fixed effects regression. Essentially the above declaration is the same as declaring
since
shows no within variation for either the firm-level (c205a) or the country-level variable (realgdp).
Any observations or comments & suggestions to help me to understand the data better for proper econometric analysis will be greatly appreciated.
Thank you,
Suryadipta.
I am working with survey data on a cross-section of firms belonging to different industries in different countries over a number of years. Thus while the firms are unique, the countries and the industries get repeated over time. I have included a small sample of the dataset (properly labelled) with this post. I found declaring the panel nature of the data challenging. For example,
Code:
xtset industryid year
Code:
xtset countryid year
Code:
xtset newvar1 year
Code:
xtset firmid year
Code:
xtsum
Any observations or comments & suggestions to help me to understand the data better for proper econometric analysis will be greatly appreciated.
Thank you,
Suryadipta.
Comment