Dear Statalisters!
I have problems with my time variable. I tried to use this commando:
xtset importer1 Year
But I get this error message:
repeated time values within panel
My data looks like this:
[ATTACH=CONFIG]temp_12911_1546025221248_158[/ATTACH]
I encoded Importer and Year with this commando:
encode Importer, gen(importer1)
encode Year1, gen(Year)
[ATTACH=CONFIG]temp_12912_1546025246080_192[/ATTACH]
In my data, i have 27 Importers and around 165 Exporters. I want to examine how imports from the Exporters to the Importers change during crisis and depending on if the Importer have euro or not.
The problem seems to be that the same year is used several time for the same Importer. Is it even possible for me to use panel data with my data set? If it is, how should I proceed?
Best reg(ression)ards,
Gabriel Bladh
Stockholm
Sweden
Related Posts with repeated time values within panel
Autocorrelation and other assumptions Diff in Diff modelHello, I am working on the following Diff in diff model: ln_sales = b0 + b1*treatment + b2*(treat…
Creating Variable based on NAIC Digit Level match for FirmsI have a list of firms that I am comparing to each other. Next I want to compare the NAIC code of ea…
cvlasso: What does the error message mean?Hi! I have multiple imputed datasets and try to variable selection by using the user-written cvlasso…
Exporting Oster bound estimatesDear all, As a robustness check, I'm computing the Oster bounds on unobservables for a range of out…
Interaction term in a quadratic modelMy basic cross-sectional (countrywise) model is based on regress life_exp gdp_pc_ppp sq_gdp_pc_ppp N…
Subscribe to:
Post Comments (Atom)
0 Response to repeated time values within panel
Post a Comment