Hi all,
I have a panel data on bilateral trade volume of 55 country pairs for 15 years time period (so an unbalanced 15*55*15 matrix).
So far, I am done with reshaping and trying to declare the panel data before running the regression.
when I ran the following command:
egen group = group(countryi countryj)
su group, meanonly
xtset group year
the result revealed
xtset group year
repeated time values within panel
r(451);
In an attempt to fix it, I did
code
drop if year==year[_n-1]
xtset group year, yearly
and I got the panel with weak balanced. Then I ran the regression and got the r2000, no observation.
I could not figured out how best can I fix it. Any help or guidance would be much appreciated.
I am happy to provide with more details if needed.
Cheers,
Thanh Hao
Related Posts with Repeated time values within panel when declaring Panel Data
Format of combined histograms using -grc1leg-Hello community, Me again. I need help with output format using the -grc1leg- command combining 12 …
What's the correct way of interpreting the (exponentiated) log odds?Hello everyone, I am trying to translate the following output to a table in a word document. Howev…
Importing several excel files: matching rowsHi everyone, I imported over 250 excel files and appended them all together to 1 dta file, by using…
xtgraph option xlabUsing xtgraph, I noticed that the option xlab (..., ..., ...) doesn't work. Whether it's specified o…
Importing several excel files: matching columnsHi everyone, I imported over 250 excel files and appended them all together to 1 dta file, by using…
Subscribe to:
Post Comments (Atom)
0 Response to Repeated time values within panel when declaring Panel Data
Post a Comment