Hi
I have a data set that contains imports from the US disaggregated by year, country and product. It looks more or less like this:
country_code year hts8 importvalue
2010 1990 01011100 2500
2010 1990 01011900 3100
.
.
.
2010 2001 01011100 789
3010 1990 01011100 650
.
.
I am trying to declare it as a panel like this
xtset country_code year
but I get the error: repeated time values within panel
Should I generate a new panel identifier? (egen panelid = group(country_code hts8)
Thank you!
Dana Chahin
I have a data set that contains imports from the US disaggregated by year, country and product. It looks more or less like this:
country_code year hts8 importvalue
2010 1990 01011100 2500
2010 1990 01011900 3100
.
.
.
2010 2001 01011100 789
3010 1990 01011100 650
.
.
I am trying to declare it as a panel like this
xtset country_code year
but I get the error: repeated time values within panel
Should I generate a new panel identifier? (egen panelid = group(country_code hts8)
Thank you!
Dana Chahin
Comment