Hi
I am trying to construct a panel dataset comprised of yearly observations of import values for different countries. Also included other basic variables like GDP, employment etc.
All of the variables are measured at the country-year level, so there is one observation for country x in each year.
However, the import values are refined to different product codes (HS codes) in order to differentiate between different products which have been imported. The issue with this is that there are thousands of different HS codes, so the data isn't balanced. It basically shows different import values for different HS codes, at country x in year y. All of the other variables (GDP, Employment etc.) are just repeated for each observation of HS code in that year.
Is this an issue for an accurate regression? Would I need all of my variables at the country-year level and is it possible to collapse the import values to this level?
Thanks for your help.
James (total beginner if that isn't already obvious)
Related Posts with Constructing panel data set
Exclude certain observations only in one variable?Hello Code: gen gift_group_test = 0 if gift_total < . & gift_received == 1 replace gift_gr…
Creating a loop to generate a new variables in a panel datasetI would be be grateful for any help with my query. I have the following variables chd002_9 chd002_0…
multi-level/mixed effects vs clustered robust standard errors - which is more appropriate if many of the clusters have 1 individual?Hi. I have a dataset of psychological measures from carers (n=254) of people with mental health pat…
How to invert the order of rows in a matrixDear Statalisters Apologies in advance for the simplicity of my question. I am sure the is already …
AFT or Cox survival analysis for buy-build strategies in private equity duration analysesHi there, For my research project I am analysing the duration of private equity buy-and-build strat…
Subscribe to:
Post Comments (Atom)
0 Response to Constructing panel data set
Post a Comment